comparison nykyaeka/Makefile @ 23:c3622b53a23e

Clean up the build system.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 23 May 2010 22:59:25 +0300
parents
children
comparison
equal deleted inserted replaced
22:885458f0d56e 23:c3622b53a23e
1 include ../config.mak
2
3 TARGETS=nykyaeka$(BINEXT)
4
5 all: $(TARGETS)
6
7 OBJS=sprites.o main.o musa.o planes.o landscro.o ../pwplib.a
8
9 include ../Makefile.inc
10
11 sprites.o: sprites.c sprites.h font.h
12 $(CC) $(CFLAGS) -c -o $@ $<
13
14 musa.o: musa.c musa.h
15
16 %.h: %.pl
17 perl $< > $@
18
19 nykyaeka$(BINEXT): $(OBJS)
20 $(CC) $(CFLAGS) -o $@ $+ $(LDFLAGS)
21