Changeset 213 for trunk/src/emx/Makefile
- Timestamp:
- May 21, 2003, 11:57:27 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/src/emx/Makefile (modified) (8 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.11to1.12
r212 r213 82 82 DO.LINK.dll = $(LD) $(strip $(LDFLAGS.DLL) $(filter-out -l%,$1)) -o $@ $(^O) $(^DEF) $(^LIB) $(filter -l%,$1) 83 83 84 # emxbind tool - you can depend on EMXBIND.BUILT :-) 85 EMXBIND = $(if $(wildcard $(EMXBIND.BUILT)),$(EMXBIND.BUILT),emxbind$E) 86 EMXBIND.BUILT = $.$(TOOLFMT)/emxbind$E 84 # emxbind tool 85 EMXBIND = $(call FINDTOOL,emxbind) 87 86 # emxbind flags 88 87 EMXBINDFLAGS = -q $(EMXBINDFLAGS.$(MODE)) … … 103 102 DO.LIBRARY = $(call RM,$@); $(AR) $(ARFLAGS)$1 $@ $(^O) 104 103 105 # The tool to extract exports from object files and archives 106 EMXEXP = $(if $(wildcard $(EMXEXP.BUILT)),$(EMXEXP.BUILT),emxexp$E) 107 EMXEXP.BUILT = $./$(TOOLFMT)/emxexp$E 104 # The tool to extract exports from object files and archives, 105 # removing unused stuff (like empty lines and comments) 106 # and sorting alphabetically (looks nicer). 107 EMXEXP = $(call FINDTOOL,emxexp) 108 EMXEXPFLAGS = -u 109 DO.EMXEXP = $(EMXEXP) $(strip $(EMXEXPFLAGS) $1) $^ | sed -e "/^$$/d" -e "/^ *;/d" | sort -d >>$@ 108 110 109 111 # The tool to create import libraries 110 IMPLIB = $(if $(wildcard $(IMPLIB.BUILT)),$(IMPLIB.BUILT),emximp$E) 111 IMPLIB.BUILT = $./$(TOOLFMT)/emximp$E 112 IMPLIB = $(call FINDTOOL,emximp) 112 113 IMPLIBFLAGS.prof = -m 113 114 IMPLIBFLAGS.KIND = $(foreach x,$(subst -, ,$(firstword $(subst /, ,$(subst $.,,$@)))),$(IMPLIBFLAGS.$x)) … … 122 123 123 124 # How to convert an a.out file to the OMF format 124 EMXOMF = $(if $(wildcard $(EMXOMF.BUILT)),$(EMXOMF.BUILT),emxomf$E) 125 EMXOMF.BUILT = $./$(TOOLFMT)/emxomf$E 126 DO.AOUT2OMF = $(EMXOMF) $(strip $1 -o) $@ $< 125 EMXOMF = $(call FINDTOOL,emxomf) 126 DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $< 127 127 128 128 # How to filter just the object files from $^ … … 134 134 # How to filter the libraries from $^ 135 135 ^LIB = $(filter %.$(if $(findstring omf,$(.TKIND)),lib,a),$^) 136 # This function finds a tool: if it has been already built, prefer it 137 FINDTOOL = $(firstword $(wildcard $.$(TOOLFMT)/$1$E) $(wildcard $(OUT)dbg/aout/$1$E) $1) 136 138 137 139 # A newline … … 187 189 TARGDEPEND := 188 190 189 .PHONY: default help all clean install cleandep cleandepend dep depend depdone191 .PHONY: default help all tools clean install cleandep cleandepend dep depend depdone 190 192 .SUFFIXES: 191 193 .SUFFIXES: .c .cpp .asm .s .o .exe .dll .a .lib .obj … … 207 209 help: 208 210 @$(call ECHO,$(SEP)) 209 @$(call ECHO,Welcome to $(PACKAGE) build system!)211 @$(call ECHO,Welcome to $(PACKAGE) version $(VERSION) build system!) 210 212 @$(call ECHO,$(COPYRIGHT)) 211 213 @$(call ECHO,To build something, type 'make {target} {vars}', where {target} is one of:) 212 214 @$(call ECHO, all - build all available modules) 213 215 @$(call ECHO, {module-name} - build just a particular module) 216 @$(call ECHO, tools - build just the tools) 214 217 @$(call ECHO, clean - remove all generated files (remove all built files)) 215 218 @$(call ECHO, install - generate a installation tree in $(INS)) … … 247 250 # bird: add rule for forcibly re-generating the rules. 248 251 rules: 249 @$(call RM,$ (OUT)genrules.smak)250 $(MAKE) $ (OUT)genrules.smak251 252 $ (OUT)genrules.smak: $(SUBMAK) # Makefile $(wildcard *.smak)253 @$(call MKDIR,$ (OUT))252 @$(call RM,$.genrules.smak) 253 $(MAKE) $.genrules.smak 254 255 $.genrules.smak: $(SUBMAK) # Makefile $(wildcard *.smak) 256 @$(call MKDIR,$.) 254 257 @$(call ECHO,Please wait, rebuilding make rules ...) 255 258 @$(call RM,$@) … … 259 262 # The general a.out -> OMF conversion rule for object files 260 263 $.omf/%.obj: $.aout/%.o 261 $(call DO. AOUT2OMF)264 $(call DO.EMXOMF) 262 265 263 266 # The general a.out -> OMF conversion rule for libraries 264 267 $.omf%.lib: $.aout%.a 265 $(call DO. AOUT2OMF)266 267 -include $ (OUT)genrules.smak268 $(call DO.EMXOMF) 269 270 -include $.genrules.smak -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
