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
6 # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
9 osrdir
:= $(OS
)$(DIRSEPSTR
)$(OSRELEASE
)
12 OSR_SRC
+= tempnam.c ruletab.c
13 DOS_SRC
+= runargv.c rmprq.c
15 SRC
+= $(OSR_SRC
) $(DOS_SRC
)
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
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.
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
40 # See if we modify anything in the lower levels.
41 .IF
$(OSENVIRONMENT
) != $(NULL
)
42 .INCLUDE .IGNORE
: $(osrdir
)$(DIRSEPSTR
)$(OSENVIRONMENT
)$(DIRSEPSTR
)config.mk
45 .SETDIR
=$(osrdir
) : $(OSR_SRC
)
46 .SETDIR
=msdos
: $(DOS_SRC
)