1 # Makefile for xuni, Linux version
4 SDLINCPATH
= /usr
/include/SDL
7 CFLAGS
= -W
-Wall
-ansi
-pedantic
-O2
-g
-I
$(SDLINCPATH
) -L
$(SDLLIBPATH
)
8 CLINK
= -lm
-lSDL
-lSDL_image
-lSDL_gfx
-lSDL_ttf
10 OBJ
= game.o graphics.o loop.o menu.o xuni.o
18 $(CC
) $(CFLAGS
) -o
$(TARGET
) $(OBJ
) $(CLINK
)
21 game.o
: game.c game.h graphics.h loop.h xuni.h
22 graphics.o
: graphics.c graphics.h xuni.h
23 loop.o
: loop.c loop.h menu.h xuni.h
24 menu.o
: menu.c graphics.h loop.h menu.h xuni.h
25 xuni.o
: xuni.c graphics.h menu.h xuni.h
35 valgrind
--leak-check
=full
-v .
/$(TARGET
) 2>&1\
36 | tee valgrind.output | less