From: jsancho Date: Wed, 14 Oct 2009 23:13:09 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=35c768d6dbc22d731b9f2626b783b91530ea651f;p=gacela.git --- diff --git a/Makefile b/Makefile index 06f3666..b777b4a 100644 --- 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