File: Makefile

package info (click to toggle)
gravitywars 1.102-34
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,468 kB
  • ctags: 553
  • sloc: ansic: 3,938; makefile: 52; sh: 52
file content (70 lines) | stat: -rw-r--r-- 1,431 bytes parent folder | download
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
59
60
61
62
63
64
65
66
67
68
69
70
#
# Makefile for Gravity Wars, by Sami Niemi
#

USE_SDL=1
USE_JOYSTICK=1
DEBUG=1

BINDIR=/usr/local/bin

ifeq (1,$(USE_SDL))
CFLAGS= -g -Wall -O2 -fstack-protector-strong -Wformat -Werror=format-security -DUSE_SDL -DUSE_JOYSTICK `sdl-config --cflags`
LIBS= -lm `sdl-config --libs`
else
CFLAGS= -O2 -Wall
LIBS= -lm -lvgagl -lvga
endif

CC=cc
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 vgastubs.o GravityWars101.o 

$(TARGET): $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(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

vgastubs.o: vgastubs.c vgastubs.h


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

install:
	do_install