diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-12-10 19:16:03 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-12-10 19:16:03 -0800 |
commit | b078354aa1a2e24c827307764521e9666670eb11 (patch) | |
tree | 93ded2451332c0e25bf724a43b33f11b4bfcc376 /depend.txr | |
parent | c63b7549a408a059776151d6dfc6889dbb3979a5 (diff) | |
download | txr-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 'depend.txr')
-rw-r--r-- | depend.txr | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/depend.txr b/depend.txr deleted file mode 100644 index 120ab1bd..00000000 --- a/depend.txr +++ /dev/null @@ -1,25 +0,0 @@ -@(next :args) -@(collect) -@(cases) -@conf/@dir/@file.o -@(bind pfx `@conf/@dir`) -@(or) -@conf/@file.o -@(bind dir ".") -@(bind pfx conf) -@(end) -@(next `@dir/@file.c`) -@(collect) -#include "@hdr" -@(cases) -@(bind hdr ("y.tab.h" "config.h")) -@(bind header hdr) -@(or) -@(bind header `$(top_srcdir)/@dir/@hdr`) -@(end) -@(end) -@(output) -DEP_@pfx/@file.o :=@(rep) @header@(end) config.make -@pfx/@file.o: $(DEP_@pfx/@file.o) -@(end) -@(end) |