Makefile
changeset 798 8331baea2dc9
parent 770 c2eacca29601
child 804 3288a1c6d133
equal deleted inserted replaced
797:51b0823d0ca8 798:8331baea2dc9
   331 ifndef OSX	# OSX can't build static if -static flag is used
   331 ifndef OSX	# OSX can't build static if -static flag is used
   332 LDFLAGS += -static
   332 LDFLAGS += -static
   333 endif
   333 endif
   334 endif
   334 endif
   335 
   335 
   336 # If building on Cygwin/MingW don't link with Cygwin libs
   336 # If building on MingW don't link with Cygwin libs
   337 ifdef WIN32
   337 ifdef WIN32
       
   338 ifdef CYGWIN
       
   339 BASECFLAGS += -mwin32
       
   340 LDFLAGS += -mwin32
       
   341 endif
   338 ifdef MINGW
   342 ifdef MINGW
   339 ifdef CYGWIN
       
   340 BASECFLAGS += -mno-cygwin
   343 BASECFLAGS += -mno-cygwin
   341 LDFLAGS += -mno-cygwin
   344 LDFLAGS += -mno-cygwin
   342 endif
       
   343 endif
   345 endif
   344 endif
   346 endif
   345 
   347 
   346 CFLAGS += $(BASECFLAGS)
   348 CFLAGS += $(BASECFLAGS)
   347 
   349