1 #
2 # Copyright (c) 1999, 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 #
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 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
64 # Compiler warnings are treated as errors
65 CFLAGS_WARN = -Werror
66 CFLAGS += $(CFLAGS_WARN)
67
68 OBJECTNAMES = \
69 adlparse.o \
70 archDesc.o \
71 arena.o \
72 dfa.o \
73 dict2.o \
74 filebuff.o \
|
1 #
2 # Copyright (c) 1999, 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 #
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}
51 VPATH += $(Src_Dirs_V:%=%:)
52
53 # set INCLUDES for C preprocessor
54 Src_Dirs_I = ${Src_Dirs} $(GAMMADIR)/src/share/vm $(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 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
64 # Compiler warnings are treated as errors
65 CFLAGS_WARN = -Werror
66 CFLAGS += $(CFLAGS_WARN)
67
68 OBJECTNAMES = \
69 adlparse.o \
70 archDesc.o \
71 arena.o \
72 dfa.o \
73 dict2.o \
74 filebuff.o \
|