1 #
2 # Copyright (c) 1997, 2009, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
25 # This makefile (adlc.make) is included from the adlc.make in the
26 # build directories.
27 # It knows how to compile, link, and run the adlc.
28
29 include $(GAMMADIR)/make/$(Platform_os_family)/makefiles/rules.make
30
31 # #########################################################################
32
33 # OUTDIR must be the same as AD_Dir = $(GENERATED)/adfiles in top.make:
34 GENERATED = ../generated
35 OUTDIR = $(GENERATED)/adfiles
36
37 ARCH = $(Platform_arch)
38 OS = $(Platform_os_family)
39
40 SOURCE.AD = $(OUTDIR)/$(OS)_$(Platform_arch_model).ad
41
42 SOURCES.AD = $(GAMMADIR)/src/cpu/$(ARCH)/vm/$(Platform_arch_model).ad \
43 $(GAMMADIR)/src/os_cpu/$(OS)_$(ARCH)/vm/$(OS)_$(Platform_arch_model).ad
44
45 Src_Dirs += $(GAMMADIR)/src/share/vm/adlc
46
47 EXEC = $(OUTDIR)/adlc
48
49 # set VPATH so make knows where to look for source files
50 Src_Dirs_V = ${Src_Dirs} $(GENERATED)/incls
51 VPATH += $(Src_Dirs_V:%=%:)
52
53 # set INCLUDES for C preprocessor
54 Src_Dirs_I = ${Src_Dirs} $(GENERATED)
55 INCLUDES += $(Src_Dirs_I:%=-I%)
56
57 # set flags for adlc compilation
58 CPPFLAGS = $(SYSDEFS) $(INCLUDES)
59
60 # Force assertions on.
61 CPPFLAGS += -DASSERT
62
63 ifndef USE_GCC
64 # We need libCstd.so for adlc
65 CFLAGS += -library=Cstd -g
66 LFLAGS += -library=Cstd -g
67 endif
68
69 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
70 # Compiler warnings are treated as errors
71 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
72 CFLAGS_WARN = +w -errwarn
73 endif
74 CFLAGS += $(CFLAGS_WARN)
|
1 #
2 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
25 # This makefile (adlc.make) is included from the adlc.make in the
26 # build directories.
27 # It knows how to compile, link, and run the adlc.
28
29 include $(GAMMADIR)/make/$(Platform_os_family)/makefiles/rules.make
30
31 # #########################################################################
32
33 # OUTDIR must be the same as AD_Dir = $(GENERATED)/adfiles in top.make:
34 GENERATED = ../generated
35 OUTDIR = $(GENERATED)/adfiles
36
37 ARCH = $(Platform_arch)
38 OS = $(Platform_os_family)
39
40 SOURCE.AD = $(OUTDIR)/$(OS)_$(Platform_arch_model).ad
41
42 SOURCES.AD = $(GAMMADIR)/src/cpu/$(ARCH)/vm/$(Platform_arch_model).ad \
43 $(GAMMADIR)/src/os_cpu/$(OS)_$(ARCH)/vm/$(OS)_$(Platform_arch_model).ad
44
45 EXEC = $(OUTDIR)/adlc
46
47 # set VPATH so make knows where to look for source files
48 Src_Dirs_V += $(GAMMADIR)/src/share/vm/adlc
49 VPATH += $(Src_Dirs_V:%=%:)
50
51 # set INCLUDES for C preprocessor
52 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED)
53 INCLUDES += $(Src_Dirs_I:%=-I%)
54
55 # set flags for adlc compilation
56 CPPFLAGS = $(SYSDEFS) $(INCLUDES)
57
58 # Force assertions on.
59 CPPFLAGS += -DASSERT
60
61 ifndef USE_GCC
62 # We need libCstd.so for adlc
63 CFLAGS += -library=Cstd -g
64 LFLAGS += -library=Cstd -g
65 endif
66
67 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
68 # Compiler warnings are treated as errors
69 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
70 CFLAGS_WARN = +w -errwarn
71 endif
72 CFLAGS += $(CFLAGS_WARN)
|