make/solaris/makefiles/buildtree.make

changeset 5237
f2110083203d
parent 5109
aabf54ccedb1
child 6876
710a3c8b516e
child 7060
28b4223e2ea7
equal deleted inserted replaced
5236:d0add7016434 5237:f2110083203d
45 # 45 #
46 # Makefile - for "make foo" 46 # Makefile - for "make foo"
47 # flags.make - with macro settings 47 # flags.make - with macro settings
48 # vm.make - to support making "$(MAKE) -v vm.make" in makefiles 48 # vm.make - to support making "$(MAKE) -v vm.make" in makefiles
49 # adlc.make - 49 # adlc.make -
50 # trace.make - generate tracing event and type definitions
50 # jvmti.make - generate JVMTI bindings from the spec (JSR-163) 51 # jvmti.make - generate JVMTI bindings from the spec (JSR-163)
51 # sa.make - generate SA jar file and natives 52 # sa.make - generate SA jar file and natives
52 # 53 #
53 # The makefiles are split this way so that "make foo" will run faster by not 54 # The makefiles are split this way so that "make foo" will run faster by not
54 # having to read the dependency files for the vm. 55 # having to read the dependency files for the vm.
105 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE)) 106 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE))
106 107
107 SIMPLE_DIRS = \ 108 SIMPLE_DIRS = \
108 $(PLATFORM_DIR)/generated/dependencies \ 109 $(PLATFORM_DIR)/generated/dependencies \
109 $(PLATFORM_DIR)/generated/adfiles \ 110 $(PLATFORM_DIR)/generated/adfiles \
110 $(PLATFORM_DIR)/generated/jvmtifiles 111 $(PLATFORM_DIR)/generated/jvmtifiles \
112 $(PLATFORM_DIR)/generated/tracefiles
111 113
112 TARGETS = debug fastdebug optimized product 114 TARGETS = debug fastdebug optimized product
113 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) 115 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
114 116
115 # For dependencies and recursive makes. 117 # For dependencies and recursive makes.
116 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make 118 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
117 119
118 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make 120 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make trace.make sa.make
119 121
120 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ 122 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
121 ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) 123 ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
122 124
123 # Define variables to be set in flags.make. 125 # Define variables to be set in flags.make.
325 echo include flags.make; \ 327 echo include flags.make; \
326 echo; \ 328 echo; \
327 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ 329 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
328 ) > $@ 330 ) > $@
329 331
332 trace.make: $(BUILDTREE_MAKE)
333 @echo Creating $@ ...
334 $(QUIETLY) ( \
335 $(BUILDTREE_COMMENT); \
336 echo; \
337 echo include flags.make; \
338 echo; \
339 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
340 ) > $@
341
330 sa.make: $(BUILDTREE_MAKE) 342 sa.make: $(BUILDTREE_MAKE)
331 @echo Creating $@ ... 343 @echo Creating $@ ...
332 $(QUIETLY) ( \ 344 $(QUIETLY) ( \
333 $(BUILDTREE_COMMENT); \ 345 $(BUILDTREE_COMMENT); \
334 echo; \ 346 echo; \

mercurial