Coding style cleanup
[platform/kernel/u-boot.git] / board / MAI / bios_emulator / scitech / makedefs / wc16.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 #               Watcom C++ 10.x 16 bit version. Supports 16-bit DOS,
30 #               16-bit Windows development and 16-bit OS/2 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 : WC_LIBBASE USE_WIN16 USE_OS216 USE_OS2GUI
40
41 # Default commands for compiling, assembling linking and archiving
42    CC           := wcc      # C-compiler and flags
43    CPP          := wpp      # C++-compiler and flags
44    CFLAGS       := -ml-zq-j-w2-s-fh -fhq
45 .IF $(USE_TASM32)
46    AS           := tasm32
47 .ELIF $(USE_TASMX)
48    AS           := tasmx    # Assembler and flags
49 .ELSE
50    AS           := tasm     # Assembler and flags
51 .ENDIF
52    AS           := tasm     # Assembler and flags
53    ASFLAGS      := /t /mx /m /D__LARGE__ /iINCLUDE /i$(SCITECH)\INCLUDE
54    LD           := wlink    # Loader and flags
55    LDFLAGS       =
56    RC           := wrc      # Watcom resource compiler
57    RCFLAGS      := /bt=windows
58    LIB          := wlib     # Librarian
59    LIBFLAGS     := -q
60    ILIB         := wlib     # Import librarian
61    ILIBFLAGS    := -c
62
63 # Optionally turn on debugging information
64 .IF $(DBG)
65    CFLAGS       += -d2      # Turn on debugging for C compiler
66    LIBFLAGS     += -p=128   # Larger page size for libraries with debug info!
67    ASFLAGS      += /zi      # Turn on debugging for assembler
68    LDFLAGS      += D A      # Turn on debugging for linker
69 .ELSE
70    ASFLAGS      += /q       # Suppress object records not needed for linking
71 .END
72
73 # Optionally turn on optimisations
74 .IF $(OPT)
75    CFLAGS       += -onatx-5
76 .ELIF $(OPT_SIZE)
77    CFLAGS       += -onaslmr-5
78 .END
79
80 # Optionally turn on direct i387 FPU instructions optimised for Pentium
81
82 .IF $(FPU)
83    CFLAGS       += -fpi87-fp5-DFPU387
84    ASFLAGS      += -DFPU387
85 .END
86
87 # Optionally compile a beta release version of a product
88 .IF $(BETA)
89    CFLAGS       += -DBETA
90    ASFLAGS      += -DBETA
91 .END
92
93 # Use a larger stack during linking if requested
94
95 .IF $(STKSIZE)
96     LDFLAGS     += OP STACK=$(STKSIZE)
97 .ENDIF
98
99 .IF $(USE_OS216)
100 .IF $(BUILD_DLL)
101     CFLAGS       += -bd-bt=os2-DBUILD_DLL
102     ASFLAGS      += -DBUILD_DLL
103 .ELSE
104     CFLAGS       += -bt=os2
105 .ENDIF
106     DX_ASFLAGS   += -D__OS216__
107     LIB_OS       = os216
108 .ELIF $(USE_WIN16)
109 .IF $(BUILD_DLL)
110     CFLAGS       += -bd-bt=windows-D_WINDOWS-DBUILD_DLL
111     ASFLAGS      += -DBUILD_DLL
112 .ELSE
113     CFLAGS       += -bt=windows-D_WINDOWS
114 .ENDIF
115     DX_ASFLAGS   += -D__WINDOWS16__
116     LIB_OS       = WIN16
117 .ELSE
118     USE_REALDOS  := 1
119         LIB_OS       = DOS16
120 .END
121
122 # Place to look for PMODE library files
123
124 PMLIB           := pm.lib,
125
126 # Define the base directory for library files
127
128 .IF $(CHECKED)
129 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\debug
130 CFLAGS                  += -DCHECKED=1
131 .ELSE
132 LIB_BASE_DIR    := $(SCITECH_LIB)\lib\release
133 .ENDIF
134
135 # Define where to install library files
136    LIB_BASE     := $(LIB_BASE_DIR)\$(LIB_OS)\$(WC_LIBBASE)
137    LIB_DEST     := $(LIB_BASE)
138
139 # Define which file contains our rules
140
141    RULES_MAK    := wc16.mk