VirtualBox

Changeset 192 in kBuild


Ignore:
Timestamp:
Dec 17, 2004 3:37:43 AM (20 years ago)
Author:
bird
Message:

fixing / libc

Location:
trunk/src/gmake
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/Makefile.OS2.libc

    r57 r192  
    22
    33OBJDIR = objdir/OS2.libc
    4 OBJDIR = .
     4#OBJDIR = .
    55SRC =   ar.c arscan.c commands.c default.c dir.c expand.c file.c \
    66                function.c implicit.c job.c main.c \
     
    88                variable.c version.c vpath.c hash.c \
    99        getopt.c getopt1.c remote-stub.c
    10 CFLAGS = -Zomf -g -DMAKE_DLLSHELL -Wall
     10OBJS = $(addprefix $(OBJDIR)/, $(SRC:.c=.obj))
     11CFLAGS = -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
    1114ifndef DEBUG
    1215CFLAGS += -O3
    1316endif
     17#-DMAKE_DLLSHELL
    1418
    15 all: $(OBJDIR) make-new.exe
     19all: $(OBJDIR) $(OBJDIR)/make-new.exe
    1620
    17 make-new.exe: config.h $(addprefix $(OBJDIR)/, $(SRC:.c=.obj))
    18         gcc -g $(CFLAGS) -Zhigh-mem -Zstack 1024 -o $@ $(SRC:.c=.obj) -ldl
     21clean:
     22        rm -f $(OBJS) $(OBJDIR)/make-new.exe $(OBJDIR)/config.h
    1923
    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
    2128        gcc -c $(CFLAGS) -o $@ -DHAVE_CONFIG_H  $<
    2229
    23 config.h: config.h.OS2.libc
     30$(OBJDIR)/config.h: config.h.OS2.libc
    2431        cp $< $@
    2532
    2633$(OBJDIR):
    27         mkdir -p $@
     34        mkdir.exe -p $@
    2835
     36test:
     37        echo "1"
     38        echo "2"
     39        echo "3"
     40        echo "4"
  • trunk/src/gmake/config.h.OS2.libc

    r57 r192  
    8787
    8888/* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
    89 #undef HAVE_SYS_WAIT_H 1
     89#define HAVE_SYS_WAIT_H 1
    9090
    9191/* Define if your struct tm has tm_zone.  */
     
    216216
    217217/* Define this if the C library defines the variable `sys_siglist'.  */
    218 /* #undef HAVE_SYS_SIGLIST */
     218#define HAVE_SYS_SIGLIST 1
    219219
    220220/* Define this if the C library defines the variable `_sys_siglist'.  */
     
    287287
    288288/* Define if you have the strsignal function.  */
    289 /* #undef HAVE_STRSIGNAL */
     289#define HAVE_STRSIGNAL
    290290
    291291/* Define if you have the wait3 function.  */
    292 /* #undef HAVE_WAIT3 */
     292#define HAVE_WAIT3 1
    293293
    294294/* Define if you have the waitpid function.  */
     
    405405#define LIBDIR "."
    406406
     407#define HAVE_SA_RESTART 1
     408
     409#if 0
    407410static inline int getloadavg(double loadavg[], int nelem)
    408411{
     
    414417    return 0;
    415418}
    416 
    417 
    418 #if 1
     419#endif
     420
     421
     422#if 0
    419423#include <string.h>
    420424
  • trunk/src/gmake/default.c

    r53 r192  
    3838
    3939static char default_suffixes[]
     40#ifndef CONFIG_NO_DEFAULT_SUFFIXES
    4041#ifdef VMS
    4142  = ".exe .olb .ln .obj .c .cxx .cc .pas .p .for .f .r .y .l .mar \
     
    5152.w .ch .web .sh .elc .el";
    5253#endif
     54#else  /* CONFIG_NO_DEFAULT_SUFFIXES */
     55 = "";
     56#endif /* CONFIG_NO_DEFAULT_SUFFIXES */
    5357
    5458static struct pspec default_pattern_rules[] =
    5559  {
     60#ifndef CONFIG_NO_DEFAULT_PATTERN_RULES
    5661    { "(%)", "%",
    5762        "$(AR) $(ARFLAGS) $@ $<" },
     
    7277    { "%.tex", "%.w %.ch",
    7378        "$(CWEAVE) $^ $@" },
    74 
     79#endif /* !CONFIG_NO_DEFAULT_PATTERN_RULES */
    7580    { 0, 0, 0 }
    7681  };
     
    7883static struct pspec default_terminal_rules[] =
    7984  {
     85#ifndef CONFIG_NO_DEFAULT_TERMINAL_RULES
    8086#ifdef VMS
    8187    /* RCS.  */
     
    106112        "$(GET) $(GFLAGS) $(SCCS_OUTPUT_OPTION) $<" },
    107113#endif /* !VMS */
     114#endif /* !CONFIG_NO_DEFAULT_TERMINAL_RULES */
    108115    { 0, 0, 0 }
    109116  };
     
    111118static char *default_suffix_rules[] =
    112119  {
     120#ifndef CONFIG_NO_DEFAULT_SUFFIX_RULES
    113121#ifdef VMS
    114122    ".obj.exe",
     
    300308
    301309#endif /* !VMS */
    302 
     310#endif /* !CONFIG_NO_DEFAULT_SUFFIX_RULES */
    303311    0, 0,
    304312  };
     
    306314static char *default_variables[] =
    307315  {
     316#ifndef CONFIG_NO_DEFAULT_VARIABLES
    308317#ifdef VMS
    309318#ifdef __ALPHA
     
    512521
    513522#endif /* !VMS */
     523#endif /* !CONFIG_NO_DEFAULT_VARIABLES */
    514524    0, 0
    515525  };
  • trunk/src/gmake/job.c

    r160 r192  
    437437    }
    438438
    439 #ifdef __EMX__
     439#if defined __EMX__ && !defined(__INNOTEK_LIBC__)
    440440  /* The signal handler must called only once! */
    441441  signal (SIGCHLD, SIG_DFL);
     
    12051205
    12061206      /* 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);
    12091209      if (child->pid < 0)
    12101210        {
     
    16491649        got_token = read (job_rfd, &token, 1);
    16501650        saved_errno = errno;
    1651 #ifdef __EMX__
     1651#if defined(__EMX__) && !defined(__INNOTEK_LIBC__)
    16521652        /* The child handler must be turned off here.  */
    16531653        signal (SIGCHLD, SIG_DFL);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette