equal
deleted
inserted
replaced
112 # |
112 # |
113 # Get platform definitions |
113 # Get platform definitions |
114 # |
114 # |
115 |
115 |
116 include $(JDK_TOPDIR)/make/common/Defs-$(PLATFORM).gmk |
116 include $(JDK_TOPDIR)/make/common/Defs-$(PLATFORM).gmk |
|
117 |
|
118 # |
|
119 # Cross-compilation Settings |
|
120 # |
|
121 ifdef CROSS_COMPILE_ARCH |
|
122 # Can't run the tools we just built |
|
123 USE_ONLY_BOOTDIR_TOOLS = true |
|
124 |
|
125 # When cross-compiling CC generates code for the target, but |
|
126 # some parts of the build generate C code that has to be compiled |
|
127 # and executed on the build host - HOST_CC is the 'local' compiler. |
|
128 # For linux the default is /usr/bin/gcc; other platforms need to |
|
129 # set it explicitly |
|
130 ifeq ($(PLATFORM), linux) |
|
131 ifndef HOST_CC |
|
132 HOST_CC = $(USRBIN_PATH)gcc |
|
133 endif |
|
134 endif |
|
135 else |
|
136 # Must set HOST_CC if not already set |
|
137 ifndef HOST_CC |
|
138 HOST_CC = $(CC) |
|
139 endif |
|
140 endif |
|
141 |
|
142 # Reset the VM name for client-only builds |
|
143 ifdef BUILD_CLIENT_ONLY |
|
144 VM_NAME = client |
|
145 endif |
|
146 |
117 |
147 |
118 # |
148 # |
119 # Freetype logic is applicable to OpenJDK only |
149 # Freetype logic is applicable to OpenJDK only |
120 # |
150 # |
121 ifdef OPENJDK |
151 ifdef OPENJDK |
332 CLASSDESTDIR = $(CLASSBINDIR) |
362 CLASSDESTDIR = $(CLASSBINDIR) |
333 endif |
363 endif |
334 |
364 |
335 INCLUDES = -I. -I$(CLASSHDRDIR) \ |
365 INCLUDES = -I. -I$(CLASSHDRDIR) \ |
336 $(patsubst %,-I%,$(subst $(CLASSPATH_SEPARATOR), ,$(VPATH.h))) $(OTHER_INCLUDES) |
366 $(patsubst %,-I%,$(subst $(CLASSPATH_SEPARATOR), ,$(VPATH.h))) $(OTHER_INCLUDES) |
337 OTHER_CPPFLAGS = $(INCLUDES) |
367 OTHER_CPPFLAGS += $(INCLUDES) |
338 |
|
339 |
368 |
340 # |
369 # |
341 # vpaths. These are the default locations searched for source files. |
370 # vpaths. These are the default locations searched for source files. |
342 # GNUmakefiles of individual areas often override the default settings. |
371 # GNUmakefiles of individual areas often override the default settings. |
343 # There are no longer default vpath entries for C and assembler files |
372 # There are no longer default vpath entries for C and assembler files |
464 $(CXXFLAGS_$(VARIANT)$(CXXFLAGS_$(VARIANT)/$(@F))) |
493 $(CXXFLAGS_$(VARIANT)$(CXXFLAGS_$(VARIANT)/$(@F))) |
465 |
494 |
466 # |
495 # |
467 # Tool flags |
496 # Tool flags |
468 # |
497 # |
|
498 # EXTRA_CFLAGS are used to define cross-compilation options |
|
499 # |
469 ASFLAGS = $(ASFLAGS_$(VARIANT)) $(ASFLAGS_COMMON) $(OTHER_ASFLAGS) |
500 ASFLAGS = $(ASFLAGS_$(VARIANT)) $(ASFLAGS_COMMON) $(OTHER_ASFLAGS) |
470 CFLAGS = $(CFLAGS_$(VARIANT)/BYFILE) $(CFLAGS_COMMON) $(OTHER_CFLAGS) |
501 CFLAGS = $(CFLAGS_$(VARIANT)/BYFILE) $(CFLAGS_COMMON) $(OTHER_CFLAGS) $(EXTRA_CFLAGS) |
471 CXXFLAGS = $(CXXFLAGS_$(VARIANT)/BYFILE) $(CXXFLAGS_COMMON) $(OTHER_CXXFLAGS) |
502 CXXFLAGS = $(CXXFLAGS_$(VARIANT)/BYFILE) $(CXXFLAGS_COMMON) $(OTHER_CXXFLAGS) $(EXTRA_CFLAGS) |
472 CPPFLAGS = $(CPPFLAGS_$(VARIANT)) $(CPPFLAGS_COMMON) $(OTHER_CPPFLAGS) \ |
503 CPPFLAGS = $(CPPFLAGS_$(VARIANT)) $(CPPFLAGS_COMMON) $(OTHER_CPPFLAGS) \ |
473 $(DEFINES) $(OPTIONS:%=-D%) |
504 $(DEFINES) $(OPTIONS:%=-D%) |
474 LDFLAGS = $(LDFLAGS_$(VARIANT)) $(LDFLAGS_COMMON) $(OTHER_LDFLAGS) |
505 LDFLAGS = $(LDFLAGS_$(VARIANT)) $(LDFLAGS_COMMON) $(OTHER_LDFLAGS) |
475 LDLIBS = $(OTHER_LDLIBS) $(LDLIBS_$(VARIANT)) $(LDLIBS_COMMON) |
506 LDLIBS = $(OTHER_LDLIBS) $(LDLIBS_$(VARIANT)) $(LDLIBS_COMMON) |
476 LINTFLAGS = $(LINTFLAGS_$(VARIANT)) $(LINTFLAGS_COMMON) \ |
507 LINTFLAGS = $(LINTFLAGS_$(VARIANT)) $(LINTFLAGS_COMMON) \ |