Import upstream u-boot 1.1.4
[u-boot.git] / board / MAI / bios_emulator / scitech / makedefs / va365.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 #               IBM VisualAge C++ 3.65 OS/2 32-bit version.
30 #
31 #############################################################################
32
33 # Include standard startup script definitions
34 .IMPORT: SCITECH
35 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
36
37 # Import enivornment variables that we use
38 .IMPORT .IGNORE : VA_LIBBASE USE_OS232 USE_OS2GUI FULLSCREEN NOOPT MAX_WARN
39
40 # We are compiling for a 32 bit envionment
41    _32BIT_      := 1
42
43 # Default commands for compiling, assembling linking and archiving
44    CC           := icc
45    CPP          := icc
46    CFLAGS       := /Q /G5l /Fi /Si /J- /Ss+ /Sp1 /Gm+ /I.
47 .IF $(USE_NASM)
48    AS           := nasm
49    ASFLAGS      := -t -f obj -F null -d__FLAT__ -dSTDCALL_MANGLE -d__NOU_VAR__ -iINCLUDE -i$(SCITECH)\INCLUDE
50 .ELSE
51 .IF $(USE_TASM32)
52    AS           := tasm32
53 .ELIF $(USE_TASMX)
54    AS           := tasmx
55 .ELSE
56    AS           := tasm
57 .ENDIF
58    ASFLAGS      := /t /mx /m /D__FLAT__ /DSTDCALL_MANGLE /D__NOU_VAR__ /iINCLUDE /i$(SCITECH)\INCLUDE
59 .ENDIF
60    LD           := ilink
61    LDFLAGS       = /noi /exepack /packcode /packdata /align:32 /map /noe
62    RC           := rc
63    RCFLAGS      := /nologo
64    LIB          := ilib
65    LIBFLAGS     := /nologo
66    ILIB         := implib
67    ILIBFLAGS    := /nologo
68    IBMCOBJ      := 1
69
70 # Set the compiler warning level
71 .IF $(MAX_WARN)
72    CFLAGS       += /W3
73 .ELSE
74    CFLAGS       += /W1
75 .ENDIF
76
77 # Optionally turn on debugging information
78 .IF $(DBG)
79    CFLAGS       += /Ti
80    LDFLAGS      += /DE
81 .ELSE
82 .IF $(USE_TASM)
83    ASFLAGS      += /q
84 .ENDIF
85 .END
86
87 # Optionally turn on optimisations
88 .IF $(OPT)
89    CFLAGS       += /Gfi /O /Oi
90 .ELIF $(OPT_SIZE)
91    CFLAGS       += /Gfi /O /Oc
92 .ELIF $(NOOPT)
93    CFLAGS       += /O-
94 .END
95
96 # Optionally turn on direct i387 FPU instructions optimised for Pentium
97 .IF $(FPU)
98    CFLAGS       += -DFPU387
99    ASFLAGS      += -dFPU387
100 .END
101
102 # Optionally compile a beta release version of a product
103 .IF $(BETA)
104    CFLAGS       += -DBETA
105    ASFLAGS      += -dBETA
106 .END
107
108 # Build 32-bit OS/2 apps
109 .IF $(BUILD_DLL)
110    CFLAGS       += /Gme- /DBUILD_DLL
111    LDFLAGS      += /DLL /NOE
112    ASFLAGS      += -dBUILD_DLL
113 .ELSE
114 .IF $(USE_OS2GUI)
115    CFLAGS       += -D__OS2_PM__
116    LDFLAGS      += /PMTYPE:PM
117 .ELSE
118 .IF $(FULLSCREEN)
119    LDFLAGS      += /PMTYPE:NOVIO
120 .ELSE
121    LDFLAGS      += /PMTYPE:VIO
122 .ENDIF
123 .ENDIF
124 .ENDIF
125    DX_ASFLAGS   += -d__OS2__
126    LIB_OS       = os232
127
128 # Place to look for PMODE library files
129
130 .IF $(USE_OS2GUI)
131 PMLIB           := pm_pm.lib
132 .ELSE
133 PMLIB           := pm.lib
134 .ENDIF
135
136 # Define the base directory for library files
137
138 .IF $(CHECKED)
139 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
140 CFLAGS          += /DCHECKED=1
141 .ELSE
142 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
143 .ENDIF
144
145 # Define where to install library files
146    LIB_BASE     := $(LIB_BASE_DIR)\$(LIB_OS)\$(VA_LIBBASE)
147    LIB_DEST     := $(LIB_BASE)
148
149 # Define which file contains our rules
150
151    RULES_MAK    := va365.mk