24f513d6da
2005/04/07 22:30:57 vq 1.1.1.1.132.1: Issue number: 43241 Submitted by: shay@openoffice.org Allow dmake to be build on windows without 4NT.
62 lines
1.6 KiB
Makefile
62 lines
1.6 KiB
Makefile
# This is the MSC 4.0 and higher DOS configuration file for DMAKE
|
|
# It simply modifies the values of SRC, and checks to see if
|
|
# OSENVIRONMENT is defined. If so it includes the appropriate
|
|
# config.mk file.
|
|
#
|
|
# It also sets the values of .SOURCE.c and .SOURCE.h to include the local
|
|
# directory.
|
|
#
|
|
osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
|
|
|
|
TMPDIR :=
|
|
.EXPORT : TMPDIR
|
|
|
|
# Definition of macros for library, and C startup code.
|
|
|
|
# The following sources are required for MSC
|
|
OSR_SRC += ruletab.c
|
|
DOS_SRC += runargv.c rmprq.c
|
|
|
|
.SETDIR=$(osrdir) : $(OSR_SRC)
|
|
.SETDIR=msdos : $(DOS_SRC)
|
|
|
|
SRC += $(OSR_SRC) $(DOS_SRC)
|
|
.SOURCE.h : $(osrdir)
|
|
|
|
SET_STACK = /stack:4096
|
|
ASFLAGS += -t -mx $(S_$(MODEL))
|
|
|
|
# Microsoft C doesn't need tail but needs head
|
|
LDOBJS != $(CSTARTUP) $(OBJDIR)/{$(<:f)}
|
|
LDTAIL !=
|
|
LDHEAD != $(LDFLAGS)
|
|
LDARGS != $(LDHEAD) -out:$(TARGET) @$(LDTMPOBJ) $(LDTAIL)
|
|
LDTAIL != $(_libs)
|
|
_libs != $(!null,$(LDLIBS) ,@$(LDTMPLIB))
|
|
LDTMPOBJ != $(mktmp,,$(DIVFILE) $(LDOBJS:s,/,\,:t"\n"))
|
|
LDTMPLIB != $(mktmp,,$(DIVFILE) $(LDLIBS:s,/,\,:t"\n"))
|
|
|
|
# Debugging libraries and flags
|
|
DB_LDFLAGS += /nologo /co /li /map
|
|
DB_LDLIBS +=
|
|
DB_CFLAGS += -Zi
|
|
|
|
# NO Debug MSC flags:
|
|
# Set the environment variable MSC_VER to be one of 5.1, 6.0, 8.0 (for VC++4.0)
|
|
# to get these by default when you make dmake using 'dmake'.
|
|
#
|
|
|
|
NDB_LDFLAGS += /nologo
|
|
CFLAGS += -I$(osrdir)
|
|
|
|
# See if we modify anything in the lower levels.
|
|
.IF $(OSENVIRONMENT) != $(NULL)
|
|
.INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
|
|
.END
|
|
|
|
CFLAGS += /nologo
|
|
|
|
S_s = -Dmsmall
|
|
S_m = -Dmmedium
|
|
S_c = -Dmcompact
|
|
S_l = -Dmlarge
|