update dev300-m57
[ooovba.git] / dmake / mac / config.mk
blob2a6806cff15923ce629a893e93d0a52a9dd7ccbb
1 # This is an OS Mac specific configuration file
2 # It assumes that OBJDIR, TARGET and DEBUG are previously defined.
3 # It defines CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
4 # It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
7 STARTUPFILE = :$(OS):startup.mk
9 CPPFLAGS = $(CFLAGS)
10 LDOBJS = $(CSTARTUP) :$(OBJDIR):{$(<:f)}
11 LDARGS = $(LDFLAGS) -o $@ $(LDOBJS) $(LDLIBS)
13 # Debug flags
14 DB_CFLAGS = -sym on
15 DB_LDFLAGS = -sym on
16 DB_LDLIBS =
18 # NO Debug flags
19 NDB_CFLAGS = -sym off
20 NDB_LDFLAGS = -sym off
21 NDB_LDLIBS =
23 # Local configuration modifications for CFLAGS.
24 CFLAGS += -I :$(OS) -d _MPW -s $(<:b)
25 LDFLAGS += -w -c 'MPS ' -t MPST
27 # Since we writing out what files we want to execute, we can't use .SETDIR
28 # to specify the files to compile in the Mac directory.
29 # Instead, we copy the files to the (top-level) current directory and compile
30 # them there.
31 %.c : ":$(OS):%.c"
32 duplicate -y $< $@
34 # Common Mac source files.
35 OS_SRC = arlib.c bogus.c dirbrk.c directry.c environ.c main.c rmprq.c \
36 ruletab.c tempnam.c tomacfil.c
37 .IF $(SHELL) != mwp
38 .SETDIR=$(OS) : $(OS_SRC)
39 .ENDIF
40 SRC += $(OS_SRC)
42 # Set source dirs so that we can find files named in this
43 # config file.
44 .SOURCE.h : $(OS)