mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 18:31:27 +00:00
Get automatic dependencies working for the progs files.
Including dependencies on QFCC itself :)
This commit is contained in:
parent
92d2b4107c
commit
538879b451
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue