update dev300-m58
[ooovba.git] / dmake / win95 / microsft / config.mk
blobacc43fd3160c1ea3a64dd9ad23bf93ba70a93ef0
1 # This is the MSC 4.0 and higher DOS configuration file for DMAKE
2 # It simply modifies the values of SRC, and checks to see if
3 # OSENVIRONMENT is defined. If so it includes the appropriate
4 # config.mk file.
6 # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
7 # directory.
9 osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
11 TMPDIR :=
12 .EXPORT : TMPDIR
14 # Definition of macros for library, and C startup code.
16 # The following sources are required for MSC
17 OSR_SRC += ruletab.c
18 UNX_SRC += runargv.c rmprq.c
20 .SETDIR=$(osrdir) : $(OSR_SRC)
21 .SETDIR=unix : $(UNX_SRC)
23 SRC += $(OSR_SRC) $(UNX_SRC)
24 .SOURCE.h : $(osrdir)
26 SET_STACK = /stack:4096
27 ASFLAGS += -t -mx $(S_$(MODEL))
29 # Microsoft C doesn't need tail but needs head
30 LDOBJS != $(CSTARTUP) $(OBJDIR)/{$(<:f)}
31 LDTAIL !=
32 LDHEAD != $(LDFLAGS)
33 LDARGS != $(LDHEAD) -out:$(TARGET) @$(LDTMPOBJ) $(LDTAIL)
34 LDTAIL != $(_libs)
35 _libs != $(!null,$(LDLIBS) ,@$(LDTMPLIB))
36 LDTMPOBJ != $(mktmp,,$(DIVFILE) $(LDOBJS:s,/,\,:t"\n"))
37 LDTMPLIB != $(mktmp,,$(DIVFILE) $(LDLIBS:s,/,\,:t"\n"))
39 # Debugging libraries and flags
40 DB_LDFLAGS += /nologo /co /li /map
41 DB_LDLIBS +=
42 DB_CFLAGS += -Zi
44 # NO Debug MSC flags:
45 # Set the environment variable MSC_VER to be one of 5.1, 6.0, 8.0 (for VC++4.0)
46 # to get these by default when you make dmake using 'dmake'.
49 NDB_LDFLAGS += /nologo
50 CFLAGS += -I$(osrdir)
52 # See if we modify anything in the lower levels.
53 .IF $(OSENVIRONMENT) != $(NULL)
54 .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
55 .END
57 CFLAGS += /nologo
59 S_s = -Dmsmall
60 S_m = -Dmmedium
61 S_c = -Dmcompact
62 S_l = -Dmlarge