| 1 |
# |
| 2 |
# Makefile for Gravity Wars, by Sami Niemi |
| 3 |
# |
| 4 |
|
| 5 |
BINDIR=/usr/local/bin |
| 6 |
|
| 7 |
CFLAGS=-O2 -s |
| 8 |
CC=cc |
| 9 |
LIBS=-lm -lvgagl -lvga |
| 10 |
TARGET=GravityWars101 |
| 11 |
OBJECTS=memory.o macros.o misc.o water.o score.o hole.o bullet.o pixel.o \ |
| 12 |
blocks.o introutro.o animate.o init.o makepic.o scroll.o moveship.o \ |
| 13 |
control.o GravityWars101.o |
| 14 |
|
| 15 |
$(TARGET): $(OBJECTS) |
| 16 |
$(CC) $(CFLAGS) $(OBJECTS) $(OBJECTS2) -o $(TARGET) $(LIBS) |
| 17 |
|
| 18 |
GravityWars101.o: GravityWars101.c config.h macros.h |
| 19 |
|
| 20 |
memory.o: memory.c config.h macros.h |
| 21 |
|
| 22 |
macros.o: config.h memory.o macros.c macros.h |
| 23 |
|
| 24 |
misc.o: misc.c config.h macros.h |
| 25 |
|
| 26 |
water.o: water.c config.h macros.h |
| 27 |
|
| 28 |
score.o: score.c config.h macros.h |
| 29 |
|
| 30 |
hole.o: hole.c config.h macros.h |
| 31 |
|
| 32 |
bullet.o: bullet.c config.h macros.h |
| 33 |
|
| 34 |
pixel.o: pixel.c config.h macros.h |
| 35 |
|
| 36 |
blocks.o: blocks.c config.h macros.h |
| 37 |
|
| 38 |
introutro.o: introutro.c config.h macros.h |
| 39 |
|
| 40 |
animate.o: animate.c config.h macros.h |
| 41 |
|
| 42 |
init.o: init.c config.h macros.h |
| 43 |
|
| 44 |
makepic.o: makepic.c config.h macros.h |
| 45 |
|
| 46 |
scroll.o: scroll.c config.h macros.h |
| 47 |
|
| 48 |
moveship.o: moveship.c config.h macros.h |
| 49 |
|
| 50 |
control.o: control.c config.h macros.h |
| 51 |
|
| 52 |
|
| 53 |
clean: |
| 54 |
rm -f $(OBJECTS) |
| 55 |
rm -f $(TARGET) |
| 56 |
|
| 57 |
install: |
| 58 |
do_install |