blob: d0f935659ad3be74c3e71f8a7aeeee37a2cc9896 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- Makefile.orig Tue Aug 14 16:28:49 2001
+++ Makefile Thu Jun 26 22:07:33 2003
@@ -1,26 +1,20 @@
# Makefile for test program for game_libs - lunar lander
-CFLAGS=-Wall `sdl-config --libs --cflags`
-CC=gcc
+CFLAGS+=`sdl-config --cflags`
+#CC=gcc
-LIBS=SDL_image
+LIBS=`sdl-config --libs` -lSDL_image -lSDL_mixer
C_FILES=moon_lander.c game_lib.c DT_drawtext.c
OBJ_FILES=moon_lander.o game_lib.o DT_drawtext.o
-OUT_FILE=moon-lander.bin
+OUT_FILE=moonlander
all: game_lib
game_lib: $(OBJ_FILES)
- $(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) -l$(LIBS) -lSDL_mixer
+ $(CC) $(CFLAGS) -o $(OUT_FILE) $(OBJ_FILES) $(LIBS)
-moon_lander.o: moon_lander.c
- $(CC) $(CFLAGS) -c -o $@ $^
-
-game_lib.o: game_lib.c
- $(CC) $(CFLAGS) -c -o $@ $^
-
-DT_drawtext.o: DT_drawtext.c
- $(CC) $(CFLAGS) -c -o $@ $^
+.c.o:
+ $(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f *.o core
|