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 16 bit version. Supports 16 bit DOS
30 # and 16 bit Windows development.
32 #############################################################################
34 # Include standard startup script definitions
36 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
38 # Import enivornment variables that we use
39 .IMPORT .IGNORE : SC_LIBBASE
41 # Default commands for compiling, assembling linking and archiving
42 CC := sc # C-compiler and flags
47 AS := tasmx # Assembler and flags
49 AS := tasm # Assembler and flags
51 ASFLAGS := /t /mx /m /D__COMM__ /iINCLUDE /i$(SCITECH)\INCLUDE
52 LD := sc # Loader and flags
54 RC := rcc # WIndows resource compiler
55 RCFLAGS := # Mark as Win32 compatible resources
56 LIB := lib # Librarian
58 ILIB := implib # Import librarian
61 # Optionally turn on debugging information
63 CFLAGS += -g # Turn on debugging for C compiler
65 ASFLAGS += /q # Suppress object records not needed for linking
68 # Optionally turn on optimisations
75 # Optionally turn on direct i387 FPU instructions
78 CFLAGS += -ff -DFPU387
79 ASFLAGS += -DFPU387 -DFPU_REG_RTN
82 # Optionally compile a beta release version of a product
88 # User a larger stack if requested
91 LDFLAGS += =$(STKSIZE)
94 # Optionally compile for 16 bit Windows
97 CFLAGS += -WD -DBUILD_DLL
98 ASFLAGS += -DBUILD_DLL
102 DX_ASFLAGS += -D__WINDOWS16__
109 # Place to look for PMODE library files
113 # Define the base directory for library files
116 LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
117 CFLAGS += -DCHECKED=1
119 LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
122 # Define where to install library files
123 LIB_BASE := $(LIB_BASE_DIR)\$(LIB_OS)\$(SC_LIBBASE)
124 LIB_DEST := $(LIB_BASE)
126 # Define which file contains our rules