X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=Makefile.mgw;h=70c264a8d86dcad549a4e258d37e6b2d83006913;hb=fbeae4f70c177ce55fa137f5e0ca5747e914140a;hp=6f53efd55d8aa7c91b0d4b39132edb0c241765e2;hpb=a6c423d95663cfd8601cf84e10e8e1b12fa6ef15;p=mesa.git diff --git a/Makefile.mgw b/Makefile.mgw index 6f53efd55d8..70c264a8d86 100644 --- a/Makefile.mgw +++ b/Makefile.mgw @@ -20,9 +20,9 @@ # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# MinGW makefile v1.1 for Mesa +# MinGW makefile v1.2 for Mesa # -# Copyright (C) 2002 - Borca Daniel +# Copyright (C) 2002 - Daniel Borca # Email : dborca@users.sourceforge.net # Web : http://www.geocities.com/dborca @@ -31,8 +31,6 @@ # Available options: # # Environment variables: -# CPU optimize for the given processor. -# default = pentium # GLIDE path to Glide3 SDK; used with FX. # default = $(TOP)/glide3 # FX=1 build for 3dfx Glide3. Note that this disables @@ -57,11 +55,14 @@ .PHONY : all libgl clean realclean -CPU ?= pentium - -# when -std=c99 mingw will not define WIN32 -CFLAGS = -Wall -W -Werror -pedantic -std=c99 -DWIN32 -CFLAGS += -O2 -ffast-math -mcpu=$(CPU) +ifeq ($(ICD),1) + # when -std=c99 mingw will not define WIN32 + CFLAGS = -Wall -W -Werror +else + # I love c89 + CFLAGS = -Wall -W -pedantic +endif +CFLAGS += -O2 -ffast-math export CFLAGS