Changeset 427 for trunk/src/emx/Makefile
- Timestamp:
- Jul 23, 2003, 3:18:54 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.24
to1.25
r426 r427 28 28 CPU = 386 29 29 # The object file format to use for tools (emxomf, ld and friends) 30 TOOLFMT.dbg = aout30 TOOLFMT.dbg = omf 31 31 TOOLFMT.opt = omf 32 32 TOOLFMT = $(TOOLFMT.$(MODE)) … … 49 49 CC = gcc -c -Zmt 50 50 # The C compiler flags 51 CFLAGS.INC = -Iinclude -Isrc/include52 CFLAGS = -Wall -mstack-arg-probe $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND)51 CFLAGS.INC = -Iinclude -Isrc/include 52 CFLAGS = -Wall -mstack-arg-probe $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND) 53 53 # The additional C compiler flags for different build modes 54 CFLAGS.opt = -s-O355 CFLAGS.dbg = -g -DDEBUG54 CFLAGS.opt = -g -O3 55 CFLAGS.dbg = -g -DDEBUG 56 56 CFLAGS.aout = 57 CFLAGS.omf = -Zomf57 CFLAGS.omf = -Zomf 58 58 CFLAGS.prof = -pg 59 59 # The object files are put in subdirectory objectformat-targetkind, … … 65 65 66 66 # The linker 67 LD = gcc -Zmt67 LD = gcc 68 68 # Linker flags 69 LDFLAGS = $(LDFLAGS.$(MODE)) $(LDFLAGS.KIND)-Zstack 102469 LDFLAGS = $(LDFLAGS.$(MODE)) $(LDFLAGS.KIND) -Zmap -Zstack 1024 70 70 LDFLAGS.DLL = $(LDFLAGS) -Zdll 71 71 # Linker flags for different build modes 72 LDFLAGS.opt = - s-Zcrtdll=c_dll72 LDFLAGS.opt = -g -Zcrtdll=c_dll 73 73 LDFLAGS.dbg = -g 74 74 LDFLAGS.aout = 75 LDFLAGS.omf = -Zomf -Z sys -Zlinker /PM:VIO75 LDFLAGS.omf = -Zomf -Zlinker /PM:VIO -Zlinker /LINENUMBERS 76 76 LDFLAGS.prof = -pg 77 77 # Linker flags for different kinds of target … … 90 90 # shared, data segment is not shared, but must be reloaded page by page 91 91 # from the executable in new processes. </rant> 92 # URG! we must not do this for ldstub.bin! 92 93 ifeq ($(MODE),opt) 93 DO.LINK.exe += $( NL)lxlite /X /AS $@94 DO.LINK.dll += $(NL) lxlite /X /AS $@94 DO.LINK.exe += $(if $(findstring .exe,$@), $(NL)cp $@ $(basename $@).dbg $(NL)lxlite /X /AS $@) 95 DO.LINK.dll += $(NL)cp $@ $(basename $@).dbg $(NL)lxlite /X /AS $@ 95 96 endif 96 97 … … 144 145 # must use the shell. 145 146 EMXOMF = `test -f '$.$(TOOLFMT)/emxomf$E' && echo '$.$(TOOLFMT)/'`emxomf$E 146 DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $ <147 DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $(if $<,$<, $(subst /omf/,/aout/,$(@:.obj=.o)) ) 147 148 148 149 # How to filter just the object files from $^ … … 283 284 284 285 # The general a.out -> OMF conversion rule for object files 285 $.omf/%.obj: 286 $.omf/%.obj: 286 287 $(call DO.EMXOMF) 287 288 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.