File: Makefile

package info (click to toggle)
gravitywars 1.102-9
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,020 kB
  • ctags: 289
  • sloc: ansic: 3,163; makefile: 71; sh: 13
file content (58 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# Makefile for Gravity Wars, by Sami Niemi
#

BINDIR=/usr/games

CFLAGS=-O2 -s  
CC=cc
LIBS=-lm -lvgagl -lvga
TARGET=GravityWars101
OBJECTS=memory.o macros.o misc.o water.o score.o hole.o bullet.o pixel.o \
        blocks.o introutro.o animate.o init.o makepic.o scroll.o moveship.o \
        control.o GravityWars101.o 

$(TARGET): $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(OBJECTS2) -o $(TARGET) $(LIBS)

GravityWars101.o: GravityWars101.c config.h macros.h

memory.o: memory.c config.h macros.h

macros.o: config.h memory.o macros.c macros.h

misc.o: misc.c config.h macros.h

water.o: water.c config.h macros.h

score.o: score.c config.h macros.h

hole.o: hole.c config.h macros.h

bullet.o: bullet.c config.h macros.h

pixel.o: pixel.c config.h macros.h

blocks.o: blocks.c config.h macros.h

introutro.o: introutro.c config.h macros.h

animate.o: animate.c config.h macros.h

init.o: init.c config.h macros.h

makepic.o: makepic.c config.h macros.h

scroll.o: scroll.c config.h macros.h   

moveship.o: moveship.c config.h macros.h

control.o: control.c config.h macros.h


clean:
	rm -f $(OBJECTS)
	rm -f $(TARGET)

install:
	do_install