22 #
23 #
24
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 = \
43 $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(ARCH)/vm/$(Platform_arch_model).ad) \
44 $(call altsrc-replace,$(HS_COMMON_SRC)/os_cpu/$(OS)_$(ARCH)/vm/$(OS)_$(Platform_arch_model).ad)
45
46 EXEC = $(OUTDIR)/adlc
47
48 # set VPATH so make knows where to look for source files
49 Src_Dirs_V += $(GAMMADIR)/src/share/vm/adlc
50 VPATH += $(Src_Dirs_V:%=%:)
51
52 # set INCLUDES for C preprocessor
53 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED)
54 INCLUDES += $(Src_Dirs_I:%=-I%)
55
56 # set flags for adlc compilation
57 CPPFLAGS = $(SYSDEFS) $(INCLUDES)
58
59 # Force assertions on.
60 CPPFLAGS += -DASSERT
61
62 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
63 # Compiler warnings are treated as errors
64 CFLAGS_WARN = -Werror
|
22 #
23 #
24
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 ifeq ("${Platform_arch_model}", "${Platform_arch}")
43 SOURCES.AD = \
44 $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(ARCH)/vm/$(Platform_arch_model).ad) \
45 $(call altsrc-replace,$(HS_COMMON_SRC)/os_cpu/$(OS)_$(ARCH)/vm/$(OS)_$(Platform_arch_model).ad)
46 else
47 SOURCES.AD = \
48 $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(ARCH)/vm/$(Platform_arch_model).ad) \
49 $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(ARCH)/vm/$(Platform_arch).ad) \
50 $(call altsrc-replace,$(HS_COMMON_SRC)/os_cpu/$(OS)_$(ARCH)/vm/$(OS)_$(Platform_arch_model).ad)
51 endif
52
53 EXEC = $(OUTDIR)/adlc
54
55 # set VPATH so make knows where to look for source files
56 Src_Dirs_V += $(GAMMADIR)/src/share/vm/adlc
57 VPATH += $(Src_Dirs_V:%=%:)
58
59 # set INCLUDES for C preprocessor
60 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED)
61 INCLUDES += $(Src_Dirs_I:%=-I%)
62
63 # set flags for adlc compilation
64 CPPFLAGS = $(SYSDEFS) $(INCLUDES)
65
66 # Force assertions on.
67 CPPFLAGS += -DASSERT
68
69 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
70 # Compiler warnings are treated as errors
71 CFLAGS_WARN = -Werror
|