update dev300-m58
[ooovba.git] / dmake / win95 / config.mk
blob721be05b00f4910953cafd23add6cdf5ec4179bb
1 # This is an OS 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 # Memory model to compile for
8 # set to s - small, m - medium, c - compact, l - large
9 # Need large model now, dmake has grown up :-)
10 MODEL = l
12 STARTUPFILE = startup/startup.mk
14 CPPFLAGS = $(CFLAGS)
16 # Debug flags
17 DB_CFLAGS = -DDBUG
18 DB_LDFLAGS =
19 DB_LDLIBS =
21 # NO Debug flags
22 NDB_CFLAGS =
23 NDB_LDFLAGS =
24 NDB_LDLIBS =
26 # Local configuration modifications for CFLAGS.
27 CFLAGS += -I$(OS)
29 # Common Win32 source files.
30 OS_SRC += dchdir.c switchar.c
32 # Imported MSDOS Files.
33 DOSSRC += dstrlwr.c arlib.c dirbrk.c
35 SRC += $(OS_SRC) $(UNIXSRC) $(DOSSRC)
37 # Provide our own %$O : %$S rule.
38 %$O : %$S
39 +$(AS) $(ASFLAGS) \
40 $(<:s,\,${__.DIVSEP-sh-${USESHELL}},:s,/,${__.DIVSEP-sh-${USESHELL}},);
41 mv $(@:f) $(OBJDIR)
43 # Set source dirs so that we can find files named in this
44 # config file.
45 .SOURCE.h : $(OS)
47 # See if we modify anything in the lower levels.
48 .IF $(OSRELEASE) != $(NULL)
49 .INCLUDE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
50 .END
52 .SETDIR=msdos : $(DOSSRC)
53 .SETDIR=$(OS) : $(ASRC) $(OS_SRC)