]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/MAI/bios_emulator/scitech/makedefs/bcos2.mk
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / board / MAI / bios_emulator / scitech / makedefs / bcos2.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++ 2.0 32-bit OS/2 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 : USE_OS2GUI BC_LIBBASE
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           := bcc
45    CFLAGS       := -w- -4 -H=bcc32.sym -i60 -d
46 .IF $(USE_NASM)
47    AS           := nasm
48    ASFLAGS      := -t -f obj -d__FLAT__ -iINCLUDE -i$(SCITECH)\INCLUDE
49 .ELSE
50    AS           := tasm
51    ASFLAGS      := /t /mx /m /D__FLAT__ /D__OS2__ /iINCLUDE /i$(SCITECH)\INCLUDE
52 .ENDIF
53    LD           := bclink tlink.exe
54    LDFLAGS      := -c
55    RC           := brcc
56    RCFLAGS      :=
57    LIB          := tlib
58    LIBFLAGS     := /C /P32
59    ILIB         := implib
60    ILIBFLAGS    := -c
61 .IF $(USE_OS2GUI)
62    CFLAGS               += -D__OS2_PM__
63 .ENDIF
64
65 # Optionally turn on debugging information
66 .IF $(DBG)
67    CFLAGS       += -v
68    LDFLAGS      += -v
69    LIBFLAGS     += /P128
70 .IF $(USE_NASM)
71    ASFLAGS      += -F borland
72 .ELSE
73    ASFLAGS      += /zi
74 .ENDIF
75 .ELSE
76    LDFLAGS      += -x
77 .IF $(USE_NASM)
78    ASFLAGS      += -F null
79 .ELSE
80    ASFLAGS      += /q
81 .ENDIF
82 .END
83
84 # Optionally turn on optimisations
85 .IF $(OPT)
86    CFLAGS       += -5 -O2 -k-
87 .ELIF $(OPT_SIZE)
88    CFLAGS       += -5 -O1 -k-
89 .END
90
91 # Optionally turn on direct i387 FPU instructions
92 .IF $(FPU)
93    CFLAGS       += -DFPU387
94    ASFLAGS      += -dFPU387
95 .END
96
97 # Optionally compile a beta release version of a product
98 .IF $(BETA)
99    CFLAGS       += -DBETA
100    ASFLAGS      += -dBETA
101 .END
102
103 # Optionally use Phar Lap's TNT DOS Extender, otherwise use the DOS Power Pack
104 .IF $(BUILD_DLL)
105    CFLAGS       += -sd -sm -DBUILD_DLL
106    ASFLAGS      += -dBUILD_DLL
107 .ELSE
108    CFLAGS       += -sm
109 .ENDIF
110    DEF_LIBS     := os2.lib c2mt.lib
111    DX_ASFLAGS   += -d__OS2__
112    LIB_OS       = os232
113
114 # Define the base directory for library files
115
116 .IF $(CHECKED)
117 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
118 CFLAGS          += -DCHECKED=1
119 .ELSE
120 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
121 .ENDIF
122
123 # Define where to install library files
124    LIB_BASE     := $(LIB_BASE_DIR)\$(LIB_OS)\$(BC_LIBBASE)
125    LIB_DEST     := $(LIB_BASE)
126
127 # Place to look for PMODE library files
128
129 .IF $(USE_OS2GUI)
130 DEF_LIBS        += pm_pm.lib
131 .ELSE
132 DEF_LIBS        += pm.lib
133 .ENDIF
134
135 # Define which file contains our rules
136
137    RULES_MAK    := bcos2.mk