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 # Watcom C++ 10.x 16 bit version. Supports 16-bit DOS,
30 # 16-bit Windows development and 16-bit OS/2 development.
32 #############################################################################
34 # Include standard startup script definitions
36 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
38 # Import enivornment variables that we use
39 .IMPORT .IGNORE : WC_LIBBASE USE_WIN16 USE_OS216 USE_OS2GUI
41 # Default commands for compiling, assembling linking and archiving
42 CC := wcc # C-compiler and flags
43 CPP := wpp # C++-compiler and flags
44 CFLAGS := -ml-zq-j-w2-s-fh -fhq
48 AS := tasmx # Assembler and flags
50 AS := tasm # Assembler and flags
52 AS := tasm # Assembler and flags
53 ASFLAGS := /t /mx /m /D__LARGE__ /iINCLUDE /i$(SCITECH)\INCLUDE
54 LD := wlink # Loader and flags
56 RC := wrc # Watcom resource compiler
57 RCFLAGS := /bt=windows
58 LIB := wlib # Librarian
60 ILIB := wlib # Import librarian
63 # Optionally turn on debugging information
65 CFLAGS += -d2 # Turn on debugging for C compiler
66 LIBFLAGS += -p=128 # Larger page size for libraries with debug info!
67 ASFLAGS += /zi # Turn on debugging for assembler
68 LDFLAGS += D A # Turn on debugging for linker
70 ASFLAGS += /q # Suppress object records not needed for linking
73 # Optionally turn on optimisations
80 # Optionally turn on direct i387 FPU instructions optimised for Pentium
83 CFLAGS += -fpi87-fp5-DFPU387
87 # Optionally compile a beta release version of a product
93 # Use a larger stack during linking if requested
96 LDFLAGS += OP STACK=$(STKSIZE)
101 CFLAGS += -bd-bt=os2-DBUILD_DLL
102 ASFLAGS += -DBUILD_DLL
106 DX_ASFLAGS += -D__OS216__
110 CFLAGS += -bd-bt=windows-D_WINDOWS-DBUILD_DLL
111 ASFLAGS += -DBUILD_DLL
113 CFLAGS += -bt=windows-D_WINDOWS
115 DX_ASFLAGS += -D__WINDOWS16__
122 # Place to look for PMODE library files
126 # Define the base directory for library files
129 LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
130 CFLAGS += -DCHECKED=1
132 LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
135 # Define where to install library files
136 LIB_BASE := $(LIB_BASE_DIR)\$(LIB_OS)\$(WC_LIBBASE)
137 LIB_DEST := $(LIB_BASE)
139 # Define which file contains our rules