summaryrefslogtreecommitdiffstats
path: root/src/kmk/Makefile.os2
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmk/Makefile.os2')
-rw-r--r--src/kmk/Makefile.os247
1 files changed, 47 insertions, 0 deletions
diff --git a/src/kmk/Makefile.os2 b/src/kmk/Makefile.os2
new file mode 100644
index 0000000..5f61dde
--- /dev/null
+++ b/src/kmk/Makefile.os2
@@ -0,0 +1,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
+
+