Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 # Makefile for test program for game_libs - lunar lander
2 CFLAGS=-Wall `sdl-config --libs --cflags`
3 CC=gcc
4
5 LIBS=SDL_image
6
7 C_FILES=moon_lander.c game_lib.c DT_drawtext.c
8 OBJ_FILES=moon_lander.o game_lib.o DT_drawtext.o
9 OUT_FILE=moon-lander.bin
10
11 all: game_lib
12
13 game_lib: $(OBJ_FILES)
14 $(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) -l$(LIBS) -lSDL_mixer
15
16 moon_lander.o: moon_lander.c
17 $(CC) $(CFLAGS) -c -o $@ $^
18
19 game_lib.o: game_lib.c
20 $(CC) $(CFLAGS) -c -o $@ $^
21
22 DT_drawtext.o: DT_drawtext.c
23 $(CC) $(CFLAGS) -c -o $@ $^
24
25 clean:
26 rm -f *.o core
27
28 install:
29 ./install.sh
30
31