aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 23f32c0c43a8fe1ece866abfd81f413d9d96e57b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Note: you need the GEM library and includes accessible to
# Turbo C for this to work

CC=tcc
CFLAGS=-ms -DPCGEM -DNEEDGSX 
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

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