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

clean:
	rm -f player.o field.o scores.o worm.o
	rm -f $(TARGET)

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

scores.o: scores.c scores.h 
	$(CC) $(CFLAGS) -c scores.c

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

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