*** empty log message ***
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 7 Jan 2007 09:38:13 +0000 (09:38 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sun, 7 Jan 2007 09:38:13 +0000 (09:38 +0000)
mmsoftware/paradise_adventure/GNUmakefile

index 5cc6c46..de1b3f9 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: GNUmakefile,v 1.2 2007/01/07 09:26:43 mmondor Exp $
+# $Id: GNUmakefile,v 1.3 2007/01/07 09:38:13 mmondor Exp $
 
 CC := cc
 RM := rm
@@ -26,6 +26,9 @@ SDL_CFLAGS := $(shell sdl-config --cflags)
 SDL_LDFLAGS := $(shell sdl-config --libs)
 SDL_LDFLAGS += -lSDL_image -lSDL_mixer -lSDL_ttf
 
+JS_CFLAGS := $(shell spidermonkey-config -c)
+JS_LDFLAGS := $(shell spidermonkey-config -l)
+
 # OS dependent settings follow
 OS := $(shell $(UNAME) -s)
 ifneq (,$(findstring CYGWIN,$(OS)))
@@ -38,8 +41,8 @@ else
        LDFLAGS += -L/usr/lib -L/usr/pkg/lib -L/usr/X11R6/lib
 endif
 
-CFLAGS += $(SDL_CFLAGS)
-LDFLAGS += $(SDL_LDFLAGS)
+CFLAGS += $(SDL_CFLAGS) $(JS_CFLAGS)
+LDFLAGS += $(SDL_LDFLAGS) $(JS_LDFLAGS)
 
 all: $(BIN)