aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 3a7add1accd279a7391584e332e6c3d60d74dd29 (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
# Note: you need the GEM library and includes accessible to
# Turbo C for this to work

CC=tcc
CFLAGS=-ms -DPCGEM -DNEEDGSX -Id:\dos\tmp\newkit2\inc
CLIBS=stcgem.lib 
TARGET=worm.app

clean:
	del *.obj
	del *.app

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

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

scores.obj: scores.c scores.h
	$(CC) $(CFLAGS) -c scores.c
	
all: worm.c player.h field.h wormpc.h util.h scores.h player.obj field.obj scores.obj
	$(CC) $(CFLAGS) -e$(TARGET) worm.c player.obj field.obj scores.obj $(CLIBS)