]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
set CPPFLAGS at the right point
authorrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 15 Sep 2008 13:10:06 +0000 (13:10 +0000)
committerrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 15 Sep 2008 13:10:06 +0000 (13:10 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@44 61c419a2-8eb2-4b30-bcec-8cead039b335

Makefile

index cff723c4e45fc0f3c3fd78714a008788c8693c32..f9869502334c220f8cf6fb47d45e41cb358f1601 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 include Makefile.conf
 
 CFLAGS   = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fPIC
-CPPFLAGS = -DPOSIX -DXWINDOWS -D_LINUX
+CPPFLAGS = 
 CXXFLAGS = $(CFLAGS) -Wno-non-virtual-dtor -Wreorder -fno-exceptions -fno-rtti
 
 CFLAGS_OPT ?= -O3
@@ -17,6 +17,7 @@ $(error Unsupported build type)
 endif
 
 ifeq ($(OS),Linux)
+       CPPFLAGS += -DPOSIX -DXWINDOWS -D_LINUX
        LDFLAGS_DLL = -fPIC -ldl
        LIBS = -lpthread
        EXE = x86