Import upstream u-boot 1.1.4
[u-boot.git] / board / MAI / bios_emulator / scitech / makedefs / cl16.mk
1 #############################################################################
2 #
3 #                                       SciTech Multi-platform Graphics Library
4 #
5 #  ========================================================================
6 #
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
11 #
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.
16 #
17 #    The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
18 #
19 #    The Initial Developer of the Original Code is SciTech Software, Inc.
20 #    All Rights Reserved.
21 #
22 #  ========================================================================
23 #
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.
28 #
29 #               Microsoft C 6.0 16 bit version. Supports 16 bit
30 #               OS/2 development.
31 #
32 #############################################################################
33
34 # Include standard startup script definitions
35 .IMPORT: SCITECH
36 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
37
38 # Import enivornment variables that we use
39 .IMPORT .IGNORE : VC_LIBBASE
40 .IMPORT .IGNORE : USE_MASM
41
42 # Default commands for compiling, assembling linking and archiving
43    CC           := cl       # C-compiler and flags
44    CFLAGS       := /w /Gs
45    ASFLAGS      := /t /mx /m /D__COMM__ /iINCLUDE /i$(SCITECH)\INCLUDE
46 .IF $(USE_TASM32)
47    AS           := tasm32
48 .ELIF $(USE_TASMX)
49    AS           := tasmx    # Assembler and flags
50 .ELIF $(USE_MASM)
51    AS           := masm    # Assembler and flags
52    ASFLAGS      := /D__COMM__ /iINCLUDE /i$(SCITECH)\INCLUDE
53 .ELSE
54    AS           := tasm     # Assembler and flags
55 .ENDIF
56    LD           := cl       # Loader and flags
57    LDFLAGS       = $(CFLAGS)
58    RC           := rc       # WIndows resource compiler
59    RCFLAGS      :=
60    LIB          := lib      # Librarian
61    LIBFLAGS     := /NOI /NOE
62    ILIB         := implib   # Import librarian
63    ILIBFLAGS    := /noignorecase
64
65 # Optionally turn on debugging information
66 .IF $(DBG)
67    CFLAGS       += /Zi  # Turn on debugging for C compiler
68    ASFLAGS      += /zi      # Turn on debugging for assembler
69 .ELSE
70    ASFLAGS      += /q       # Suppress object records not needed for linking
71 .END
72
73 # Optionally turn on optimisations
74 .IF $(OPT)
75    CFLAGS       += /Ox
76 .END
77
78 # Optionally turn on direct i387 FPU instructions
79
80 .IF $(FPU)
81    CFLAGS       += /FPi87 /DFPU387
82    ASFLAGS      += /DFPU387 /DFPU_REG_RTN
83 .END
84
85 # Optionally compile a beta release version of a product
86 .IF $(BETA)
87    CFLAGS       += /DBETA
88    ASFLAGS      += /DBETA
89 .END
90
91 # Use a larger stack during linking if requested ???? How the fuck do you
92 # specify linker options on the CL command line?????
93
94 .IF $(STKSIZE)
95 .ENDIF
96
97 # Optionally compile for 16 bit Windows
98 .IF $(USE_WIN16)
99 .IF $(BUILD_DLL)
100    CFLAGS       += /GD /Alfw /DBUILD_DLL
101    ASFLAGS      += -DBUILD_DLL
102 .ELSE
103    CFLAGS       += /GA /AL
104 .ENDIF
105    DX_ASFLAGS   += -D__WINDOWS16__
106    LIB_OS       = WIN16
107 .ELSE
108    USE_REALDOS  := 1
109    CFLAGS       += /AL
110    LIB_OS       = DOS16
111 .END
112
113 # Place to look for PMODE library files
114
115 PMLIB           := pm.lib
116
117 # Define the base directory for library files
118
119 .IF $(CHECKED)
120 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
121 CFLAGS                  += -DCHECKED=1
122 .ELSE
123 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
124 .ENDIF
125
126 # Define where to install library files
127    LIB_BASE     := $(LIB_BASE_DIR)\$(LIB_OS)\$(VC_LIBBASE)
128    LIB_DEST     := $(LIB_BASE)
129
130 # Define which file contains our rules
131
132    RULES_MAK    := cl16.mk