From 48b3b8699d7db88ae9307e319535c8ec5b236824 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 10 Jul 2005 14:57:43 +0000 Subject: (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. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2