aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..56e50d1
--- /dev/null
+++ b/makefile
@@ -0,0 +1,18 @@
+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
+ $(CC) $(CFLAGS) -c field.c
+
+all: worm.c player.h field.h wormpc.h player.obj field.obj
+ $(CC) $(CFLAGS) -e$(TARGET) worm.c player.obj field.obj $(CLIBS)
+ \ No newline at end of file