aboutsummaryrefslogtreecommitdiff
path: root/makefile.gnu
blob: c80d5827e38498af1dda4a1ab42cada13693d883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC=/usr/local/bin/gcc
CFLAGS=-DSTGEM -DDEBUG
CLIBS=-lgem
TARGET=worm.app

clean:
	rm -f *.o
	rm -f *.app

player.o: player.c player.h field.h
	$(CC) $(CFLAGS) -c player.c

field.o: field.c player.h field.h
	$(CC) $(CFLAGS) -c field.c

worm.o: worm.c player.h field.h keybd.h
	$(CC) $(CFLAGS) -c worm.c

all: worm.o player.h field.h keybd.h wormst.h player.o field.o
	$(CC) $(CFLAGS) -o $(TARGET) worm.o player.o field.o $(CLIBS)