stage1_2/Makefile
changeset 15 0b472e25eb16
parent 0 fb772792efd1
child 40 873a5b60a7ea
--- a/stage1_2/Makefile	Mon Feb 12 14:06:59 2007 +0100
+++ b/stage1_2/Makefile	Wed Feb 14 19:57:01 2007 +0100
@@ -7,7 +7,8 @@
 
 .PHONY: iec.flex
 
-all: iec.flex.o iec.y.o
+all: iec.flex.o iec.y.o stage1_2.o
+
 
 clean:
 	-rm -f *.o Makefile.depend
@@ -47,3 +48,11 @@
 #how to make things from other directories if they are missing
 ../% /%:
 	$(MAKE) -C $(@D) $(@F)
+
+
+Makefile.depend depend:
+	$(CXX) -MM -MG -I. *.cc \
+	  | perl -pe 's/:/ Makefile.depend:/' > Makefile.depend
+
+include Makefile.depend
+