Changeset 236 for trunk/src/emx/Makefile
- Timestamp:
- May 26, 2003, 4:43:12 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/src/emx/Makefile (modified) (9 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.15to1.16
r235 r236 47 47 48 48 # The C compiler 49 CC = gcc -c 49 CC = gcc -c -Zmt 50 50 # The C compiler flags 51 51 CFLAGS.INC = -Iinclude -Isrc/include 52 CFLAGS = -Wall -mstack-arg-probe -Zmt$(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND)52 CFLAGS = -Wall -mstack-arg-probe $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND) 53 53 # The additional C compiler flags for different build modes 54 54 CFLAGS.opt = -s -O3 55 CFLAGS.dbg = -g 55 CFLAGS.dbg = -g -DDEBUG 56 56 CFLAGS.aout = 57 57 CFLAGS.omf = -Zomf … … 65 65 66 66 # The linker 67 LD = gcc 67 LD = gcc -Zmt 68 68 # Linker flags 69 LDFLAGS = -Zmt$(LDFLAGS.$(MODE)) $(LDFLAGS.KIND)69 LDFLAGS = $(LDFLAGS.$(MODE)) $(LDFLAGS.KIND) 70 70 LDFLAGS.DLL = $(LDFLAGS) -Zdll 71 71 # Linker flags for different build modes … … 126 126 MAKEDEPFLAGS = $(CFLAGS.INC) 127 127 DO.DEPS = $(MAKEDEP) $(MAKEDEPFLAGS) \ 128 -I$(subst $(SPACE), -I,$(sort $(dir $^))) - p$(@D)/ -c -S -f$@ $^128 -I$(subst $(SPACE), -I,$(sort $(dir $^))) -I$. -p$(@D)/ -c -S -f$@ $^ 129 129 130 130 # How to convert an a.out file to the OMF format … … 166 166 # Miscelaneous tools 167 167 MKDIR = mkdir.exe -p $1 168 # How to update a file only if it has been changed 169 UPDATE = (cmp -s $1 $2 || mv -f $1 $2) && rm -f $1 170 # How to touch a file 171 TOUCH = touch $1 168 172 # Re-build the original string including the ',' between args. Also escape 169 173 # dollars since otherwise ash would expand them. … … 186 190 DO.HELP.VARS := $(call ECHO, MODE={dbg|opt} - choose between debug and optimized build modes.)$(NL) 187 191 DO.HELP.VARS += $(call ECHO, OBJF={omf|aout} - build object files in omf or a.out format.)$(NL) 188 # The commands to install everything we have built189 DO.INSTALL :=190 # The list of install directories191 INSDIRS :=192 192 # The list of work directories needeed for building all targets 193 193 TARGDIRS := … … 196 196 # The list of dependency files 197 197 TARGDEPEND := 198 199 .PHONY: default help all tools clean install cleandep cleandepend dep depend depdone 198 # The list of installed files 199 INS.FILES := 200 201 .PHONY: default help all libs tools clean install install cleandep \ 202 cleandepend dep depend depdone 200 203 .SUFFIXES: 201 204 .SUFFIXES: .c .cpp .asm .s .o .exe .dll .a .lib .obj … … 210 213 -include $(SUBMAK) 211 214 212 # Sort and remove duplicate installdirectories215 # Sort and remove duplicate directories 213 216 TARGDIRS := $(sort $(TARGDIRS)) 214 INSDIRS := $(sort $(INSDIRS)) 217 # Find out which directories are needed for installation 218 INSDIRS := $(sort $(dir $(INS.FILES))) 215 219 216 220 #------------ Global targets ------------ … … 223 227 @$(call ECHO, {module-name} - build just a particular module) 224 228 @$(call ECHO, tools - build just the tools) 229 @$(call ECHO, libs - build all libraries) 225 230 @$(call ECHO, clean - remove all generated files (remove all built files)) 226 231 @$(call ECHO, install - generate a installation tree in $(INS)) … … 250 255 @$(call ECHO,Dependency files succesfully updated) 251 256 252 install: all $(INSDIRS) 253 $(DO.INSTALL) 257 install: all $(INSDIRS) $(INS.FILES) 254 258 255 259 $. $(INSDIRS) $(TARGDIRS): -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
