Changeset 192 in kBuild
- Timestamp:
- Dec 17, 2004 3:37:43 AM (20 years ago)
- Location:
- trunk/src/gmake
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/Makefile.OS2.libc
r57 r192 2 2 3 3 OBJDIR = objdir/OS2.libc 4 OBJDIR = .4 #OBJDIR = . 5 5 SRC = ar.c arscan.c commands.c default.c dir.c expand.c file.c \ 6 6 function.c implicit.c job.c main.c \ … … 8 8 variable.c version.c vpath.c hash.c \ 9 9 getopt.c getopt1.c remote-stub.c 10 CFLAGS = -Zomf -g -DMAKE_DLLSHELL -Wall 10 OBJS = $(addprefix $(OBJDIR)/, $(SRC:.c=.obj)) 11 CFLAGS = -Zomf -g -Wall -I$(OBJDIR) -I. -DCONFIG_NO_DEFAULT_SUFFIXES \ 12 -DCONFIG_NO_DEFAULT_PATTERN_RULES -DCONFIG_NO_DEFAULT_TERMINAL_RULES \ 13 -DCONFIG_NO_DEFAULT_SUFFIX_RULES 11 14 ifndef DEBUG 12 15 CFLAGS += -O3 13 16 endif 17 #-DMAKE_DLLSHELL 14 18 15 all: $(OBJDIR) make-new.exe19 all: $(OBJDIR) $(OBJDIR)/make-new.exe 16 20 17 make-new.exe: config.h $(addprefix $(OBJDIR)/, $(SRC:.c=.obj)) 18 gcc -g $(CFLAGS) -Zhigh-mem -Zstack 1024 -o $@ $(SRC:.c=.obj) -ldl21 clean: 22 rm -f $(OBJS) $(OBJDIR)/make-new.exe $(OBJDIR)/config.h 19 23 20 .c.obj: 24 $(OBJDIR)/make-new.exe: $(OBJDIR)/config.h $(OBJS) 25 gcc -g $(CFLAGS) -Zhigh-mem -Zstack 1024 -o $@ $(OBJS) 26 27 $(OBJDIR)/%.obj : %.c 21 28 gcc -c $(CFLAGS) -o $@ -DHAVE_CONFIG_H $< 22 29 23 config.h: config.h.OS2.libc30 $(OBJDIR)/config.h: config.h.OS2.libc 24 31 cp $< $@ 25 32 26 33 $(OBJDIR): 27 mkdir -p $@34 mkdir.exe -p $@ 28 35 36 test: 37 echo "1" 38 echo "2" 39 echo "3" 40 echo "4" -
trunk/src/gmake/config.h.OS2.libc
r57 r192 87 87 88 88 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ 89 # undefHAVE_SYS_WAIT_H 189 #define HAVE_SYS_WAIT_H 1 90 90 91 91 /* Define if your struct tm has tm_zone. */ … … 216 216 217 217 /* Define this if the C library defines the variable `sys_siglist'. */ 218 /* #undef HAVE_SYS_SIGLIST */ 218 #define HAVE_SYS_SIGLIST 1 219 219 220 220 /* Define this if the C library defines the variable `_sys_siglist'. */ … … 287 287 288 288 /* Define if you have the strsignal function. */ 289 /* #undef HAVE_STRSIGNAL */ 289 #define HAVE_STRSIGNAL 290 290 291 291 /* Define if you have the wait3 function. */ 292 /* #undef HAVE_WAIT3 */ 292 #define HAVE_WAIT3 1 293 293 294 294 /* Define if you have the waitpid function. */ … … 405 405 #define LIBDIR "." 406 406 407 #define HAVE_SA_RESTART 1 408 409 #if 0 407 410 static inline int getloadavg(double loadavg[], int nelem) 408 411 { … … 414 417 return 0; 415 418 } 416 417 418 #if 1 419 #endif 420 421 422 #if 0 419 423 #include <string.h> 420 424 -
trunk/src/gmake/default.c
r53 r192 38 38 39 39 static char default_suffixes[] 40 #ifndef CONFIG_NO_DEFAULT_SUFFIXES 40 41 #ifdef VMS 41 42 = ".exe .olb .ln .obj .c .cxx .cc .pas .p .for .f .r .y .l .mar \ … … 51 52 .w .ch .web .sh .elc .el"; 52 53 #endif 54 #else /* CONFIG_NO_DEFAULT_SUFFIXES */ 55 = ""; 56 #endif /* CONFIG_NO_DEFAULT_SUFFIXES */ 53 57 54 58 static struct pspec default_pattern_rules[] = 55 59 { 60 #ifndef CONFIG_NO_DEFAULT_PATTERN_RULES 56 61 { "(%)", "%", 57 62 "$(AR) $(ARFLAGS) $@ $<" }, … … 72 77 { "%.tex", "%.w %.ch", 73 78 "$(CWEAVE) $^ $@" }, 74 79 #endif /* !CONFIG_NO_DEFAULT_PATTERN_RULES */ 75 80 { 0, 0, 0 } 76 81 }; … … 78 83 static struct pspec default_terminal_rules[] = 79 84 { 85 #ifndef CONFIG_NO_DEFAULT_TERMINAL_RULES 80 86 #ifdef VMS 81 87 /* RCS. */ … … 106 112 "$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<" }, 107 113 #endif /* !VMS */ 114 #endif /* !CONFIG_NO_DEFAULT_TERMINAL_RULES */ 108 115 { 0, 0, 0 } 109 116 }; … … 111 118 static char *default_suffix_rules[] = 112 119 { 120 #ifndef CONFIG_NO_DEFAULT_SUFFIX_RULES 113 121 #ifdef VMS 114 122 ".obj.exe", … … 300 308 301 309 #endif /* !VMS */ 302 310 #endif /* !CONFIG_NO_DEFAULT_SUFFIX_RULES */ 303 311 0, 0, 304 312 }; … … 306 314 static char *default_variables[] = 307 315 { 316 #ifndef CONFIG_NO_DEFAULT_VARIABLES 308 317 #ifdef VMS 309 318 #ifdef __ALPHA … … 512 521 513 522 #endif /* !VMS */ 523 #endif /* !CONFIG_NO_DEFAULT_VARIABLES */ 514 524 0, 0 515 525 }; -
trunk/src/gmake/job.c
r160 r192 437 437 } 438 438 439 #if def __EMX__439 #if defined __EMX__ && !defined(__INNOTEK_LIBC__) 440 440 /* The signal handler must called only once! */ 441 441 signal (SIGCHLD, SIG_DFL); … … 1205 1205 1206 1206 /* Never use fork()/exec() here! Use spawn() instead in exec_command() */ 1207 child _execute_job (child->good_stdin ? 0 : bad_stdin, 1,1208 argv, child->environment, child);1207 child->pid = child_execute_job (child->good_stdin ? 0 : bad_stdin, 1, 1208 argv, child->environment, child); 1209 1209 if (child->pid < 0) 1210 1210 { … … 1649 1649 got_token = read (job_rfd, &token, 1); 1650 1650 saved_errno = errno; 1651 #if def __EMX__1651 #if defined(__EMX__) && !defined(__INNOTEK_LIBC__) 1652 1652 /* The child handler must be turned off here. */ 1653 1653 signal (SIGCHLD, SIG_DFL);
Note:
See TracChangeset
for help on using the changeset viewer.