]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/MAI/bios_emulator/scitech/makedefs/vc16.mk
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / board / MAI / bios_emulator / scitech / makedefs / vc16.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 #               Microsoft Visual C++ 1.x 16 bit version. Supports 16 bit
30 #               DOS and 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 : VC_LIBBASE
40
41 # Default commands for compiling, assembling linking and archiving
42    CC           := cl       # C-compiler and flags
43    CFLAGS       := /YX /w /G3 /Gs
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__COMM__ /iINCLUDE /i$(SCITECH)\INCLUDE
52    LD           := cl       # Loader and flags
53    LDFLAGS       = $(CFLAGS)
54    RC           := rc       # WIndows resource compiler
55    RCFLAGS      :=
56    LIB          := lib      # Librarian
57    LIBFLAGS     := /NOI /NOE
58    ILIB         := implib   # Import librarian
59    ILIBFLAGS    := /noignorecase
60
61 # Optionally turn on debugging information
62 .IF $(DBG)
63    CFLAGS       += /Yd /Zi  # Turn on debugging for C compiler
64    ASFLAGS      += /zi      # Turn on debugging for assembler
65 .ELSE
66    ASFLAGS      += /q       # Suppress object records not needed for linking
67 .END
68
69 # Optionally turn on optimisations
70 .IF $(OPT)
71    CFLAGS       += /Ox
72 .END
73
74 # Optionally turn on direct i387 FPU instructions
75
76 .IF $(FPU)
77    CFLAGS       += /FPi87 /DFPU387
78    ASFLAGS      += /DFPU387 /DFPU_REG_RTN
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 # Use a larger stack during linking if requested ???? How the fuck do you
88 # specify linker options on the CL command line?????
89
90 .IF $(STKSIZE)
91 .ENDIF
92
93 # Optionally compile for 16 bit Windows
94 .IF $(USE_WIN16)
95 .IF $(BUILD_DLL)
96    CFLAGS       += /GD /Alfw /DBUILD_DLL
97    ASFLAGS      += -DBUILD_DLL
98 .ELSE
99    CFLAGS       += /GA /AL
100 .ENDIF
101    DX_ASFLAGS   += -D__WINDOWS16__
102    LIB_OS       = WIN16
103 .ELSE
104    USE_REALDOS  := 1
105    CFLAGS       += /AL
106    LIB_OS       = DOS16
107 .END
108
109 # Place to look for PMODE library files
110
111 PMLIB           := pm.lib
112
113 # Define the base directory for library files
114
115 .IF $(CHECKED)
116 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
117 CFLAGS                  += -DCHECKED=1
118 .ELSE
119 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
120 .ENDIF
121
122 # Define where to install library files
123    LIB_BASE     := $(LIB_BASE_DIR)\$(LIB_OS)\$(VC_LIBBASE)
124    LIB_DEST     := $(LIB_BASE)
125
126 # Define which file contains our rules
127
128    RULES_MAK    := vc16.mk