Debian Codegraph @

Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 1 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
7 BINDIR=/usr/local/bin
8
9 ifeq (1,$(USE_SDL))
10 CFLAGS= -g -O2 -Wall -DUSE_SDL `sdl-config --cflags`
11 LIBS= -lm `sdl-config --libs`
12 else
13 CFLAGS= -O2 -Wall
14 LIBS= -lm -lvgagl -lvga
15 endif
16
17 CC=cc
18 TARGET=GravityWars101
19 OBJECTS=memory.o macros.o misc.o water.o score.o hole.o bullet.o pixel.o \
20 blocks.o introutro.o animate.o init.o makepic.o scroll.o moveship.o \
21 control.o vgastubs.o GravityWars101.o
22
23 $(TARGET): $(OBJECTS)
24 $(CC) $(CFLAGS) $(OBJECTS) $(OBJECTS2) -o $(TARGET) $(LIBS)
25
26 GravityWars101.o: GravityWars101.c config.h macros.h
27
28 memory.o: memory.c config.h macros.h
29
30 macros.o: config.h memory.o macros.c macros.h
31
32 misc.o: misc.c config.h macros.h
33
34 water.o: water.c config.h macros.h
35
36 score.o: score.c config.h macros.h
37
38 hole.o: hole.c config.h macros.h
39
40 bullet.o: bullet.c config.h macros.h
41
42 pixel.o: pixel.c config.h macros.h
43
44 blocks.o: blocks.c config.h macros.h
45
46 introutro.o: introutro.c config.h macros.h
47
48 animate.o: animate.c config.h macros.h
49
50 init.o: init.c config.h macros.h
51
52 makepic.o: makepic.c config.h macros.h
53
54 scroll.o: scroll.c config.h macros.h
55
56 moveship.o: moveship.c config.h macros.h
57
58 control.o: control.c config.h macros.h
59
60 vgastubs.o: vgastubs.c vgastubs.h
61
62
63 clean:
64 rm -f $(OBJECTS)
65 rm -f $(TARGET)
66
67 install:
68 do_install