]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/MAI/bios_emulator/scitech/makedefs/bc32.mk
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / board / MAI / bios_emulator / scitech / makedefs / bc32.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 #               Borland C++ 4.0 32 bit version. Supports Borland's DOS Power
30 #               Pack DPMI32 DOS extender, Phar Lap's TNT DOS Extender and
31 #               32 bit Windows development.
32 #
33 #############################################################################
34
35 # Include standard startup script definitions
36 .IMPORT: SCITECH
37 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
38
39 # Import enivornment variables that we use
40 .IMPORT .IGNORE : USE_SMX32 USE_TNT USE_WIN32 USE_BC5 USE_VXD BC_LIBBASE
41 .IMPORT .IGNORE : VTOOLSD
42
43 # We are compiling for a 32 bit envionment
44    _32BIT_      := 1
45
46 # Default commands for compiling, assembling linking and archiving
47    CC           := bcc32
48 .IF $(USE_VXD)
49    CFLAGS       := -4 -i60 -d -w-stu
50 .ELSE
51    CFLAGS       := -4 -H=bcc32.sym -i60 -d -w-stu
52 .ENDIF
53 .IF $(USE_NASM)
54    AS                   := nasm
55    ASFLAGS      := -t -f obj -d__FLAT__ -iINCLUDE -i$(SCITECH)\INCLUDE
56 .ELSE
57 .IF $(USE_TASM32)
58    AS           := tasm32
59 .ELIF $(USE_TASMX)
60    AS           := tasmx
61 .ELSE
62    AS           := tasm
63 .ENDIF
64    ASFLAGS      := /t /mx /m /w-res /w-mcp /D__FLAT__ /iINCLUDE /i$(SCITECH)\INCLUDE
65 .ENDIF
66    LD           := bclink tlink32.exe
67    LDFLAGS      := -c
68    RC           := brc32
69 .IF $(USE_BC5)
70    WIN_VERSION  := -V4.0
71    RCFLAGS      := -32
72 .ELSE
73    RCFLAGS      := -w32
74 .ENDIF
75    LIB          := tlib
76    LIBFLAGS     := /C
77    ILIB         := implib
78    ILIBFLAGS    := -c
79    INTEL_X86    := 1
80    NMSYM                := $(SOFTICE_PATH)\nmsym.exe
81    NMSYMFLAGS   := /TRANSLATE:source,package,always /PROMPT /SOURCE:$(SCITECH)\src\pm;$(SCITECH)\src\pm\common;$(SCITECH)\src\pm\win32
82
83 # Optionally turn on debugging information
84 .IF $(DBG)
85    CFLAGS       += -v
86    LDFLAGS      += -v
87    LIBFLAGS     += /P256
88 .IF $(USE_NASM)
89    ASFLAGS      += -F borland -g
90 .ELSE
91    ASFLAGS      += /zi
92 .ENDIF
93 .ELSE
94    LDFLAGS      += -x
95    LIBFLAGS             += /P128
96 .IF $(USE_NASM)
97    ASFLAGS      += -F null
98 .ELSE
99    ASFLAGS      += /q
100 .ENDIF
101 .END
102
103 # Optionally disable nagging warnings if MAX_WARN is not on
104 .IF $(MAX_WARN)
105 .ELSE
106    CFLAGS               += -w-aus -w-par -w-hid -w-pia
107 .ENDIF
108
109 # Optionally turn on optimisations (-5 -O2 breaks BC++ 4.0-4.5 sometimes)
110 .IF $(OPT)
111    CFLAGS       += -5 -O2 -k-
112 .ELIF $(OPT_SIZE)
113    CFLAGS       += -5 -O1 -k-
114 .END
115
116 # Optionally turn on direct i387 FPU instructions
117 .IF $(FPU)
118    CFLAGS       += -DFPU387
119    ASFLAGS      += -dFPU387
120 .END
121
122 # Optionally compile a beta release version of a product
123 .IF $(BETA)
124    CFLAGS       += -DBETA
125    ASFLAGS      += -dBETA
126 .END
127
128 # Optionally use Phar Lap's TNT DOS Extender, otherwise use the DOS Power Pack
129 .IF $(USE_TNT)
130    CFLAGS       += -D__MSDOS__
131    DX_CFLAGS    += -DTNT
132    DX_ASFLAGS   += -dTNT
133    LIB_OS       = DOS32
134    DEF_LIBS             := import32.lib cw32.lib dosx32.lib tntapi.lib
135 .ELIF $(USE_VXD)
136    LDFLAGS              += -n -P- -x
137    CFLAGS       += -RT- -x- -Oi -VC -I$(VTOOLSD)\INCLUDE -DIS_32 -DWANTVXDWRAPS -DVTOOLSD -DWIN40 -DWIN40_OR_LATER -DDEFSEG=1 -zC_LTEXT -zALCODE -zR_LDATA -zTLCODE
138    DEF_LIBS             := $(VTOOLSD)\lib\cfbc440d.lib $(VTOOLSD)\lib\wr0bc440.lib $(VTOOLSD)\lib\wr1bc440.lib $(VTOOLSD)\lib\wr2bc440.lib $(VTOOLSD)\lib\wr3bc440.lib $(VTOOLSD)\lib\rtbc440d.lib
139    DX_ASFLAGS   += -d__VXD__ -d__BORLANDC__=1 -I$(VTOOLSD)\INCLUDE -I$(VTOOLSD)\LIB\INCLUDE
140    LIB_OS       = VXD
141 .ELIF $(USE_WIN32)
142 .IF $(WIN32_GUI)
143 .ELSE
144     CFLAGS       += -D__CONSOLE__
145 .ENDIF
146 .IF $(BUILD_DLL)
147    CFLAGS       += -WD -DBUILD_DLL
148    ASFLAGS      += -dBUILD_DLL
149 .ELSE
150    CFLAGS       += -W -WM
151 .ENDIF
152 .IF $(USE_BC5)
153 .ELSE
154    CFLAGS               += -D_WIN32
155 .ENDIF
156    DEF_LIBS             := import32.lib cw32mt.lib
157    DX_ASFLAGS   += -d__WINDOWS32__
158    LIB_OS       = WIN32
159 .ELIF $(USE_SMX32)
160    CFLAGS       += -D__SMX32__ -DPME32
161    DX_CFLAGS    +=
162    DX_ASFLAGS   += -d__SMX32__ -dDPMI32 -dPME32
163    USE_REALDOS  := 1
164    LIB_OS       = SMX32
165    DEF_LIBS     := cw32mt.lib
166 .ELSE
167    USE_DPMI32   := 1
168    CFLAGS       += -D__MSDOS__
169    DX_CFLAGS    += -WX -DDPMI32
170    DX_ASFLAGS   += -dDPMI32
171    USE_REALDOS  := 1
172    LIB_OS       = DOS32
173    DEF_LIBS             :=
174 .END
175
176 # Define the base directory for library files
177
178 .IF $(CHECKED)
179 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
180 CFLAGS                  += -DCHECKED=1
181 .ELSE
182 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
183 .ENDIF
184
185 # Define where to install library files
186    LIB_BASE     := $(LIB_BASE_DIR)\$(LIB_OS)\$(BC_LIBBASE)
187    LIB_DEST     := $(LIB_BASE)
188
189 # Place to look for PMODE library files
190
191 .IF $(USE_TNT)
192 PMLIB           := $(LIB_BASE)\tnt\pm.lib
193 .ELIF $(USE_DPMI32)
194 PMLIB           := $(LIB_BASE)\dpmi32\pm.lib
195 .ELSE
196 PMLIB           := $(LIB_BASE)\pm.lib
197 .END
198
199 # Define which file contains our rules
200
201    RULES_MAK    := bc32.mk