update dev300-m58
[ooovba.git] / dmake / winnt / config.mk
blob2abcb8ad66c6167458aa7b3bfa18f7c908860829
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
32 # Imported Win95 files.
33 WIN95SRC += switchar.c
35 # Imported MSDOS Files.
36 DOSSRC += dstrlwr.c arlib.c dirbrk.c
38 SRC += $(OS_SRC) $(UNIXSRC) $(DOSSRC)
40 # Provide our own %$O : %$S rule.
41 %$O : %$S
42 +$(AS) $(ASFLAGS) \
43 $(<:s,\,${__.DIVSEP-sh-${USESHELL}},:s,/,${__.DIVSEP-sh-${USESHELL}},);
44 mv $(@:f) $(OBJDIR)
46 # Set source dirs so that we can find files named in this
47 # config file.
48 .SOURCE.h : $(OS)
50 # See if we modify anything in the lower levels.
51 .IF $(OSRELEASE) != $(NULL)
52 .INCLUDE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
53 .END
55 .SETDIR=msdos : $(DOSSRC)
56 .SETDIR=win95 : $(WIN95SRC)
57 .SETDIR=$(OS) : $(ASRC) $(OS_SRC)