From 538879b4516832faf36f828ba858c7d0f5947d96 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 22 Nov 2012 17:11:21 +0900 Subject: [PATCH] Get automatic dependencies working for the progs files. Including dependencies on QFCC itself :) --- tools/qfcc/test/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/test/Makefile.am b/tools/qfcc/test/Makefile.am index a21f5e643..a98cc2001 100644 --- a/tools/qfcc/test/Makefile.am +++ b/tools/qfcc/test/Makefile.am @@ -6,10 +6,13 @@ QFCC=$(QFCC_DEP) QCFLAGS=-qq -g --no-default-paths QCPPFLAGS= +QCOMPILE=$(QFCC) $(QCFLAGS) $(QCPPFLAGS) SUFFIXES=.qfo .r .r.qfo: - $(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $< + $(QCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tqo -c -o $@ $< + sed -i -e '1s@:@: $(QFCC_DEP)@' $(DEPDIR)/$*.Tqo + $(am__mv) $(DEPDIR)/$*.Tqo $(DEPDIR)/$*.Qo QFCC_TEST_LIBS=@QFCC_TEST_LIBS@ QFCC_TEST_DEPS=@QFCC_TEST_DEPS@ @@ -39,5 +42,7 @@ while.dat: $(while_obj) $(QFCC_DEP) while.run: Makefile build-run $(srcdir)/build-run $@ +include ./$(DEPDIR)/*.Qo + EXTRA_DIST= test-bi.h build-run CLEANFILES= *.dat *.sym *.qfo *.run