source: trunk/openjdk/hotspot/make/os2/makefiles/compile.make@ 43

Last change on this file since 43 was 43, checked in by dmik, 15 years ago

hotspot/make: Adding OS/2 support.

File size: 1.9 KB
Line 
1#
2# Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# This code is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation.
8#
9# This code is distributed in the hope that it will be useful, but WITHOUT
10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12# version 2 for more details (a copy is included in the LICENSE file that
13# accompanied this code).
14#
15# You should have received a copy of the GNU General Public License version
16# 2 along with this work; if not, write to the Free Software Foundation,
17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18#
19# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20# CA 95054 USA or visit www.sun.com if you need additional information or
21# have any questions.
22#
23#
24
25# Generic compiler settings
26CXX = g++
27
28CXX_FLAGS = -Zomf -march=i486 -mtune=generic
29
30# Based on BUILDARCH we add some flags and select the default compiler name
31ifeq ($(BUILDARCH),i486)
32CXX_FLAGS += -DIA32
33endif
34
35# Compile for space above time.
36ifeq ($(Variant),kernel)
37PRODUCT_OPT_OPTION = -s -Os
38FASTDEBUG_OPT_OPTION = -s -Os
39DEBUG_OPT_OPTION = -g
40ese
41PRODUCT_OPT_OPTION = -s -O3
42FASTDEBUG_OPT_OPTION = -s -O3
43DEBUG_OPT_OPTION = -g
44endif
45
46# If NO_OPTIMIZATIONS is defined in the environment, turn everything off
47ifdef NO_OPTIMIZATIONS
48PRODUCT_OPT_OPTION = $(DEBUG_OPT_OPTION)
49FASTDEBUG_OPT_OPTION = $(DEBUG_OPT_OPTION)
50endif
51
52# Generic linker settings
53LINK = g++
54LINK_FLAGS = \
55 -Zomf -Zmap -Zstack 0x2000 -Zlinker "DISABLE 1121" -Zhigh-mem \
56
57 # @todo
58 #kernel32.lib user32.lib gdi32.lib winspool.lib \
59 #comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
60 #uuid.lib Wsock32.lib winmm.lib
Note: See TracBrowser for help on using the repository browser.