aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix/Makefile
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-05 03:34:01 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-05 03:34:01 +0000
commit57a98f2182b9b8f2355bcc624d57f7292035c1d8 (patch)
treef3d4ffa47b0ca478bbce2c535aad15eb57b8f69e /code/unix/Makefile
parent75f1e44cc2898d3be139d611de817225da70b53a (diff)
downloadioquake3-aero-57a98f2182b9b8f2355bcc624d57f7292035c1d8.tar.gz
ioquake3-aero-57a98f2182b9b8f2355bcc624d57f7292035c1d8.zip
* Dependency generation for the .asm files
git-svn-id: svn://svn.icculus.org/quake3/trunk@460 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix/Makefile')
-rw-r--r--code/unix/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/code/unix/Makefile b/code/unix/Makefile
index 82bbe0a..28132f5 100644
--- a/code/unix/Makefile
+++ b/code/unix/Makefile
@@ -583,7 +583,8 @@ ifneq ($(BUILD_GAME_QVM),0)
$(B)/baseq3/vm/ui.qvm \
$(B)/missionpack/vm/qagame.qvm \
$(B)/missionpack/vm/cgame.qvm \
- $(B)/missionpack/vm/ui.qvm
+ $(B)/missionpack/vm/ui.qvm \
+ qvmdeps
endif
endif
@@ -1640,6 +1641,16 @@ installer: build_release
D_FILES=$(shell find . -name '*.d')
+$(B)/baseq3/vm/vm.d: $(Q3GOBJ) $(Q3CGOBJ) $(Q3UIOBJ)
+ -rm -f $@
+ find $(B)/baseq3 -iname '*.d' | xargs sed -e 's/\.o/\.asm/g' > $@
+
+$(B)/missionpack/vm/vm.d: $(MPGOBJ) $(MPCGOBJ) $(MPUIOBJ)
+ -rm -f $@
+ find $(B)/missionpack -iname '*.d' | xargs sed -e 's/\.o/\.asm/g' > $@
+
+qvmdeps: $(B)/baseq3/vm/vm.d $(B)/missionpack/vm/vm.d
+
ifneq ($(strip $(D_FILES)),)
include $(D_FILES)
endif