blob: 5f61ddece59f95793c59dce07bd3976758da081c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $Id: Makefile.os2 200 2004-12-17 14:05:38Z bird $
OBJDIR = objdir/OS2.libc
#OBJDIR = .
SRC = ar.c arscan.c commands.c default.c dir.c expand.c file.c \
function.c implicit.c job.c main.c \
misc.c read.c remake.c rule.c signame.c \
variable.c version.c vpath.c hash.c \
getopt.c getopt1.c remote-stub.c
OBJS = $(addprefix $(OBJDIR)/, $(SRC:.c=.obj))
CFLAGS = -Zomf -g -Wall -I$(OBJDIR) -I. -DCONFIG_NO_DEFAULT_SUFFIXES \
-DCONFIG_NO_DEFAULT_PATTERN_RULES -DCONFIG_NO_DEFAULT_TERMINAL_RULES \
-DCONFIG_NO_DEFAULT_SUFFIX_RULES -DCONFIG_NO_DEFAULT_VARIABLES
ifndef DEBUG
CFLAGS += -O3
endif
#-DMAKE_DLLSHELL
all: $(OBJDIR) $(OBJDIR)/make-new.exe
clean:
rm -f $(OBJS) $(OBJDIR)/make-new.exe $(OBJDIR)/config.h
$(OBJDIR)/make-new.exe: $(OBJDIR)/config.h $(OBJS)
gcc -g $(CFLAGS) -Zhigh-mem -Zstack 1024 -o $@ $(OBJS)
$(OBJDIR)/%.obj : %.c
gcc -c $(CFLAGS) -o $@ -DHAVE_CONFIG_H $<
$(OBJDIR)/config.h: config.h.os2
cp $< $@
$(OBJDIR):
mkdir.exe -p $@
test:
echo "1"
echo "2"
echo "3"
echo "4"
parallel: parallel_1 parallel_2 parallel_3 parallel_4 parallel_5
parallel_1 parallel_2 parallel_3 parallel_4 parallel_5:
echo $@_start ; sleep 1; echo $@_done
|