]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/MAI/bios_emulator/scitech/makedefs/bc16.mk
* Patch by Thomas Frieden, 13 Nov 2002:
[people/ms/u-boot.git] / board / MAI / bios_emulator / scitech / makedefs / bc16.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.x 16 bit version. Supports 16 bit DOS,
30 # DPMI16 DOS extender and 16 bit Windows 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 : USE_WIN16 USE_BC5 BC_LIBBASE USE_WIN95
40
41 # Default commands for compiling, assembling linking and archiving
42 CC := bcc
43 CFLAGS := -ml -H=bcc.sym -i60 -d -dc -4 -f287
44 .IF $(USE_TASM32)
45 AS := tasm32
46 .ELIF $(USE_TASMX)
47 AS := tasmx
48 .ELSE
49 AS := tasm
50 .ENDIF
51 ASFLAGS := /t /mx /m /iINCLUDE /iINCLUDE /i$(SCITECH)\INCLUDE
52 LD := bclink tlink.exe
53 LDFLAGS := -c
54 RC := brc
55 RCFLAGS :=
56 .IF $(USE_BC5)
57 .IF $(USE_WIN95)
58 WIN_VERSION := -V4.0
59 .ENDIF
60 .ENDIF
61 LIBR := tlib
62 LIBFLAGS := /C /P32
63 ILIB := implib
64 ILIBFLAGS := -c
65
66 # Optionally turn on debugging information
67 .IF $(DBG)
68 CFLAGS += -v
69 LDFLAGS += -v
70 ASFLAGS += /zi
71 LIBFLAGS += /P128
72 .ELSE
73 LDFLAGS += -x
74 ASFLAGS += /q
75 .END
76
77 # Optionally turn on optimisations
78 .IF $(OPT)
79 CFLAGS += -O2 -k-
80 .ELIF $(OPT_SIZE)
81 CFLAGS += -O1 -k-
82 .END
83
84 # Optionally turn on direct i387 FPU instructions
85
86 .IF $(FPU)
87 CFLAGS += -DFPU387
88 ASFLAGS += -DFPU387
89 .END
90
91 # Optionally compile a beta release version of a product
92 .IF $(BETA)
93 CFLAGS += -DBETA
94 ASFLAGS += -DBETA
95 .END
96
97 # Optionally compile as Win16
98 .IF $(USE_WIN16)
99 .IF $(BUILD_DLL)
100 CFLAGS += -WD -Fs- -DBUILD_DLL
101 ASFLAGS += -DBUILD_DLL
102 .ELSE
103 CFLAGS += -W -Fs-
104 .ENDIF
105 DEF_LIBS := import.lib mathwl.lib cwl.lib
106 DX_ASFLAGS += -D__WINDOWS16__
107 LIB_OS = WIN16
108 .ELSE
109 USE_REALDOS := 1
110 DEF_LIBS := mathl.lib fp87.lib cl.lib
111 LIB_OS = DOS16
112 .END
113
114 # Place to look for PMODE library files
115
116 .IF $(USE_DPMI16)
117 PMLIB := dpmi16\pm.lib
118 .ELSE
119 PMLIB := pm.lib
120 .END
121
122 # Define the base directory for library files
123
124 .IF $(CHECKED)
125 LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
126 CFLAGS += -DCHECKED=1
127 .ELSE
128 LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
129 .ENDIF
130
131 # Define where to install library files
132 LIB_BASE := $(LIB_BASE_DIR)\$(LIB_OS)\$(BC_LIBBASE)
133 LIB_DEST := $(LIB_BASE)
134
135 # Define which file contains our rules
136
137 RULES_MAK := bc16.mk