1 #############################################################################
3 # SciTech Multi-platform Graphics Library
5 # ========================================================================
7 # The contents of this file are subject to the SciTech MGL Public
8 # License Version 1.0 (the "License"); you may not use this file
9 # except in compliance with the License. You may obtain a copy of
10 # the License at http://www.scitechsoft.com/mgl-license.txt
12 # Software distributed under the License is distributed on an
13 # "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14 # implied. See the License for the specific language governing
15 # rights and limitations under the License.
17 # The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
19 # The Initial Developer of the Original Code is SciTech Software, Inc.
20 # All Rights Reserved.
22 # ========================================================================
24 # Descripton: Generic DMAKE startup makefile definitions file. Assumes
25 # that the SCITECH environment variable has been set to point
26 # to where all our stuff is installed. You should not need
27 # to change anything in this file.
29 # Borland C++ 4.0 32 bit version. Supports Borland's DOS Power
30 # Pack DPMI32 DOS extender, Phar Lap's TNT DOS Extender and
31 # 32 bit Windows development.
33 #############################################################################
35 # Include standard startup script definitions
37 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
39 # Import enivornment variables that we use
40 .IMPORT .IGNORE : USE_SMX32 USE_TNT USE_WIN32 USE_BC5 USE_VXD BC_LIBBASE
41 .IMPORT .IGNORE : VTOOLSD
43 # We are compiling for a 32 bit envionment
46 # Default commands for compiling, assembling linking and archiving
49 CFLAGS := -4 -i60 -d -w-stu
51 CFLAGS := -4 -H=bcc32.sym -i60 -d -w-stu
55 ASFLAGS := -t -f obj -d__FLAT__ -iINCLUDE -i$(SCITECH)\INCLUDE
64 ASFLAGS := /t /mx /m /w-res /w-mcp /D__FLAT__ /iINCLUDE /i$(SCITECH)\INCLUDE
66 LD := bclink tlink32.exe
80 NMSYM := $(SOFTICE_PATH)\nmsym.exe
81 NMSYMFLAGS := /TRANSLATE:source,package,always /PROMPT /SOURCE:$(SCITECH)\src\pm;$(SCITECH)\src\pm\common;$(SCITECH)\src\pm\win32
83 # Optionally turn on debugging information
89 ASFLAGS += -F borland -g
103 # Optionally disable nagging warnings if MAX_WARN is not on
106 CFLAGS += -w-aus -w-par -w-hid -w-pia
109 # Optionally turn on optimisations (-5 -O2 breaks BC++ 4.0-4.5 sometimes)
116 # Optionally turn on direct i387 FPU instructions
122 # Optionally compile a beta release version of a product
128 # Optionally use Phar Lap's TNT DOS Extender, otherwise use the DOS Power Pack
130 CFLAGS += -D__MSDOS__
134 DEF_LIBS := import32.lib cw32.lib dosx32.lib tntapi.lib
137 CFLAGS += -RT- -x- -Oi -VC -I$(VTOOLSD)\INCLUDE -DIS_32 -DWANTVXDWRAPS -DVTOOLSD -DWIN40 -DWIN40_OR_LATER -DDEFSEG=1 -zC_LTEXT -zALCODE -zR_LDATA -zTLCODE
138 DEF_LIBS := $(VTOOLSD)\lib\cfbc440d.lib $(VTOOLSD)\lib\wr0bc440.lib $(VTOOLSD)\lib\wr1bc440.lib $(VTOOLSD)\lib\wr2bc440.lib $(VTOOLSD)\lib\wr3bc440.lib $(VTOOLSD)\lib\rtbc440d.lib
139 DX_ASFLAGS += -d__VXD__ -d__BORLANDC__=1 -I$(VTOOLSD)\INCLUDE -I$(VTOOLSD)\LIB\INCLUDE
144 CFLAGS += -D__CONSOLE__
147 CFLAGS += -WD -DBUILD_DLL
148 ASFLAGS += -dBUILD_DLL
156 DEF_LIBS := import32.lib cw32mt.lib
157 DX_ASFLAGS += -d__WINDOWS32__
160 CFLAGS += -D__SMX32__ -DPME32
162 DX_ASFLAGS += -d__SMX32__ -dDPMI32 -dPME32
165 DEF_LIBS := cw32mt.lib
168 CFLAGS += -D__MSDOS__
169 DX_CFLAGS += -WX -DDPMI32
170 DX_ASFLAGS += -dDPMI32
176 # Define the base directory for library files
179 LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
180 CFLAGS += -DCHECKED=1
182 LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
185 # Define where to install library files
186 LIB_BASE := $(LIB_BASE_DIR)\$(LIB_OS)\$(BC_LIBBASE)
187 LIB_DEST := $(LIB_BASE)
189 # Place to look for PMODE library files
192 PMLIB := $(LIB_BASE)\tnt\pm.lib
194 PMLIB := $(LIB_BASE)\dpmi32\pm.lib
196 PMLIB := $(LIB_BASE)\pm.lib
199 # Define which file contains our rules