A step towards validation.
[super-star-trek.git] / makefile
index c9c42b183eeb64acbd106b0a6eb8934854b5dfbb..e37d4464ebfc43dc3469650d8d761847d795735e 100644 (file)
--- a/makefile
+++ b/makefile
@@ -2,12 +2,12 @@
 
 VERS=$(shell sed <sst.spec -n -e '/Version: \(.*\)/s//\1/p')
 
-CFLAGS=     -O -g -DSSTDOC='"/usr/share/doc/sst/sst.doc"'
+CFLAGS= -O1 -g -Wall -DSSTDOC='"/usr/share/doc/sst/sst.doc"'
 
 .c.o:
        $(CC) $(CFLAGS) -c $<
 
-CFILES= sst.c finish.c reports.c setup.c moving.c battle.c events.c ai.c planets.c io.c
+CFILES= sst.c finish.c reports.c setup.c moving.c battle.c events.c ai.c planets.c io.c sstlinux.c conio.c
 OFILES= $(CFILES:.c=.o)
 HFILES=sst.h
 DOCS = README sst-doc.xml sst.xml sst-layer.xsl TODO
@@ -17,6 +17,19 @@ SOURCES= $(CFILES) $(HFILES) $(DOCS) sst.doc sst.6 makehelp.py makefile sst.spec
 
 all: sst sst.doc
 
+ai.o: ai.c sst.h
+battle.o: battle.c conio.h sst.h
+conio.o: conio.c conio.h
+events.o: events.c sst.h
+finish.o: finish.c sst.h
+io.o: io.c conio.h sst.h
+moving.o: moving.c sstlinux.h conio.h sst.h
+planets.o: planets.c sst.h
+reports.o: reports.c sst.h conio.h
+setup.o: setup.c conio.h sst.h
+sst.o: sst.c conio.h sstlinux.h sst.h
+sstlinux.o: sstlinux.c sstlinux.h
+
 sst:  $(OFILES)
        gcc  -o sst $(OFILES) -lm -lcurses