initial import of tennix SDL port
[tennix.git] / makefile
blob9f991efadefc903b2f008975c472a481ee7e0bb9
1 CC = gcc
3 LIBS = $$(pkg-config --libs sdl)
4 CFLAGS = -Wall $$(pkg-config --cflags sdl)
6 SRC = tennix.c game.c graphics.c input.c
7 OBJ = tennix.o game.o graphics.o input.o
9 tennix: $(OBJ)
10 $(CC) $(CFLAGS) -o tennix $(OBJ) $(LIBS)
12 tennix.o: tennix.c tennix.h game.h graphics.h input.h
13 graphics.o: graphics.c graphics.h tennix.h input.h
14 game.o: game.c game.h graphics.h tennix.h
16 clean:
17 rm -f *.o tennix