]> git.jsancho.org Git - gacela.git/blob - Makefile
(no commit message)
[gacela.git] / Makefile
1 LISP = gcl
2 INC = -I/usr/include/FTGL -I/usr/include/freetype2
3 # LIBS = -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lGL -lGLU -lftgl
4 LIBS = -lSDL -lSDL_image -lSDL_mixer -lSDL_gfx -lGL -lGLU -lftgl
5
6 OBJ = gacela.o gacela_misc.o gacela_SDL.o gacela_GL.o gacela_FTGL.o \
7       gacela_draw.o gacela_ttf.o gacela_events.o gacela_mobs.o \
8       gacela_widgets.o
9
10 GCL_OBJ = $(OBJ:%.o=\"%.o\")
11
12 %.o: %.lisp
13         $(LISP) -eval "(progn (load \"gacela_make.lisp\") (compile-gfile \"$<\" :include \"$(INC)\"))" -batch
14
15 all: $(OBJ)
16         $(LISP) -eval "(compiler::link '($(GCL_OBJ)) \"gacela\" \"\" \"$(LIBS)\")" -batch
17
18 clean:
19         rm -f $(OBJ) gacela
20