Changeset 123 for trunk/src/emx/common.smak
- Timestamp:
- May 12, 2003, 12:48:43 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/common.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r122 r123 19 19 .tmp := omf 20 20 endif # neq ($(findstring aout,$(.TKIND)),) 21 ifneq ($(findstring mt,$(.TKIND)),)22 .tmp += mt23 else24 .tmp += st25 endif # neq ($(findstring mt,$(.TKIND)),)26 21 ifneq ($(findstring prof,$(.TKIND)),) 27 22 .tmp += prof … … 29 24 .TKIND := $(.tmp) 30 25 .TKIND.DIR := $(subst $(SPACE),-,$(.TKIND))/ 31 .tmp := 26 27 ifdef .TARGET 32 28 33 29 # .TARG is same as .TARGET except that it has a st/ or mt/ prefix … … 35 31 36 32 ifdef .INSDIR 37 DO.INSTALL += cp.exe $.$(.TARG) $(INS)$(.INSDIR)$(.TARGET)$(NL)33 DO.INSTALL += $(call CP,$.$(.TARG),$(INS)$(.INSDIR)$(.TARGET))$(NL) 38 34 INSDIRS += $(INS)$(.INSDIR) 39 35 endif # def .INSDIR 36 37 # We know how to create dependency files for .c and .cpp files 38 .tmp := $(strip $(filter %.c,$(.TSRC)) $(filter %.cpp,$(.TSRC))) 39 ifdef .tmp 40 # Read the dependency file 41 -include $.$(.TKIND.DIR)dep-$(.TARGET).smak 42 43 TARGDEPEND += $.$(.TKIND.DIR)dep-$(.TARGET).smak 44 45 ifdef BUILD_DEPS 46 # How to build the dependency file 47 $.$(.TKIND.DIR)dep-$(.TARGET).smak: $(.tmp) 48 $(DO.DEPS) 49 endif # BUILD_DEPS 50 endif # def .tmp 51 52 endif # def .TARGET 40 53 41 54 # If module has any source files, find respective object file names … … 47 60 TARGDIRS += $(.DIRS) 48 61 62 ifdef .MDEP 63 $(.MODULE): $(.MDEP) 64 .MDEP := 65 endif 66 67 ifdef .MODULE 49 68 $(.MODULE): $(.DIRS) $.$(.TARG) 69 endif 50 70 51 71 # Remove the names of files for which we already generated build rules … … 61 81 BUILD.RULES += $(.TSRC) 62 82 .TSRC := $(filter-out $(.OBJS),$(subst :, ,$(.TSRC))) 63 64 #.TSRC := $(foreach x,$(.TSRC),$(if $(findstring $(call OBJFILE,$x):$x,$(BUILD.RULES)),,$x))65 #BUILD.RULES += $(foreach x,$(.TSRC),$(if $(findstring $(call OBJFILE,$x):$x,$(BUILD.RULES)),,$(call OBJFILE,$x):$x))66 83 67 84 # Generate compilation rules for C files -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.