Changeset 566 for trunk/src/emx/Makefile
- Timestamp:
- Aug 10, 2003, 5:24:21 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.31
to1.32
r565 r566 15 15 # 16 16 # For a brief description of how build system works please read build.txt 17 # 18 # Bootstrapping sequence using EMX gcc compiler: 19 # 20 # 1. Backup include/ctype.h and rename include/ctype.h-bootstrap to 21 # include/ctype.h 22 # 2. Run 'make os2', put the resulting library os2.a to emx/lib as _os2.a, 23 # and convert it to .lib with emxomf: 'emxomf _os2.a' 24 # 3. Now compile everything you wish this way: 'make LIBS=-l_os2' 25 # 17 26 18 27 # Build type control variables. You can set them right from command line, … … 67 76 CC = gcc -c -Zmt 68 77 # The C compiler flags 69 CFLAGS.INC = -Iinclude -Isrc/include78 CFLAGS.INC += -Iinclude -Isrc/include 70 79 CFLAGS = -Wall -mstack-arg-probe $(CFLAGS.INC) $(CFLAGS.$(MODE)) $(CFLAGS.KIND) 71 80 # The additional C compiler flags for different build modes … … 86 95 LD = gcc 87 96 # Linker flags 88 LDFLAGS = $(LDFLAGS.$(MODE)) $(LDFLAGS.KIND) -Zmap -Zstack 1024 97 LDFLAGS = $(LDFLAGS.$(MODE)) $(LDFLAGS.KIND) -Zmap -Zstack 1024 $(LIBS) 89 98 LDFLAGS.DLL = $(LDFLAGS) -Zdll 90 99 # Linker flags for different build modes … … 167 176 EMXOMF = `test -f '$.$(TOOLFMT)/emxomf$E' && echo '$.$(TOOLFMT)/'`emxomf$E 168 177 DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $(if $<,$<, $(subst /omf/,/aout/,$(@:.obj=.o)) ) 178 179 # How to copy some file to installation directory 180 # In optimize mode we have to strip the libraries after copying 181 INSTALL=$(call CP,$1,$2) 182 ifeq ($(MODE),opt) 183 INSTALL += $(if $(filter-out %.a,$2),$(NL)strip --strip-debug $2) 184 INSTALL += $(if $(filter-out %.lib,$2),$(NL)emxomf -s $2) 185 endif 169 186 170 187 # How to filter just the object files from $^ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.