New version of wmake supporting out-of-tree object and dependency files

This commit is contained in:
Henry
2014-12-14 21:42:18 +00:00
parent bd2f16e2d3
commit 844b283030
251 changed files with 1466 additions and 1847 deletions

View File

@ -0,0 +1,15 @@
#-------------------------------*- makefile -*---------------------------------
define DEFINE_TRANSFORM
$(OBJECTS_DIR)/%.o : %$1
$$($(subst .,,$(1))too)
endef
$(foreach s,$(SUFFIXES),$(eval $(call DEFINE_TRANSFORM,$(s))))
$(OBJECTS_DIR)/%.dep : %
@$(WM_SCRIPTS)/makeTargetDir $@
@$(WMAKE_BIN)/wmkdep -I$(*D) $(LIB_HEADER_DIRS) $< | \
sed 's,$(WM_PROJECT_DIR),$$(WM_PROJECT_DIR),' > $@
#------------------------------------------------------------------------------