- Timestamp:
- May 28, 2003, 3:41:18 PM (22 years ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.17
to1.18
r258 r259 70 70 LDFLAGS.DLL = $(LDFLAGS) -Zdll 71 71 # Linker flags for different build modes 72 LDFLAGS.opt = -s 72 LDFLAGS.opt = -s -Zcrtdll=c_dll -Zstack 64 73 73 LDFLAGS.dbg = -g 74 74 LDFLAGS.aout = 75 LDFLAGS.omf = -Zomf -Zsys -Z small-conv -Zlinker /PM:VIO75 LDFLAGS.omf = -Zomf -Zsys -Zlinker /PM:VIO 76 76 LDFLAGS.prof = -pg 77 77 # Linker flags for different kinds of target … … 82 82 DO.LINK.dll = $(LD) $(strip $(LDFLAGS.DLL) $(filter-out -l%,$1)) -o $@ $(^O) $(^DEF) $(^LIB) $(filter -l%,$1) 83 83 84 # Pack executables and DLLs right after they are linked 85 ifeq ($(MODE),opt) 86 DO.LINK.exe += $(NL)lxlite $@ 87 DO.LINK.dll += $(NL)lxlite $@ 88 endif 89 84 90 # emxbind tool 85 91 #EMXBIND = $(call FINDTOOL,emxbind) 86 92 EMXBIND = $.$(TOOLFMT)/emxbind$E 87 EMXBIND.DEPON = emxbind $.$(TOOLFMT)/emxbind$E88 93 # emxbind flags 89 EMXBINDFLAGS = - q $(EMXBINDFLAGS.$(MODE))94 EMXBINDFLAGS = -bq $(EMXBINDFLAGS.$(MODE)) 90 95 EMXBINDFLAGS.opt = -s 91 96 EMXBINDFLAGS.dbg = … … 109 114 #EMXEXP = $(call FINDTOOL,emxexp) 110 115 EMXEXP = $.$(TOOLFMT)/emxexp$E 111 EMXEXP.DEPON = emxexp $.$(TOOLFMT)/emxexp$E112 116 EMXEXPFLAGS = -u 113 117 DO.EMXEXP = $(EMXEXP) $(strip $(EMXEXPFLAGS) $1) $^ | sed -e "/^$$/d" -e "/^ *;/d" | sort -d >>$@ … … 116 120 #IMPLIB = $(call FINDTOOL,emximp) 117 121 IMPLIB = $.$(TOOLFMT)/emximp$E 118 EMXIMP.DEPON = emximp $.$(TOOLFMT)/emximp$E119 122 IMPLIBFLAGS.prof = -m 120 123 IMPLIBFLAGS.KIND = $(foreach x,$(subst -, ,$(firstword $(subst /, ,$(subst $.,,$@)))),$(IMPLIBFLAGS.$x)) … … 131 134 # We must use FINDTOOL here 'cause of the two libs which emxomf depends on 132 135 EMXOMF = $(call FINDTOOL,emxomf) 133 EMXOMF.DEPON = emxomf $.$(TOOLFMT)/emxomf$E134 136 DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $< 135 137 … … 273 275 274 276 # The general a.out -> OMF conversion rule for object files 275 $.omf/%.obj: $.aout/%.o277 $.omf/%.obj: 276 278 $(call DO.EMXOMF) 277 279 278 280 # The general a.out -> OMF conversion rule for libraries 279 $.omf%.lib: $.aout%.a281 $.omf%.lib: 280 282 $(call DO.EMXOMF) 281 283 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/include.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r258 r259 6 6 $(INS)include/sys/%.h: include/sys/%.h 7 7 $(call CP,$<,$@) 8 8 9 9 INS.FILES += $(addprefix $(INS), $(wildcard include/386/*.h)) 10 10 $(INS)include/386/%.h: include/386/%.h 11 11 $(call CP,$<,$@) 12 12 13 13 INS.FILES += $(addprefix $(INS), $(wildcard include/arpa/*.h)) 14 14 $(INS)include/arpa/%.h: include/arpa/%.h 15 15 $(call CP,$<,$@) 16 16 17 17 INS.FILES += $(addprefix $(INS), $(wildcard include/machine/*.h)) 18 18 $(INS)include/machine/%.h: include/machine/%.h 19 19 $(call CP,$<,$@) 20 20 21 21 INS.FILES += $(addprefix $(INS), $(wildcard include/net/*.h)) 22 22 $(INS)include/net/%.h: include/net/%.h 23 23 $(call CP,$<,$@) 24 24 25 25 INS.FILES += $(addprefix $(INS), $(wildcard include/netinet/*.h)) 26 26 $(INS)include/netinet/%.h: include/netinet/%.h … … 30 30 $(INS)include/netnb/%.h: include/netnb/%.h 31 31 $(call CP,$<,$@) 32 32 33 33 INS.FILES += $(addprefix $(INS), $(wildcard include/protocol/*.h)) 34 34 $(INS)include/protocol/%.h: include/protocol/%.h 35 35 $(call CP,$<,$@) 36 36 37 37 INS.FILES += $(addprefix $(INS), $(wildcard include/protocols/*.h)) 38 38 $(INS)include/protocols/%.h: include/protocols/%.h 39 39 $(call CP,$<,$@) 40 40 41 42 41 INS.FILES += $(addprefix $(INS), $(wildcard include/bsd/*.h)) 43 42 $(INS)include/bsd/%.h: include/bsd/%.h 44 43 $(call CP,$<,$@) 45 44 46 45 INS.FILES += $(addprefix $(INS), $(wildcard include/emx/*.h)) 47 46 $(INS)include/emx/%.h: include/emx/%.h 48 47 $(call CP,$<,$@) 49 48 50 49 INS.FILES += $(addprefix $(INS), $(wildcard include/gnu/*.h)) 51 50 $(INS)include/gnu/%.h: include/gnu/%.h 52 51 $(call CP,$<,$@) 53 52 54 53 #INS.FILES += $(addprefix $(INS), $(wildcard include/objc/*.h)) 55 54 #$(INS)include/objc/%.h: include/objc/%.h 56 55 # $(call CP,$<,$@) 57 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/uio.h
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r258 r259 52 52 /* @} */ 53 53 54 int _System readv (int, __const__ struct iovec *, int);55 int _System writev (int, __const__ struct iovec *, int);54 //@@@ name conflict - a.z. int _System readv (int, __const__ struct iovec *, int); 55 //@@@ name conflict - a.z. int _System writev (int, __const__ struct iovec *, int); 56 56 57 57 #if defined (__cplusplus) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/mkexe.smak
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r258 r259 10 10 RULES += \ 11 11 $(call FECHO,_@,$$.$(.TARG): $(.OBJS) $(.DEPS))$(NL)\ 12 $(call FECHO,_@, $$( DO.LINK.exe) $(.TLDF))$(NL)12 $(call FECHO,_@, $$(call DO.LINK.exe,$(.TLDF)))$(NL) 13 13 14 14 include comend.smak -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/mkomflib.smak
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r258 r259 5 5 ifneq ($(findstring aout,$(.TKIND)),) 6 6 7 # Remove the .a suffix from library name 8 .TARGET := $(patsubst %.a,% ,$(.TARGET))7 # Remove the .a suffix from library name and append .lib instead 8 .TARGET := $(patsubst %.a,%.lib,$(.TARGET)) 9 9 10 10 # Replace 'aout' with 'omf' in .TKIND … … 14 14 .TKIND.DIR := $(subst $(SPACE),-,$(.TKIND))/ 15 15 16 # Append the .lib suffix to target name17 .TARGET := $(.TARGET).lib18 19 16 # Compute the name of target file to build 20 17 .TARG@OMF := $(.TKIND.DIR)$(.TARGET) … … 23 20 .PHONY: $(.MODULE)@omf 24 21 22 # Add this module to the list of all modules 25 23 MODULES += $(.MODULE)@omf 24 # ... and to the list of libraries 25 libs: $(.MODULE)@omf 26 26 27 27 INS.FILES += $(INS)$(.INSDIR)$(.TARGET) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/emxbind/emxbind.smak
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r258 r259 7 7 .TKIND := $(TOOLFMT) 8 8 .TSRC := $(wildcard src/emxbind/*.c) 9 .TCF := $(CFLAGS.DEF.VERSION) 9 # -fno-inline because of a bug in 3.2.2 optimizer :-( 10 .TCF := $(CFLAGS.DEF.VERSION) -fno-inline 10 11 .TLDF := -lmoddef 11 12 .TKEEP := 1 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/emxbind/exec.c
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r258 r259 154 154 my_read (&stub_h1, sizeof (stub_h1), &stub_file); 155 155 if (stub_h1.magic != 0x5a4d) 156 error ("invalid <emx>.exe");156 error ("invalid stub file"); 157 157 src_image = (long)stub_h1.hdr_size << 4; 158 158 stub_size = ((long)stub_h1.pages << 9) - src_image; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/emxexp/emxexp.c
-
Property cvs2svn:cvs-rev
changed from
1.8
to1.9
r258 r259 207 207 export (name); 208 208 } 209 else if ((sym_ptr[i].n_type == N_EXT || 210 sym_ptr[i].n_type == (N_BSS|N_EXT) || 211 (weak_flag && sym_ptr[i].n_type == N_WEAKB)) && 212 sym_ptr[i].n_value != 0) 209 else if (sym_ptr[i].n_type == (N_BSS|N_EXT) || 210 (weak_flag && sym_ptr[i].n_type == N_WEAKB)) 213 211 { 214 212 name = str_ptr + sym_ptr[i].n_un.n_strx; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/ld/ld.c
-
Property cvs2svn:cvs-rev
changed from
1.8
to1.9
r258 r259 2538 2538 { 2539 2539 register int i; 2540 int setv_fill_count ;2540 int setv_fill_count = 0; 2541 2541 2542 2542 if (trace_files) … … 2888 2888 fprintf (outfile, "\nFiles:\n\n"); 2889 2889 2890 each_file (describe_file_sections, outfile);2890 each_file (describe_file_sections, (int)outfile); 2891 2891 2892 2892 fprintf (outfile, "\nGlobal symbols:\n\n"); … … 2906 2906 } 2907 2907 2908 each_file (list_file_locals, outfile);2908 each_file (list_file_locals, (int)outfile); 2909 2909 } 2910 2910 … … 3323 3323 struct line_debug_entry *text_scan, *data_scan; 3324 3324 int i; 3325 char *errfmt, *file_name ;3326 int line_number ;3325 char *errfmt, *file_name = NULL; 3326 int line_number = 0; 3327 3327 int dont_allow_symbol_name; 3328 3328 … … 3472 3472 return; 3473 3473 3474 each_file (do_file_warnings, outfile);3474 each_file (do_file_warnings, (int)outfile); 3475 3475 3476 3476 if (list_unresolved_refs || list_multiple_defs) … … 3492 3492 initialize_a_out_text_start () 3493 3493 { 3494 int magic ;3494 int magic = 0; 3495 3495 3496 3496 switch (output_style) … … 4652 4652 /* Write the local symbols defined by the various files. */ 4653 4653 4654 each_file (write_file_syms, &syms_written);4654 each_file (write_file_syms, (int)&syms_written); 4655 4655 file_close (); 4656 4656 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/alias/alias.smak
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r258 r259 16 16 ALIAS.FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk $. _) 17 17 ALIAS._FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk $. __) 18 19 $(.MODULE): $.$(.TARG)20 18 21 19 DO.STDALIAS = \ … … 40 38 $(addsuffix .o,$(ALIAS.FUNCS) $(addprefix _,$(ALIAS._FUNCS))))) 41 39 40 include mkomflib.smak 42 41 include comend.smak -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/dlfcn/dl.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r258 r259 4 4 .MODULE := libdl 5 5 .MDESC := The dynamic loading library 6 #.MDEP := $(EMXIMP.DEPON) $(EMXOMF.DEPON)6 #.MDEP := emximp emxomf 7 7 8 8 .TARGET := libdl_p.a -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/clearerr.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r258 r259 4 4 #include <stdio.h> 5 5 6 void clearerr(FILE *stream)6 void _STD(clearerr) (FILE *stream) 7 7 { 8 8 stream->_flags &= ~(_IOERR|_IOEOF); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/libc.smak
-
Property cvs2svn:cvs-rev
changed from
1.8
to1.9
r258 r259 60 60 libc-dll: emxbind emxexp app alias libc os2 $(LIBC.DLL) $(LIBC.IMPLIB) 61 61 62 # Never strip symbols before running through emxbind! 62 63 $(LIBC.DLL): $.aout/src/lib/startup/386/dll0.o $(.OBJS) $(.DEPS) \ 63 64 $(LIBC.DLL.OBJS) $.aout/libc.def 64 $(LD) $( LDFLAGS.DLL) -nostdlib -o __libc__ $^ \65 $(LD) $(subst -s,,$(LDFLAGS.DLL)) -nostdlib -o __libc__ $^ \ 65 66 -L$.aout -los2 -lgcc -lc_alias 66 67 $(call DO.EMXBIND,-d$.aout/libc.def __libc__) 67 68 @$(call RM,__libc__) 69 ifeq ($(MODE),opt) 70 lxlite $@ 71 endif 68 72 69 73 $(LIBC.IMPLIB): $.aout/libc.def -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/os2_386/os2.smak
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r258 r259 3 3 .MODULE := os2 4 4 .MDESC := OS/2 import library (similar to os2386.lib) 5 .MDEP := $(EMXIMP.DEPON) $(EMXOMF.DEPON)5 .MDEP := emximp emxomf 6 6 .INSDIR := lib/ 7 7 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/socket/socket.smak
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r258 r259 3 3 .MODULE := libsocket 4 4 .MDESC := The socket library 5 .MDEP := $(EMXIMP.DEPON) $(EMXOMF.DEPON)5 .MDEP := emximp emxomf 6 6 7 7 .TARGET := libsocket_p.a -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/startup.smak
-
Property cvs2svn:cvs-rev
changed from
1.7
to1.8
r258 r259 27 27 $(CC) $(CFLAGS) -x assembler-with-cpp -DMCRT0 -o tmp1.o $< 28 28 $(CC) $(CFLAGS) -o tmp2.o src/lib/startup/gmon.c 29 strip --strip-debug tmp1.o tmp2.o30 29 ld -r -o $@ tmp1.o tmp2.o 31 30 $(call RM,tmp1.o tmp2.o) 32 31 33 $.omf/src/lib/startup/%.obj: $.aout/src/lib/startup/%.o 32 # This rule doesnt work if the aout/src/lib/startup/ directory does not 33 # exist when make is started, and is ignored because of this (shit!) 34 #$.omf/src/lib/startup/%.obj: $.aout/src/lib/startup/%.o 35 # $(call DO.EMXOMF,-m__text) 36 37 # Additional dependencies to help stupid make. 38 $.omf/src/lib/startup/mcrt0.obj: $.aout/src/lib/startup/mcrt0.o 39 $(call DO.EMXOMF,-m__text) 40 $.omf/src/lib/startup/gcrt0.obj: $.aout/src/lib/startup/gcrt0.o 41 $(call DO.EMXOMF,-m__text) 42 $.omf/src/lib/startup/386/dll0.obj: $.aout/src/lib/startup/386/dll0.o 43 $(call DO.EMXOMF,-m__text) 44 $.omf/src/lib/startup/386/crt0.obj: $.aout/src/lib/startup/386/crt0.o 45 $(call DO.EMXOMF,-m__text) 46 $.omf/src/lib/startup/386/res0.obj: $.aout/src/lib/startup/386/res0.o 34 47 $(call DO.EMXOMF,-m__text) 35 48 36 # Additional dependencies to help stupid make.37 $.omf/src/lib/startup/mcrt0.obj: $.aout/src/lib/startup/mcrt0.o $(EMXOMF.DEPON)38 $.omf/src/lib/startup/gcrt0.obj: $.aout/src/lib/startup/gcrt0.o $(EMXOMF.DEPON)39 $.omf/src/lib/startup/386/dll0.obj: $.aout/src/lib/startup/386/dll0.o $(EMXOMF.DEPON)40 $.omf/src/lib/startup/386/crt0.obj: $.aout/src/lib/startup/386/crt0.o $(EMXOMF.DEPON)41 $.omf/src/lib/startup/386/res0.obj: $.aout/src/lib/startup/386/res0.o $(EMXOMF.DEPON)42 43 49 include comend.smak -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/libdl/dl.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r258 r259 4 4 .MODULE := libdl 5 5 .MDESC := The dynamic loading library 6 #.MDEP := $(EMXIMP.DEPON) $(EMXOMF.DEPON)6 #.MDEP := emximp emxomf 7 7 8 8 .TARGET := libdl_p.a -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/libos2/os2.smak
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r258 r259 3 3 .MODULE := os2 4 4 .MDESC := OS/2 import library (similar to os2386.lib) 5 .MDEP := $(EMXIMP.DEPON) $(EMXOMF.DEPON)5 .MDEP := emximp emxomf 6 6 .INSDIR := lib/ 7 7 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/libsocket/socket.smak
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r258 r259 3 3 .MODULE := libsocket 4 4 .MDESC := The socket library 5 .MDEP := $(EMXIMP.DEPON) $(EMXOMF.DEPON)5 .MDEP := emximp emxomf 6 6 7 7 .TARGET := libsocket_p.a -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/gcc/gcc/config/i386/xm-emx.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r258 r259 142 142 { \ 143 143 arg [0] = "-Zmt"; \ 144 arg [1] = "-Zcrtdll=c_ import";\144 arg [1] = "-Zcrtdll=c_dll"; \ 145 145 arg_count = 2; \ 146 146 } \ 147 147 else if (!strcmp (argv [i], "-Zcrtdll")) \ 148 arg [0] = "-Zcrtdll=c_ import";\148 arg [0] = "-Zcrtdll=c_dll"; \ 149 149 else if (!strcmp (argv [i], "-Zlinker")) \ 150 150 { \ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.