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 # IBM VisualAge C++ 3.0 OS/2 32-bit version.
31 #############################################################################
33 # Include standard startup script definitions
35 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
37 # Import enivornment variables that we use
38 .IMPORT .IGNORE : VA_LIBBASE USE_OS232 USE_OS2GUI FULLSCREEN NOOPT MAX_WARN
40 # We are compiling for a 32 bit envionment
43 # Default commands for compiling, assembling linking and archiving
46 CFLAGS := /Q /G5 /Gl+ /Fi /Si /J- /Ss+ /Sp1 /Gm+ /I.
49 ASFLAGS := -t -f obj -F null -d__FLAT__ -dSTDCALL_MANGLE -d__NOU_VAR__ -iINCLUDE -i$(SCITECH)\INCLUDE
58 ASFLAGS := /t /mx /m /D__FLAT__ /DSTDCALL_MANGLE /D__NOU_VAR__ /iINCLUDE /i$(SCITECH)\INCLUDE
61 LDFLAGS = /noi /exepack:2 /packcode /packdata /align:32 /map /noe
72 # Set the compiler warning level
79 # Optionally turn on debugging information
89 # Optionally turn on optimisations
98 # Optionally turn on direct i387 FPU instructions optimised for Pentium
104 # Optionally compile a beta release version of a product
110 # Build 32-bit OS/2 apps
112 CFLAGS += /Ge- /DBUILD_DLL
114 ASFLAGS += -dBUILD_DLL
117 CFLAGS += -D__OS2_PM__
118 LDFLAGS += /PMTYPE:PM
121 LDFLAGS += /PMTYPE:NOVIO
123 LDFLAGS += /PMTYPE:VIO
127 DX_ASFLAGS += -d__OS2__
130 # Place to look for PMODE library files
134 #Note: This is OK for now but might need to be changed if the GUI PM library
135 # were really different
136 PMLIB := sddpmlib.lib
142 PMLIB := sddpmlib.lib
148 # Define the base directory for library files
151 LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
152 CFLAGS += /DCHECKED=1
154 LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
157 # Define where to install library files
158 LIB_BASE := $(LIB_BASE_DIR)\$(LIB_OS)\$(VA_LIBBASE)
159 LIB_DEST := $(LIB_BASE)
161 # Define which file contains our rules