Changeset 213
- Timestamp:
- May 21, 2003, 11:57:27 PM (22 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 6 added
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/Makefile
-
Property cvs2svn:cvs-rev
changed from
1.11
to1.12
r212 r213 82 82 DO.LINK.dll = $(LD) $(strip $(LDFLAGS.DLL) $(filter-out -l%,$1)) -o $@ $(^O) $(^DEF) $(^LIB) $(filter -l%,$1) 83 83 84 # emxbind tool - you can depend on EMXBIND.BUILT :-) 85 EMXBIND = $(if $(wildcard $(EMXBIND.BUILT)),$(EMXBIND.BUILT),emxbind$E) 86 EMXBIND.BUILT = $.$(TOOLFMT)/emxbind$E 84 # emxbind tool 85 EMXBIND = $(call FINDTOOL,emxbind) 87 86 # emxbind flags 88 87 EMXBINDFLAGS = -q $(EMXBINDFLAGS.$(MODE)) … … 103 102 DO.LIBRARY = $(call RM,$@); $(AR) $(ARFLAGS)$1 $@ $(^O) 104 103 105 # The tool to extract exports from object files and archives 106 EMXEXP = $(if $(wildcard $(EMXEXP.BUILT)),$(EMXEXP.BUILT),emxexp$E) 107 EMXEXP.BUILT = $./$(TOOLFMT)/emxexp$E 104 # The tool to extract exports from object files and archives, 105 # removing unused stuff (like empty lines and comments) 106 # and sorting alphabetically (looks nicer). 107 EMXEXP = $(call FINDTOOL,emxexp) 108 EMXEXPFLAGS = -u 109 DO.EMXEXP = $(EMXEXP) $(strip $(EMXEXPFLAGS) $1) $^ | sed -e "/^$$/d" -e "/^ *;/d" | sort -d >>$@ 108 110 109 111 # The tool to create import libraries 110 IMPLIB = $(if $(wildcard $(IMPLIB.BUILT)),$(IMPLIB.BUILT),emximp$E) 111 IMPLIB.BUILT = $./$(TOOLFMT)/emximp$E 112 IMPLIB = $(call FINDTOOL,emximp) 112 113 IMPLIBFLAGS.prof = -m 113 114 IMPLIBFLAGS.KIND = $(foreach x,$(subst -, ,$(firstword $(subst /, ,$(subst $.,,$@)))),$(IMPLIBFLAGS.$x)) … … 122 123 123 124 # How to convert an a.out file to the OMF format 124 EMXOMF = $(if $(wildcard $(EMXOMF.BUILT)),$(EMXOMF.BUILT),emxomf$E) 125 EMXOMF.BUILT = $./$(TOOLFMT)/emxomf$E 126 DO.AOUT2OMF = $(EMXOMF) $(strip $1 -o) $@ $< 125 EMXOMF = $(call FINDTOOL,emxomf) 126 DO.EMXOMF = $(EMXOMF) $(strip $1 -o) $@ $< 127 127 128 128 # How to filter just the object files from $^ … … 134 134 # How to filter the libraries from $^ 135 135 ^LIB = $(filter %.$(if $(findstring omf,$(.TKIND)),lib,a),$^) 136 # This function finds a tool: if it has been already built, prefer it 137 FINDTOOL = $(firstword $(wildcard $.$(TOOLFMT)/$1$E) $(wildcard $(OUT)dbg/aout/$1$E) $1) 136 138 137 139 # A newline … … 187 189 TARGDEPEND := 188 190 189 .PHONY: default help all clean install cleandep cleandepend dep depend depdone191 .PHONY: default help all tools clean install cleandep cleandepend dep depend depdone 190 192 .SUFFIXES: 191 193 .SUFFIXES: .c .cpp .asm .s .o .exe .dll .a .lib .obj … … 207 209 help: 208 210 @$(call ECHO,$(SEP)) 209 @$(call ECHO,Welcome to $(PACKAGE) build system!)211 @$(call ECHO,Welcome to $(PACKAGE) version $(VERSION) build system!) 210 212 @$(call ECHO,$(COPYRIGHT)) 211 213 @$(call ECHO,To build something, type 'make {target} {vars}', where {target} is one of:) 212 214 @$(call ECHO, all - build all available modules) 213 215 @$(call ECHO, {module-name} - build just a particular module) 216 @$(call ECHO, tools - build just the tools) 214 217 @$(call ECHO, clean - remove all generated files (remove all built files)) 215 218 @$(call ECHO, install - generate a installation tree in $(INS)) … … 247 250 # bird: add rule for forcibly re-generating the rules. 248 251 rules: 249 @$(call RM,$ (OUT)genrules.smak)250 $(MAKE) $ (OUT)genrules.smak251 252 $ (OUT)genrules.smak: $(SUBMAK) # Makefile $(wildcard *.smak)253 @$(call MKDIR,$ (OUT))252 @$(call RM,$.genrules.smak) 253 $(MAKE) $.genrules.smak 254 255 $.genrules.smak: $(SUBMAK) # Makefile $(wildcard *.smak) 256 @$(call MKDIR,$.) 254 257 @$(call ECHO,Please wait, rebuilding make rules ...) 255 258 @$(call RM,$@) … … 259 262 # The general a.out -> OMF conversion rule for object files 260 263 $.omf/%.obj: $.aout/%.o 261 $(call DO. AOUT2OMF)264 $(call DO.EMXOMF) 262 265 263 266 # The general a.out -> OMF conversion rule for libraries 264 267 $.omf%.lib: $.aout%.a 265 $(call DO. AOUT2OMF)266 267 -include $ (OUT)genrules.smak268 $(call DO.EMXOMF) 269 270 -include $.genrules.smak -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/emx/asm386.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r212 r213 73 73 #define FP_INFINITE 3 74 74 #define FP_NAN 4 75 76 /* Macros for defining standard libc functions */ 77 78 #define CONCAT(x,y) x ## y 79 #define _STD(x) CONCAT(__std_,x) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/emx/syscalls.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r212 r213 53 53 struct timeb; 54 54 struct timeval; 55 struct _fd_set;56 55 57 56 struct _find … … 104 103 { 105 104 int nfds; 106 struct _fd_set * readfds;107 struct _fd_set * writefds;108 struct _fd_set * exceptfds;105 struct fd_set * readfds; 106 struct fd_set * writefds; 107 struct fd_set * exceptfds; 109 108 struct timeval * timeout; 110 109 }; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/mkexe.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 4 4 5 5 include common.smak 6 7 tools: $(.MODULE) 6 8 7 9 # Linking rule -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/emxexp/emxexp.c
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r212 r213 209 209 } 210 210 else if ((sym_ptr[i].type == N_EXT || 211 sym_ptr[i].type == (N_BSS|N_EXT) || 211 212 (weak_flag && sym_ptr[i].type == N_WEAKB)) && 212 213 sym_ptr[i].value != 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/alias/alias.smak
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r212 r213 14 14 include common.smak 15 15 16 ALIAS.FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk _)17 ALIAS._FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk __)16 ALIAS.FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk $. _) 17 ALIAS._FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk $. __) 18 18 19 19 $(.MODULE): $.$(.TARG) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/alias/aliasfuncs.awk
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r212 r213 35 35 36 36 BEGIN { 37 gulp( "out/dbg/aout/c.a");38 gulp( "out/dbg/aout/c_app.a");37 gulp(ARGV[1]"aout/c.a"); 38 gulp(ARGV[1]"aout/c_app.a"); 39 39 40 prefix = ARGV[ 1];40 prefix = ARGV[2]; 41 41 42 42 for (x in stdfuncs) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/Attic/386/crt2.s
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r212 r213 9 9 10 10 .globl __entry1 11 .globl _ _std_environ11 .globl _STD(environ) 12 12 .globl __org_environ 13 13 … … 19 19 xorl %ebp, %ebp /* End of stack frames */ 20 20 leal (%esp), %edi /* argv[] */ 21 movl %edi, _ _std_environ21 movl %edi, _STD(environ) 22 22 movl %edi, __org_environ 23 23 pushl %edi /* envp */ … … 39 39 .bss 40 40 41 _ _std_environ: .space 441 _STD(environ): .space 4 42 42 __org_environ: .space 4 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/memchr.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ memchr5 .globl _STD(memchr) 6 6 7 7 / void *memchr (const void *s, int c, size_t n) … … 23 23 ALIGN 24 24 25 _ memchr:25 _STD(memchr): 26 26 PROFILE_NOFRAME 27 27 pushl %edi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/memcmp.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ memcmp5 .globl _STD(memcmp) 6 6 7 7 / int memcmp (const void *s1, const void *s2, size_t n) … … 25 25 ALIGN 26 26 27 _ memcmp:27 _STD(memcmp): 28 28 PROFILE_NOFRAME 29 29 pushl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/memcpy.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ memcpy5 .globl _STD(memcpy) 6 6 7 7 / void *memcpy (void *s1, const void *s2, size_t n) … … 20 20 ALIGN 21 21 22 _ memcpy:22 _STD(memcpy): 23 23 PROFILE_NOFRAME 24 24 pushl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/memmove.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ memmove5 .globl _STD(memmove) 6 6 7 7 / void *memmove (void *s1, const void *s2, size_t n) … … 24 24 ALIGN 25 25 26 _ memmove:26 _STD(memmove): 27 27 PROFILE_NOFRAME 28 28 pushl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/memset.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ memset5 .globl _STD(memset) 6 6 7 7 / void *memset (void *s, int c, size_t n) … … 20 20 ALIGN 21 21 22 _ memset:22 _STD(memset): 23 23 PROFILE_NOFRAME 24 24 pushl %edi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/strcat.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ strcat5 .globl _STD(strcat) 6 6 7 7 / char *strcat (char *string1, const char *string2) … … 23 23 ALIGN 24 24 25 _ strcat:25 _STD(strcat): 26 26 PROFILE_NOFRAME 27 27 pushl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/strchr.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ strchr5 .globl _STD(strchr) 6 6 7 7 / char *strchr (const char *string, int c) … … 19 19 ALIGN 20 20 21 _ strchr:21 _STD(strchr): 22 22 PROFILE_NOFRAME 23 23 pushl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/strcmp.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ strcmp5 .globl _STD(strcmp) 6 6 7 7 / int strcmp (const char *string1, const char *string2) … … 24 24 ALIGN 25 25 26 _ strcmp:26 _STD(strcmp): 27 27 PROFILE_NOFRAME 28 28 pushl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/strcpy.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ strcpy5 .globl _STD(strcpy) 6 6 7 7 / char *strcpy (char *string1, const char *string2) … … 21 21 ALIGN 22 22 23 _ strcpy:23 _STD(strcpy): 24 24 PROFILE_NOFRAME 25 25 pushl %esi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/strlen.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ strlen5 .globl _STD(strlen) 6 6 7 7 / size_t strlen (const char *string) … … 20 20 ALIGN 21 21 22 _ strlen:22 _STD(strlen): 23 23 PROFILE_NOFRAME 24 24 pushl %edi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/386/strrchr.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r212 r213 3 3 #include <emx/asm386.h> 4 4 5 .globl _ strrchr5 .globl _STD(strrchr) 6 6 7 7 / char *strrchr (const char *string, int c) … … 23 23 ALIGN 24 24 25 _ strrchr:25 _STD(strrchr): 26 26 PROFILE_NOFRAME 27 27 pushl %edi -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__fork.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
-
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__select.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
-
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__settime.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
-
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__ttyname.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
-
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.