3 OBJDIR = objdir/OS2.libc
5 SRC = ar.c arscan.c commands.c default.c dir.c expand.c file.c \
6 function.c implicit.c job.c main.c \
7 misc.c read.c remake.c rule.c signame.c \
8 variable.c version.c vpath.c hash.c \
9 getopt.c getopt1.c remote-stub.c
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 -DCONFIG_NO_DEFAULT_VARIABLES
19 all: $(OBJDIR) $(OBJDIR)/make-new.exe
22 rm -f $(OBJS) $(OBJDIR)/make-new.exe $(OBJDIR)/config.h
24 $(OBJDIR)/make-new.exe: $(OBJDIR)/config.h $(OBJS)
25 gcc -g $(CFLAGS) -Zhigh-mem -Zstack 1024 -o $@ $(OBJS)
28 gcc -c $(CFLAGS) -o $@ -DHAVE_CONFIG_H $<
30 $(OBJDIR)/config.h: config.h.os2
42 parallel: parallel_1 parallel_2 parallel_3 parallel_4 parallel_5
44 parallel_1 parallel_2 parallel_3 parallel_4 parallel_5:
45 echo $@_start ; sleep 1; echo $@_done