summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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