]> git.jsancho.org Git - gacela.git/commitdiff
(no commit message)
authorjsancho <devnull@localhost>
Wed, 14 Oct 2009 23:13:09 +0000 (23:13 +0000)
committerjsancho <devnull@localhost>
Wed, 14 Oct 2009 23:13:09 +0000 (23:13 +0000)
Makefile

index 06f366698a1e6db321effb6dc61f47e4353850ce..b777b4a6ca6d91c14f333313dbbbc1b79a0851df 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,18 @@
 LISP = gcl
-LIBS = "-lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lGL -lGLU -lftgl"
+INC = -I/usr/include/FTGL -I/usr/include/freetype2
+LIBS = -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lGL -lGLU -lftgl
 
-OBJ = "gacela.o" "gacela_misc.o" "gacela_SDL.o" "gacela_GL.o" "gacela_FTGL.o" \
-      "gacela_draw.o" "gacela_ttf.o" "gacela_events.o" "gacela_mobs.o" \
-      "gacela_widgets.o"
+OBJ = gacela.o gacela_misc.o gacela_SDL.o gacela_GL.o gacela_FTGL.o \
+      gacela_draw.o gacela_ttf.o gacela_events.o gacela_mobs.o \
+      gacela_widgets.o
 
-OBJ = "gacela.o" "gacela_misc.o" "gacela_SDL.o" "gacela_GL.o" "gacela_FTGL.o" \
-      "gacela_draw.o" "gacela_ttf.o" "gacela_events.o" "gacela_mobs.o" \
-      "gacela_widgets.o"
+GCL_OBJ = $(OBJ:%.o=\"%.o\")
 
 %.o: %.lisp
-       $(LISP) -compile $< -system-p
+       $(LISP) -eval "(progn (setq compiler::*cc* (concatenate 'string compiler::*cc* \"$(INC)\")) (compile-file \"$<\" :system-p t))" -batch
 
 all: $(OBJ)
-       $(LISP) -eval "(compiler::link '($(OBJ)) \"gacela\" \"\" $(LIBS))"
+       $(LISP) -eval "(compiler::link '($(GCL_OBJ)) \"gacela\" \"\" \"$(LIBS)\")" -batch
 
 clean:
        rm $(OBJ) gacela