]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/MAI/bios_emulator/scitech/makedefs/va32.mk
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / board / MAI / bios_emulator / scitech / makedefs / va32.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.0 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 /G5 /Gl+ /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:2 /packcode /packdata /align:32 /map /noe
62    RC           := rc
63    RCFLAGS      := -n -x2
64    LIB          := ilib
65    LIBFLAGS     := /nologo
66    ILIB         := implib
67    ILIBFLAGS    := /nologo
68    IPFC         := ipfc
69    IPFCFLAGS    :=
70    IBMCOBJ      := 1
71
72 # Set the compiler warning level
73 .IF $(MAX_WARN)
74    CFLAGS       += /W3
75 .ELSE
76    CFLAGS       += /W1
77 .ENDIF
78
79 # Optionally turn on debugging information
80 .IF $(DBG)
81    CFLAGS       += /Ti
82    LDFLAGS      += /DE
83 .ELSE
84 .IF $(USE_TASM)
85    ASFLAGS      += /q
86 .ENDIF
87 .END
88
89 # Optionally turn on optimisations
90 .IF $(OPT)
91    CFLAGS       += /Gfi /O /Oi
92 .ELIF $(OPT_SIZE)
93    CFLAGS       += /Gfi /O /Oc
94 .ELIF $(NOOPT)
95    CFLAGS       += /O-
96 .END
97
98 # Optionally turn on direct i387 FPU instructions optimised for Pentium
99 .IF $(FPU)
100    CFLAGS       += -DFPU387
101    ASFLAGS      += -dFPU387
102 .END
103
104 # Optionally compile a beta release version of a product
105 .IF $(BETA)
106    CFLAGS       += -DBETA
107    ASFLAGS      += -dBETA
108 .END
109
110 # Build 32-bit OS/2 apps
111 .IF $(BUILD_DLL)
112    CFLAGS       += /Ge- /DBUILD_DLL
113    LDFLAGS      += /DLL /NOE
114    ASFLAGS      += -dBUILD_DLL
115 .ELSE
116 .IF $(USE_OS2GUI)
117    CFLAGS       += -D__OS2_PM__
118    LDFLAGS      += /PMTYPE:PM
119 .ELSE
120 .IF $(FULLSCREEN)
121    LDFLAGS      += /PMTYPE:NOVIO
122 .ELSE
123    LDFLAGS      += /PMTYPE:VIO
124 .ENDIF
125 .ENDIF
126 .ENDIF
127    DX_ASFLAGS   += -d__OS2__
128    LIB_OS       = os232
129
130 # Place to look for PMODE library files
131
132 .IF $(USE_OS2GUI)
133 .IF $(USE_SDDPMDLL)
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
137 .ELSE
138 PMLIB           := pm_pm.lib
139 .ENDIF
140 .ELSE
141 .IF $(USE_SDDPMDLL)
142 PMLIB           := sddpmlib.lib
143 .ELSE
144 PMLIB           := pm.lib
145 .ENDIF
146 .ENDIF
147
148 # Define the base directory for library files
149
150 .IF $(CHECKED)
151 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
152 CFLAGS          += /DCHECKED=1
153 .ELSE
154 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
155 .ENDIF
156
157 # Define where to install library files
158    LIB_BASE     := $(LIB_BASE_DIR)\$(LIB_OS)\$(VA_LIBBASE)
159    LIB_DEST     := $(LIB_BASE)
160
161 # Define which file contains our rules
162
163    RULES_MAK    := va32.mk