Debian Codegraph @

Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 2 of 4 — not the installed (fully patched) source.
4 Debian patches touch this file
1 #
2 # Makefile for Gravity Wars, by Sami Niemi
3 #
4
5 USE_SDL=1
6 USE_JOYSTICK=1
7 DEBUG=1
8
9 BINDIR=/usr/local/bin
10
11 ifeq (1,$(USE_SDL))
12 CFLAGS= -g -Wall -DUSE_SDL -DUSE_JOYSTICK `sdl-config --cflags`
13 LIBS= -lm `sdl-config --libs`
14 else
15 CFLAGS= -O2 -Wall
16 LIBS= -lm -lvgagl -lvga
17 endif
18
19 CC=cc
20 TARGET=GravityWars101
21 OBJECTS=memory.o macros.o misc.o water.o score.o hole.o bullet.o pixel.o \
22 blocks.o introutro.o animate.o init.o makepic.o scroll.o moveship.o \
23 control.o vgastubs.o GravityWars101.o
24
25 $(TARGET): $(OBJECTS)
26 $(CC) $(CFLAGS) $(OBJECTS) $(OBJECTS2) -o $(TARGET) $(LIBS)
27
28 GravityWars101.o: GravityWars101.c config.h macros.h
29
30 memory.o: memory.c config.h macros.h
31
32 macros.o: config.h memory.o macros.c macros.h
33
34 misc.o: misc.c config.h macros.h
35
36 water.o: water.c config.h macros.h
37
38 score.o: score.c config.h macros.h
39
40 hole.o: hole.c config.h macros.h
41
42 bullet.o: bullet.c config.h macros.h
43
44 pixel.o: pixel.c config.h macros.h
45
46 blocks.o: blocks.c config.h macros.h
47
48 introutro.o: introutro.c config.h macros.h
49
50 animate.o: animate.c config.h macros.h
51
52 init.o: init.c config.h macros.h
53
54 makepic.o: makepic.c config.h macros.h
55
56 scroll.o: scroll.c config.h macros.h
57
58 moveship.o: moveship.c config.h macros.h
59
60 control.o: control.c config.h macros.h
61
62 vgastubs.o: vgastubs.c vgastubs.h
63
64
65 clean:
66 rm -f $(OBJECTS)
67 rm -f $(TARGET)
68
69 install:
70 do_install