- Timestamp:
- Sep 29, 2003, 4:28:38 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.35
to1.36
r747 r748 73 73 A = .$(if $(findstring omf,$(.TKIND)),lib,a) 74 74 75 # Use the tool we built. 76 GETTOOL ?= $.$(TOOLFMT)/$1$E 77 # Use the tool we built if present 78 GETTOOL2 ?= `test -f '$.$(TOOLFMT)/$1$E' && echo '$.$(TOOLFMT)/'`$1$E 79 75 80 # The C compiler 76 81 CC = gcc -c -Zmt 77 82 # The C compiler flags 78 CFLAGS.INC += -Iinclude -Isrc/include 83 ifndef NO_LOCAL_HEADERS 84 CFLAGS.INC += -Iinclude 85 endif 86 CFLAGS.INC += -Isrc/include 79 87 CFLAGS = -Wall -Wmissing-prototypes -mstack-arg-probe $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND) 80 88 # The additional C compiler flags for different build modes … … 126 134 127 135 # emxbind tool 128 EMXBIND = $ .$(TOOLFMT)/emxbind$E136 EMXBIND = $(call GETTOOL,emxbind) 129 137 # emxbind flags 130 138 EMXBINDFLAGS = -bq $(EMXBINDFLAGS.$(MODE)) … … 146 154 147 155 # The tool to create an archive 148 AR = $(if $(findstring .lib,$@), emxomf)ar156 AR = $(if $(findstring .lib,$@), $(call GETTOOL2,emxomfar),ar) 149 157 ARFLAGS = crs 150 158 DO.LIBRARY = $(call RM,$@); $(AR) $(ARFLAGS)$1 $@ $(^O) … … 153 161 # removing unused stuff (like empty lines and comments) 154 162 # and sorting alphabetically (looks nicer). 155 EMXEXP = $ .$(TOOLFMT)/emxexp$E163 EMXEXP = $(call GETTOOL,emxexp) 156 164 EMXEXPFLAGS = -u 157 165 DO.EMXEXP = $(EMXEXP) $(strip $(EMXEXPFLAGS) $1) | sed -e "/^$$/d" -e "/^ *;/d" | sort -d >>$2 158 166 159 167 # The tool to create import libraries 160 IMPLIB = $ .$(TOOLFMT)/emximp$E168 IMPLIB = $(call GETTOOL,emximp) 161 169 IMPLIBFLAGS.prof = -m 162 170 IMPLIBFLAGS.KIND = $(foreach x,$(subst -, ,$(firstword $(subst /, ,$(subst $.,,$@)))),$(IMPLIBFLAGS.$x)) … … 174 182 # or not. Unfortunately make isn't up to the job of figuring this out, so we 175 183 # must use the shell. 176 EMXOMF = `test -f '$.$(TOOLFMT)/emxomf$E' && echo '$.$(TOOLFMT)/'`emxomf$E184 EMXOMF = $(call GETTOOL2,emxomf) 177 185 DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $(if $<,$<, $(subst /omf/,/aout/,$(@:.obj=.o)) ) 178 186 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.