- Timestamp:
 - Feb 4, 2004, 9:55:41 PM (22 years ago)
 - Location:
 - trunk/src/emx
 - Files:
 - 
      
- 2 added
 - 5 edited
 
- 
          
  Makefile (modified) (1 diff, 1 prop)
 - 
          
  common.smak (modified) (1 diff, 1 prop)
 - 
          
  include/emx/libclog.h (added)
 - 
          
  src/lib/app/app.smak (modified) (1 diff, 1 prop)
 - 
          
  src/lib/startup/exit.c (modified) (2 diffs, 1 prop)
 - 
          
  src/lib/startup/startup.c (modified) (4 diffs, 1 prop)
 - 
          
  src/lib/sys/libclog.c (added)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/emx/Makefile
- 
Property       cvs2svn:cvs-rev
 changed from       
1.42to1.43 
r1156 r1157 105 105 CFLAGS.omf = -Zomf 106 106 CFLAGS.prof = -pg 107 CFLAGS.log = -DDEBUG_LOGGING 107 108 # The object files are put in subdirectory objectformat-targetkind, 108 109 # we decompose object file name back and pick appropiate $CFLAGS 109 110 CFLAGS.KIND = $(foreach x,$(subst -, ,$(firstword $(subst /, ,$(subst $.,,$@)))),$(CFLAGS.$x)) 110 111 # How to compile a .c file 111 DO.COMPILE.c = $(CC) $(strip $(CFLAGS) $1) -o $@ $(srcdir)/$< -I$(dir $<) 112 DO.COMPILE.s = $(call DO.COMPILE.c,-x assembler-with-cpp $1) 112 DO.COMPILE.c = $(CC) -std=gnu99 $(strip $(CFLAGS) $1) -o $@ $(srcdir)/$< -I$(dir $<) 113 # '-std=gnu99' doesn't work with '-x assembler-with-cpp', therefor no $(call DO.COMPILE.c). 114 DO.COMPILE.s = $(CC) -x assembler-with-cpp $(strip $(CFLAGS) $1) -o $@ $(srcdir)/$< -I$(dir $<) 113 115 114 116 # The linker  - 
Property       cvs2svn:cvs-rev
 changed from       
 - 
      
trunk/src/emx/common.smak
- 
Property       cvs2svn:cvs-rev
 changed from       
1.9to1.10 
r1156 r1157 26 26 .tmp += prof 27 27 endif # neq ($(findstring prof,$(.TKIND)),) 28 ifneq ($(findstring log,$(.TKIND)),) 29 .tmp += log 30 endif # neq ($(findstring log,$(.TKIND)),) 28 31 .TKIND := $(.tmp) 29 32 ifdef .TKVAR  - 
Property       cvs2svn:cvs-rev
 changed from       
 - 
      
trunk/src/emx/src/lib/app/app.smak
- 
Property       cvs2svn:cvs-rev
 changed from       
1.6to1.7 
r1156 r1157 19 19 LIBC.DLL.OBJS += $(.OBJS) 20 20 21 .TKIND := aout log 22 .TARGET := libc_app_l.a 23 include mklib.smak 24 21 25 .TKIND := aout prof 22 26 .TARGET := libc_app_p.a  - 
Property       cvs2svn:cvs-rev
 changed from       
 - 
      
trunk/src/emx/src/lib/startup/exit.c
- 
Property       cvs2svn:cvs-rev
 changed from       
1.4to1.5 
r1156 r1157 4 4 #include <stdlib.h> 5 5 #include <emx/startup.h> 6 #include <emx/libclog.h> 6 7 7 8 void (*_atexit_v[64])(void); … … 10 11 void _STD(exit) (int ret) 11 12 { 13 LIBCLOG_ENTER("ret=%d\n", ret); 12 14 int i; 13 15 14 16 for (i = _atexit_n-1; i >= 0; --i) 15 _atexit_v[i](); 17 { 18 LIBCLOG_MSG("calling _atexit[%d] %p\n", i, _atexit_v[i]); 19 _atexit_v[i](); 20 } 16 21 _CRT_term (); 22 LIBCLOG_MSG("calling _exit\n"); 17 23 _exit (ret); 18 24 }  - 
Property       cvs2svn:cvs-rev
 changed from       
 - 
      
trunk/src/emx/src/lib/startup/startup.c
- 
Property       cvs2svn:cvs-rev
 changed from       
1.8to1.9 
r1156 r1157 9 9 #include <emx/syscalls.h> 10 10 #include <emx/startup.h> 11 #include <emx/libclog.h> 11 12 12 13 extern int __crtinit1__; … … 18 19 int _CRT_init (void) 19 20 { 21 LIBCLOG_ENTER("\n"); 20 22 static int startup_flag; 21 23 … … 23 25 _DLL_InitTerm() and by the application program's startup code). */ 24 26 if (startup_flag) 25 return 0;27 LIBCLOG_RETURN_INT(0); 26 28 startup_flag = 1; 27 29 … … 36 38 errno = 0; 37 39 38 return 0;40 LIBCLOG_RETURN_INT(0); 39 41 } 40 42  - 
Property       cvs2svn:cvs-rev
 changed from       
 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  