diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
commit | 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc (patch) | |
tree | 63ef546b10a81d461e5cf5ed9e98a68cd7dee1aa /src/kmk/Makefile.os2 | |
parent | Initial commit. (diff) | |
download | kbuild-upstream/1%0.1.9998svn3589+dfsg.tar.xz kbuild-upstream/1%0.1.9998svn3589+dfsg.zip |
Adding upstream version 1:0.1.9998svn3589+dfsg.upstream/1%0.1.9998svn3589+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/kmk/Makefile.os2')
-rw-r--r-- | src/kmk/Makefile.os2 | 47 |
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 + + |