DEADSOFTWARE

Testing odcread against a bunch of existing .odc files
[odcread.git] / Makefile
index 12f5f8ae4114bea2c4b816b92018e2e1e5085e1c..f54dabe5b55adae8d8c82dc3392a3327dca4c0c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,7 @@
-odcread: odcread.cc
-       g++ -o odcread odcread.cc
+HEADERS=oberon.h store.h reader.h alien.h typeregister.h textmodel.h fold.h visitor.h
+
+odcread: odcread.o reader.o store.o util.o alien.o typeregister.o textmodel.o fold.o 
+       g++ -o $@ $^
+
+%.o: %.cc $(HEADERS)
+       g++ -c -I. -o $@ $<