aboutsummaryrefslogtreecommitdiff
path: root/board/MAI/bios_emulator/scitech/makedefs/hc32.mk
diff options
context:
space:
mode:
authorwdenk2002-11-19 11:04:11 +0000
committerwdenk2002-11-19 11:04:11 +0000
commitc7de829c796978e519984df2f1c8cfcf921a39a4 (patch)
tree43e42aa9a09f5265783c1622a5cea080471ef50e /board/MAI/bios_emulator/scitech/makedefs/hc32.mk
parent2262cfeef91458b01a1bfe3812ccbbfdf8b82807 (diff)
* Patch by Thomas Frieden, 13 Nov 2002:
Add code for AmigaOne board (preliminary merge to U-Boot, still WIP) * Patch by Jon Diekema, 12 Nov 2002: - Adding URL for IEEE OUI lookup - Making the autoboot #defines dependent on CONFIG_AUTOBOOT_KEYED being defined. - In the CONFIG_EXTRA_ENV_SETTINGS #define, the root-on-initrd and root-on-nfs macros are designed to switch how the default boot method gets defined.
Diffstat (limited to 'board/MAI/bios_emulator/scitech/makedefs/hc32.mk')
-rw-r--r--board/MAI/bios_emulator/scitech/makedefs/hc32.mk113
1 files changed, 113 insertions, 0 deletions
diff --git a/board/MAI/bios_emulator/scitech/makedefs/hc32.mk b/board/MAI/bios_emulator/scitech/makedefs/hc32.mk
new file mode 100644
index 00000000000..f0b065a47c4
--- /dev/null
+++ b/board/MAI/bios_emulator/scitech/makedefs/hc32.mk
@@ -0,0 +1,113 @@
+#############################################################################
+#
+# SciTech Multi-platform Graphics Library
+#
+# ========================================================================
+#
+# The contents of this file are subject to the SciTech MGL Public
+# License Version 1.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.scitechsoft.com/mgl-license.txt
+#
+# Software distributed under the License is distributed on an
+# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# rights and limitations under the License.
+#
+# The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
+#
+# The Initial Developer of the Original Code is SciTech Software, Inc.
+# All Rights Reserved.
+#
+# ========================================================================
+#
+# Descripton: Generic DMAKE startup makefile definitions file. Assumes
+# that the SCITECH environment variable has been set to point
+# to where all our stuff is installed. You should not need
+# to change anything in this file.
+#
+# Metaware High C/C++ 3.21 32 bit version. Supports Phar Lap's
+# TNT DOS Extender.
+#
+#############################################################################
+
+# Include standard startup script definitions
+.IMPORT: SCITECH
+.INCLUDE: "$(SCITECH)\makedefs\startup.mk"
+
+# We are compiling for a 32 bit envionment
+ _32BIT_ := 1
+
+# Default commands for compiling, assembling linking and archiving
+ CC := hc386 # C-compiler and flags
+ CFLAGS :=
+.IF $(USE_TASM32)
+ AS := tasm32
+.ELIF $(USE_TASMX)
+ AS := tasmx # Assembler and flags
+.ELSE
+ AS := tasm # Assembler and flags
+.ENDIF
+ ASFLAGS := /t /mx /m /D__FLAT__ /iINCLUDE /i$(SCITECH)\INCLUDE
+ LD := hc386
+ LDFLAGS = $(CFLAGS)
+ LIB := 386lib # TNT 386|lib Librarian
+ LIBFLAGS := -TC
+
+# Optionally turn on debugging information
+.IF $(DBG)
+ CFLAGS += -g # Turn on debugging for C compiler
+ ASFLAGS += /zi # Turn on debugging for assembler
+.ELSE
+ ASFLAGS += /q # Suppress object records not needed for linking
+.END
+
+# Optionally turn on optimisations
+.IF $(OPT)
+ CFLAGS += -586 -O
+.ELIF $(OPT_SIZE)
+ CFLAGS += -586 -O1
+.ELSE
+ CFLAGS += -O0
+.END
+
+# Optionally turn on direct i387 FPU instructions
+
+.IF $(FPU)
+ CFLAGS += -DFPU387
+ ASFLAGS += -DFPU387
+.END
+
+# Optionally compile a beta release version of a product
+.IF $(BETA)
+ CFLAGS += -DBETA
+ ASFLAGS += -DBETA
+.END
+
+# DOS extender dependant flags
+ USE_TNT := 1
+ USE_REALDOS := 1
+ DX_CFLAGS += -DTNT
+ DX_ASFLAGS += -DTNT
+ LDFLAGS += -LH:\TNT\LIB
+
+# Place to look for PMODE library files
+
+PMLIB := tnt\pm.lib
+
+# Define the base directory for library files
+
+.IF $(CHECKED)
+LIB_BASE_DIR := $(SCITECH_LIB)\lib\debug
+CFLAGS += -DCHECKED=1
+.ELSE
+LIB_BASE_DIR := $(SCITECH_LIB)\lib\release
+.ENDIF
+
+# Define where to install library files
+ LIB_BASE := $(LIB_BASE_DIR)\DOS32\HC
+ LIB_DEST := $(LIB_BASE)
+
+# Define which file contains our rules
+
+ RULES_MAK := hc32.mk