Import upstream u-boot 1.1.4
[u-boot.git] / board / MAI / bios_emulator / scitech / makedefs / hc32.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 #               Metaware High C/C++ 3.21 32 bit version. Supports Phar Lap's
30 #               TNT DOS Extender.
31 #
32 #############################################################################
33
34 # Include standard startup script definitions
35 .IMPORT: SCITECH
36 .INCLUDE: "$(SCITECH)\makedefs\startup.mk"
37
38 # We are compiling for a 32 bit envionment
39    _32BIT_      := 1
40
41 # Default commands for compiling, assembling linking and archiving
42    CC           := hc386    # C-compiler and flags
43    CFLAGS       :=
44 .IF $(USE_TASM32)
45    AS           := tasm32
46 .ELIF $(USE_TASMX)
47    AS           := tasmx    # Assembler and flags
48 .ELSE
49    AS           := tasm     # Assembler and flags
50 .ENDIF
51    ASFLAGS      := /t /mx /m /D__FLAT__ /iINCLUDE /i$(SCITECH)\INCLUDE
52    LD           := hc386
53    LDFLAGS       = $(CFLAGS)
54    LIB          := 386lib   # TNT 386|lib Librarian
55    LIBFLAGS     := -TC
56
57 # Optionally turn on debugging information
58 .IF $(DBG)
59    CFLAGS       += -g       # Turn on debugging for C compiler
60    ASFLAGS      += /zi      # Turn on debugging for assembler
61 .ELSE
62    ASFLAGS      += /q       # Suppress object records not needed for linking
63 .END
64
65 # Optionally turn on optimisations
66 .IF $(OPT)
67    CFLAGS       += -586 -O
68 .ELIF $(OPT_SIZE)
69    CFLAGS       += -586 -O1
70 .ELSE
71    CFLAGS       += -O0
72 .END
73
74 # Optionally turn on direct i387 FPU instructions
75
76 .IF $(FPU)
77    CFLAGS       += -DFPU387
78    ASFLAGS      += -DFPU387
79 .END
80
81 # Optionally compile a beta release version of a product
82 .IF $(BETA)
83    CFLAGS       += -DBETA
84    ASFLAGS      += -DBETA
85 .END
86
87 # DOS extender dependant flags
88    USE_TNT      := 1
89    USE_REALDOS  := 1
90    DX_CFLAGS    += -DTNT
91    DX_ASFLAGS   += -DTNT
92    LDFLAGS      += -LH:\TNT\LIB
93
94 # Place to look for PMODE library files
95
96 PMLIB           := tnt\pm.lib
97
98 # Define the base directory for library files
99
100 .IF $(CHECKED)
101 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
102 CFLAGS                  += -DCHECKED=1
103 .ELSE
104 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
105 .ENDIF
106
107 # Define where to install library files
108    LIB_BASE     := $(LIB_BASE_DIR)\DOS32\HC
109    LIB_DEST     := $(LIB_BASE)
110
111 # Define which file contains our rules
112
113    RULES_MAK    := hc32.mk