]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/MAI/bios_emulator/scitech/makedefs/bc3.mk
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / board / MAI / bios_emulator / scitech / makedefs / bc3.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++ 3.1 version. Supports 16 bit DOS development.
30 #
31 #############################################################################
32
33 # Include standard startup script definitions
34 .IMPORT: SCITECH
35 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
36
37 # Default commands for compiling, assembling linking and archiving
38    CC           := bcc
39    CFLAGS       := -ml -H=bcc.sym -i60 -d
40 .IF $(USE_TASM32)
41    AS           := tasm32
42 .ELIF $(USE_TASMX)
43    AS           := tasmx
44 .ELSE
45    AS           := tasm
46 .ENDIF
47    ASFLAGS      := /t /mx /m /iINCLUDE /i$(SCITECH)\INCLUDE
48    LD           := bclink tlink.exe
49    LDFLAGS      := -c
50    LIB          := tlib
51    LIBFLAGS     := /C
52
53 # Optionally turn on debugging information
54 .IF $(DBG)
55    CFLAGS       += -v
56    LDFLAGS      += -v
57    ASFLAGS      += /zi
58    LIBFLAGS     += /P128
59 .ELSE
60    LDFLAGS      += -x
61    ASFLAGS      += /q
62 .END
63
64 # Optionally turn on optimisations
65 .IF $(OPT)
66    CFLAGS       += -3 -O2
67 .ELIF $(OPT_SIZE)
68    CFLAGS       += -3 -O1
69 .END
70
71 # Optionally turn on direct i387 FPU instructions
72
73 .IF $(FPU)
74    CFLAGS       += -f287 -DFPU387
75    ASFLAGS      += -DFPU387
76 .END
77
78 # Optionally compile a beta release version of a product
79 .IF $(BETA)
80    CFLAGS       += -DBETA
81    ASFLAGS      += -DBETA
82 .END
83    USE_REALDOS  := 1
84
85 # Define the default libraries to link with
86    DEF_LIBS             := mathl.lib cl.lib
87
88 # Define the base directory for library files
89
90 .IF $(CHECKED)
91 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
92 CFLAGS                  += -DCHECKED=1
93 .ELSE
94 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
95 .ENDIF
96
97 # Define where to install library files
98    LIB_DEST     := $(LIB_BASE_DIR)\dos16\bc3
99
100 # Define which file contains our rules
101
102    RULES_MAK    := bc3.mk