aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-04 05:28:54 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-04 05:28:54 +0000
commit2bb47821784c5ac3dc33c45624d591c7bf90deb0 (patch)
treed422246d8f02dfdc0749afb60d353880959ab0e3
parentdaab8bd24e82b30cfeeef5f42c7782ccda4e69a7 (diff)
downloadioquake3-aero-2bb47821784c5ac3dc33c45624d591c7bf90deb0.tar.gz
ioquake3-aero-2bb47821784c5ac3dc33c45624d591c7bf90deb0.zip
Allow USE_LOCAL_HEADERS to work with SDL on Linux builds.
Otherwise, cross-compiling doesn't work. git-svn-id: svn://svn.icculus.org/quake3/trunk@1364 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fe79813..2b756ea 100644
--- a/Makefile
+++ b/Makefile
@@ -296,6 +296,10 @@ ifeq ($(PLATFORM),linux)
CLIENT_LDFLAGS += -lrt
endif
+ifeq ($(USE_LOCAL_HEADERS),1)
+ BASE_CFLAGS += -I$(SDLHDIR)/include
+ endif
+
ifeq ($(ARCH),i386)
# linux32 make ...
BASE_CFLAGS += -m32