summaryrefslogtreecommitdiffstats
path: root/dep.mk
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-12-10 19:16:03 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-12-10 19:16:03 -0800
commitb078354aa1a2e24c827307764521e9666670eb11 (patch)
tree93ded2451332c0e25bf724a43b33f11b4bfcc376 /dep.mk
parentc63b7549a408a059776151d6dfc6889dbb3979a5 (diff)
downloadtxr-b078354aa1a2e24c827307764521e9666670eb11.tar.gz
txr-b078354aa1a2e24c827307764521e9666670eb11.tar.bz2
txr-b078354aa1a2e24c827307764521e9666670eb11.zip
Throwing away old dependency system.
* Makefile (DEPGEN): New macro variable. (OPT_OBJS, DBG_OBJS): Define with := assignment. (OBJS): New variable. (dbg/%.o, opt/*.o): Use -MMD and -MT options of gcc to generate dependencies. Also use DEPGEN macro to rewrite each dependency makefile's rule into a DEP_ variable assignment. (DEP_INSTANTIATE): New macro variable. (include dep.mk): Removed, replaced by eval hack that includes all the .d files and instantiates the rule from the DEP_ variable in each one. (opt/lex.yy.o, dbg/lex.yy.o): We need to hard code the dependency of these on y.tab.h, to force that header to generate. (DEP_opt/lex.yy.o, DEP_dbg/lex.yy.o): New variables, related to above. (depend): Target removed. * dep.mk: File removed. * depend.txr: File removed.
Diffstat (limited to 'dep.mk')
-rw-r--r--dep.mk88
1 files changed, 0 insertions, 88 deletions
diff --git a/dep.mk b/dep.mk
deleted file mode 100644
index 79bb9744..00000000
--- a/dep.mk
+++ /dev/null
@@ -1,88 +0,0 @@
-DEP_opt/txr.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./parser.h $(top_srcdir)/./match.h $(top_srcdir)/./utf8.h $(top_srcdir)/./debug.h $(top_srcdir)/./syslog.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h $(top_srcdir)/./arith.h $(top_srcdir)/./txr.h config.make
-opt/txr.o: $(DEP_opt/txr.o)
-DEP_opt/lex.yy.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./hash.h $(top_srcdir)/./parser.h $(top_srcdir)/./eval.h y.tab.h config.make
-opt/lex.yy.o: $(DEP_opt/lex.yy.o)
-DEP_opt/y.tab.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./utf8.h $(top_srcdir)/./match.h $(top_srcdir)/./hash.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h config.make
-opt/y.tab.o: $(DEP_opt/y.tab.o)
-DEP_opt/match.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./eval.h $(top_srcdir)/./match.h config.make
-opt/match.o: $(DEP_opt/match.o)
-DEP_opt/lib.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-opt/lib.o: $(DEP_opt/lib.o)
-DEP_opt/regex.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./parser.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-opt/regex.o: $(DEP_opt/regex.o)
-DEP_opt/gc.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./txr.h $(top_srcdir)/./eval.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h config.make
-opt/gc.o: $(DEP_opt/gc.o)
-DEP_opt/unwind.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./txr.h $(top_srcdir)/./signal.h $(top_srcdir)/./eval.h $(top_srcdir)/./parser.h $(top_srcdir)/./unwind.h config.make
-opt/unwind.o: $(DEP_opt/unwind.o)
-DEP_opt/stream.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h config.make
-opt/stream.o: $(DEP_opt/stream.o)
-DEP_opt/arith.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./arith.h config.make
-opt/arith.o: $(DEP_opt/arith.o)
-DEP_opt/hash.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h config.make
-opt/hash.o: $(DEP_opt/hash.o)
-DEP_opt/utf8.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h config.make
-opt/utf8.o: $(DEP_opt/utf8.o)
-DEP_opt/filter.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./match.h $(top_srcdir)/./filter.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h config.make
-opt/filter.o: $(DEP_opt/filter.o)
-DEP_opt/eval.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./match.h $(top_srcdir)/./rand.h $(top_srcdir)/./txr.h $(top_srcdir)/./combi.h $(top_srcdir)/./eval.h config.make
-opt/eval.o: $(DEP_opt/eval.o)
-DEP_opt/rand.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./eval.h config.make
-opt/rand.o: $(DEP_opt/rand.o)
-DEP_opt/combi.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./hash.h $(top_srcdir)/./combi.h config.make
-opt/combi.o: $(DEP_opt/combi.o)
-DEP_opt/sysif.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./utf8.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h config.make
-opt/sysif.o: $(DEP_opt/sysif.o)
-DEP_opt/mpi-1.8.6/mpi.o := config.h $(top_srcdir)/mpi-1.8.6/mpi.h $(top_srcdir)/mpi-1.8.6/logtab.h config.make
-opt/mpi-1.8.6/mpi.o: $(DEP_opt/mpi-1.8.6/mpi.o)
-DEP_opt/mpi-1.8.6/mplogic.o := config.h $(top_srcdir)/mpi-1.8.6/mplogic.h config.make
-opt/mpi-1.8.6/mplogic.o: $(DEP_opt/mpi-1.8.6/mplogic.o)
-DEP_opt/debug.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./debug.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h config.make
-opt/debug.o: $(DEP_opt/debug.o)
-DEP_opt/syslog.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./syslog.h config.make
-opt/syslog.o: $(DEP_opt/syslog.o)
-DEP_opt/signal.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h config.make
-opt/signal.o: $(DEP_opt/signal.o)
-DEP_dbg/txr.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./parser.h $(top_srcdir)/./match.h $(top_srcdir)/./utf8.h $(top_srcdir)/./debug.h $(top_srcdir)/./syslog.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h $(top_srcdir)/./arith.h $(top_srcdir)/./txr.h config.make
-dbg/txr.o: $(DEP_dbg/txr.o)
-DEP_dbg/lex.yy.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./hash.h $(top_srcdir)/./parser.h $(top_srcdir)/./eval.h y.tab.h config.make
-dbg/lex.yy.o: $(DEP_dbg/lex.yy.o)
-DEP_dbg/y.tab.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./utf8.h $(top_srcdir)/./match.h $(top_srcdir)/./hash.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h config.make
-dbg/y.tab.o: $(DEP_dbg/y.tab.o)
-DEP_dbg/match.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./eval.h $(top_srcdir)/./match.h config.make
-dbg/match.o: $(DEP_dbg/match.o)
-DEP_dbg/lib.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./filter.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-dbg/lib.o: $(DEP_dbg/lib.o)
-DEP_dbg/regex.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./parser.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./gc.h $(top_srcdir)/./regex.h $(top_srcdir)/./txr.h config.make
-dbg/regex.o: $(DEP_dbg/regex.o)
-DEP_dbg/gc.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./txr.h $(top_srcdir)/./eval.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h config.make
-dbg/gc.o: $(DEP_dbg/gc.o)
-DEP_dbg/unwind.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./stream.h $(top_srcdir)/./txr.h $(top_srcdir)/./signal.h $(top_srcdir)/./eval.h $(top_srcdir)/./parser.h $(top_srcdir)/./unwind.h config.make
-dbg/unwind.o: $(DEP_dbg/unwind.o)
-DEP_dbg/stream.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./regex.h config.make
-dbg/stream.o: $(DEP_dbg/stream.o)
-DEP_dbg/arith.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./arith.h config.make
-dbg/arith.o: $(DEP_dbg/arith.o)
-DEP_dbg/hash.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h config.make
-dbg/hash.o: $(DEP_dbg/hash.o)
-DEP_dbg/utf8.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h config.make
-dbg/utf8.o: $(DEP_dbg/utf8.o)
-DEP_dbg/filter.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./match.h $(top_srcdir)/./filter.h $(top_srcdir)/./gc.h $(top_srcdir)/./eval.h $(top_srcdir)/./stream.h config.make
-dbg/filter.o: $(DEP_dbg/filter.o)
-DEP_dbg/eval.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./arith.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./regex.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./hash.h $(top_srcdir)/./debug.h $(top_srcdir)/./match.h $(top_srcdir)/./rand.h $(top_srcdir)/./txr.h $(top_srcdir)/./combi.h $(top_srcdir)/./eval.h config.make
-dbg/eval.o: $(DEP_dbg/eval.o)
-DEP_dbg/rand.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./arith.h $(top_srcdir)/./rand.h $(top_srcdir)/./eval.h config.make
-dbg/rand.o: $(DEP_dbg/rand.o)
-DEP_dbg/combi.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./hash.h $(top_srcdir)/./combi.h config.make
-dbg/combi.o: $(DEP_dbg/combi.o)
-DEP_dbg/sysif.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./signal.h $(top_srcdir)/./utf8.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h $(top_srcdir)/./sysif.h config.make
-dbg/sysif.o: $(DEP_dbg/sysif.o)
-DEP_dbg/mpi-1.8.6/mpi.o := config.h $(top_srcdir)/mpi-1.8.6/mpi.h $(top_srcdir)/mpi-1.8.6/logtab.h config.make
-dbg/mpi-1.8.6/mpi.o: $(DEP_dbg/mpi-1.8.6/mpi.o)
-DEP_dbg/mpi-1.8.6/mplogic.o := config.h $(top_srcdir)/mpi-1.8.6/mplogic.h config.make
-dbg/mpi-1.8.6/mplogic.o: $(DEP_dbg/mpi-1.8.6/mplogic.o)
-DEP_dbg/debug.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./debug.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./stream.h $(top_srcdir)/./parser.h $(top_srcdir)/./txr.h config.make
-dbg/debug.o: $(DEP_dbg/debug.o)
-DEP_dbg/syslog.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./stream.h $(top_srcdir)/./hash.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./utf8.h $(top_srcdir)/./eval.h $(top_srcdir)/./syslog.h config.make
-dbg/syslog.o: $(DEP_dbg/syslog.o)
-DEP_dbg/signal.o := config.h $(top_srcdir)/./lib.h $(top_srcdir)/./gc.h $(top_srcdir)/./signal.h $(top_srcdir)/./unwind.h $(top_srcdir)/./eval.h config.make
-dbg/signal.o: $(DEP_dbg/signal.o)