update dev300-m58
[ooovba.git] / dmake / winnt / borland / config.mk
blob85c929b4163e1b4ad459ec959b6b20cd10b733bf
1 # This is the Turbo C++ 2.0 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 # OS specific sources
12 OSR_SRC += tempnam.c ruletab.c
13 DOS_SRC += runargv.c rmprq.c
15 SRC += $(OSR_SRC) $(DOS_SRC)
16 .SOURCE.h : $(osrdir)
18 # Local configuration modifications for CFLAGS. Make sure your turboc.cfg
19 # file contains a -D__STDC__=1 and -DM_I86=1, if not then uncomment the line
20 # below!
21 #CFLAGS += -DM_I86=1 -D__STDC__=1
23 # You can get a smaller executable still, buy adding a -1 to the list of
24 # flags below, but then you can't run this on an 8086/88 cpu.
25 #CFLAGS += -1
26 CFLAGS += -I$(osrdir) -d -O -N- -w-nod
27 ASFLAGS += -t -mx $(S_$(MODEL))
29 LDOBJS = $(CSTARTUP) $(OBJDIR)/{$(<:f)}
30 LDARGS = $(LDHEAD) @$(LDTMPOBJ),$(TARGET),NUL.MAP$(LDTAIL)
31 LDTAIL = $(_libs)$(LDFLAGS:s/ //)
32 _libs = $(!null,$(LDLIBS) ,@$(LDTMPLIB))
33 LDTMPOBJ = $(mktmp,,$(DIVFILE) $(LDOBJS:s,/,\\,:t"+\n")\n)
34 LDTMPLIB = $(mktmp,,$(DIVFILE) $(LDLIBS:s,/,\\,:t"+\n")\n)
36 # Debugging information for Turbo-C
37 DB_CFLAGS += -v
38 DB_LDFLAGS += /v
40 # See if we modify anything in the lower levels.
41 .IF $(OSENVIRONMENT) != $(NULL)
42 .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
43 .END
45 .SETDIR=$(osrdir) : $(OSR_SRC)
46 .SETDIR=msdos : $(DOS_SRC)
48 S_s = -dmsmall
49 S_m = -dmmedium
50 S_c = -dmcompact
51 S_l = -dmlarge