aboutsummaryrefslogtreecommitdiff
path: root/makefile.gnu
diff options
context:
space:
mode:
Diffstat (limited to 'makefile.gnu')
-rw-r--r--makefile.gnu21
1 files changed, 21 insertions, 0 deletions
diff --git a/makefile.gnu b/makefile.gnu
new file mode 100644
index 0000000..c80d582
--- /dev/null
+++ b/makefile.gnu
@@ -0,0 +1,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)
+ \ No newline at end of file