VirtualBox

source: kBuild/trunk/src/kmk/Makefile.os2@ 2657

Last change on this file since 2657 was 200, checked in by bird, 20 years ago

Renaming some files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1# $Id: Makefile.os2 200 2004-12-17 14:05:38Z bird $
2
3OBJDIR = objdir/OS2.libc
4#OBJDIR = .
5SRC = 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
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 -DCONFIG_NO_DEFAULT_VARIABLES
14ifndef DEBUG
15CFLAGS += -O3
16endif
17#-DMAKE_DLLSHELL
18
19all: $(OBJDIR) $(OBJDIR)/make-new.exe
20
21clean:
22 rm -f $(OBJS) $(OBJDIR)/make-new.exe $(OBJDIR)/config.h
23
24$(OBJDIR)/make-new.exe: $(OBJDIR)/config.h $(OBJS)
25 gcc -g $(CFLAGS) -Zhigh-mem -Zstack 1024 -o $@ $(OBJS)
26
27$(OBJDIR)/%.obj : %.c
28 gcc -c $(CFLAGS) -o $@ -DHAVE_CONFIG_H $<
29
30$(OBJDIR)/config.h: config.h.os2
31 cp $< $@
32
33$(OBJDIR):
34 mkdir.exe -p $@
35
36test:
37 echo "1"
38 echo "2"
39 echo "3"
40 echo "4"
41
42parallel: parallel_1 parallel_2 parallel_3 parallel_4 parallel_5
43
44parallel_1 parallel_2 parallel_3 parallel_4 parallel_5:
45 echo $@_start ; sleep 1; echo $@_done
46
47
Note: See TracBrowser for help on using the repository browser.

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