1# Makefile for test program for game_libs - lunar lander
2CFLAGS+=`sdl-config --cflags`
3#CC=gcc
4
5LIBS=`sdl-config --libs` -lSDL_image -lSDL_mixer -lm
6
7C_FILES=moon_lander.c game_lib.c DT_drawtext.c
8OBJ_FILES=moon_lander.o game_lib.o DT_drawtext.o
9OUT_FILE=moonlander
10
11all: game_lib
12
13game_lib: $(OBJ_FILES)
14	$(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) $(LIBS)
15
16.c.o:
17	$(CC) $(CFLAGS) -c $< -o $@
18
19clean:
20	rm -f *.o core
21
22install:
23	./install.sh
24
25
26