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 # Symantec C++ 6.x/7.x 32 bit version. Supports the DOSX
30 # extender, FlashTek X32 and Phar Lap's TNT DOS Extender
31 # and 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_TNT USE_X32 USE_X32VM SC_LIBBASE
42 # We are compiling for a 32 bit envionment
45 # Default commands for compiling, assembling linking and archiving
46 CC := sc # C-compiler and flags
51 AS := tasmx # Assembler and flags
53 AS := tasm # Assembler and flags
56 ASFLAGS := /t /mx /m /D__FLAT__ /iINCLUDE /i$(SCITECH)\INCLUDE
58 ASFLAGS := /t /mx /m /DES_NOT_DS /D__COMM__ /i$(SCITECH)\INCLUDE
60 LD := sc # Loader and flags
62 RC := rcc # WIndows resource compiler
63 RCFLAGS := -32 # Mark as Win32 compatible resources
64 LIB := lib # Librarian
66 ILIB := implib # Import librarian
69 # Optionally turn on debugging information
71 CFLAGS += -g # Turn on debugging for C compiler (FlashView)
73 LDFLAGS += -fullsym # Turn on debugging for TNT 386link linker
75 .IF $(USE_X32) or $(USE_X32VM)
76 LDFLAGS += -L/map # Turn on debugging for FlashView debugger
79 ASFLAGS += /q # Suppress object records not needed for linking
82 # Optionally turn on optimisations
89 # Optionally turn on direct i387 FPU instructions
92 CFLAGS += -ff -DFPU387
93 ASFLAGS += -DFPU387 -DFPU_REG_RTN
96 # Optionally compile a beta release version of a product
102 # User a larger stack if requested
105 LDFLAGS += =$(STKSIZE)
108 .IF $(USE_TNT) # Use Phar Lap's TNT DOS Extender
111 ASFLAGS += /D__FLAT__
114 LDFLAGS += @sc32.dos -exe $@
116 .ELIF $(USE_X32VM) # Use FlashTek X-32VM DOS extender
119 ASFLAGS += /D__X386__
120 DX_ASFLAGS += -DX32VM
122 LDFLAGS += $(CFLAGS) x32v.lib
124 .ELIF $(USE_X32) # Use FlashTek X-32 DOS extender
127 ASFLAGS += /D__X386__
128 DX_ASFLAGS += -DX32VM
130 LDFLAGS += $(CFLAGS) x32.lib
132 .ELIF $(USE_WIN32) # Build 32 bit Windows NT app
135 ASFLAGS += -DBUILD_DLL
139 DX_ASFLAGS += -D__WINDOWS32__
141 .ELSE # Use default Symantec DOSX extender
146 ASFLAGS += /D__X386__
153 # Place to look for PMODE library files
163 # Define the base directory for library files
166 LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
167 CFLAGS += -DCHECKED=1
169 LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
172 # Define where to install library files
173 LIB_BASE := $(LIB_BASE_DIR)\$(LIB_OS)\$(SC_LIBBASE)
174 LIB_DEST := $(LIB_BASE)
176 # Define which file contains our rules