summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-07-10 14:57:43 +0000
committertruelight <truelight@openttd.org>2005-07-10 14:57:43 +0000
commit3c9456dd45f38386b3357dee2fc93924bdd46696 (patch)
treed80479fbf61384ebe9e039f86a4290aefd69ff45 /Makefile
parentb45eee31570afd2045d199dd18a154c42952ad56 (diff)
downloadopenttd-3c9456dd45f38386b3357dee2fc93924bdd46696.tar.xz
(svn r2542) -Add: [GPMI] Added GPMI (http://sourceforge.net/projects/libgpmi/)
support to OpenTTD in preperation of AIScripts (long term). It is OFF by default. Add GPMI:=1 to Makefile.config to enable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c1e20799c..00fbb13c2 100644
--- a/Makefile
+++ b/Makefile
@@ -386,6 +386,15 @@ endif
CFLAGS += $(BASECFLAGS)
+# See if we want to enable GPMI
+ifdef GPMI
+CFLAGS += -DGPMI
+GPMI_STATIC_PATH = `gpmi-config --static`
+LDFLAGS += -rdynamic `gpmi-config --libs`
+# Static link paths into the game
+LDFLAGS += $(GPMI_STATIC_PATH)/paths-static.o
+endif
+
ifdef UNIX
CDEFS += -DUNIX
endif