mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
New version of wmake supporting out-of-tree object and dependency files
This commit is contained in:
15
wmake/rules/General/transform
Normal file
15
wmake/rules/General/transform
Normal 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),' > $@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user