X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=Makefile.mgw;h=70c264a8d86dcad549a4e258d37e6b2d83006913;hb=0174d894ef79aa5d6f093af8c5c6f97a5edd4e86;hp=77d6c97f75b3990944ccc9c83bc79d8c74b5d21a;hpb=9ec58c2c5bbf90428a0e8e1c4f4af3805c602cd3;p=mesa.git diff --git a/Makefile.mgw b/Makefile.mgw index 77d6c97f75b..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.0 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 @@ -40,15 +38,10 @@ # As a consequence, you'll need the Win32 Glide3 # library to build any application. # default = no -# HAVE_X86=1 optimize for i386. +# ICD=1 build the installable client driver interface +# (windows opengl driver interface) # default = no -# HAVE_MMX=1 allow MMX specializations, provided your assembler -# supports MMX instruction set. However, the true CPU -# capabilities are checked at run-time to avoid crashes. -# default = no -# HAVE_SSE=1 (see HAVE_MMX) -# default = no -# HAVE_3DNOW=1 (see HAVE_MMX) +# X86=1 optimize for x86 (if possible, use MMX, SSE, 3DNow). # default = no # # Targets: @@ -62,10 +55,14 @@ .PHONY : all libgl clean realclean -CPU ?= pentium - -CFLAGS = -Wall -W -pedantic -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