Main.gmk revision 1126:2870f66fe00e
1#
2# Copyright (c) 2011, 2014, 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.  Oracle designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Oracle in the LICENSE file that accompanied this code.
10#
11# This code is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14# version 2 for more details (a copy is included in the LICENSE file that
15# accompanied this code).
16#
17# You should have received a copy of the GNU General Public License version
18# 2 along with this work; if not, write to the Free Software Foundation,
19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20#
21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22# or visit www.oracle.com if you need additional information or have any
23# questions.
24#
25
26################################################################################
27# This is the main makefile containing most actual top level targets. It needs
28# to be called with a SPEC file defined.
29
30# Declare default target
31default:
32
33# Now load the spec
34include $(SPEC)
35
36include $(SRC_ROOT)/make/MakeHelpers.gmk
37
38# Load the vital tools for all the makefiles.
39include $(SRC_ROOT)/make/common/MakeBase.gmk
40
41# Load common profile names definitions
42include $(JDK_TOPDIR)/make/ProfileNames.gmk
43
44# Declare ALL_TARGETS as an immediate variable. This variable is a list of all
45# valid top level targets. It's used to declare them all as PHONY and to 
46# generate the -only targets.
47ALL_TARGETS :=
48
49# Hook to include the corresponding custom file, if present.
50$(eval $(call IncludeCustomExtension, , Main.gmk))
51
52# All modules for the current target platform.
53# Manually add jdk.hotspot.agent for now.
54ALL_MODULES := $(call FindAllModules) jdk.hotspot.agent
55
56################################################################################
57################################################################################
58#
59# Recipes for all targets. Only recipes, dependencies are declared later.
60#
61################################################################################
62
63################################################################################
64# Interim/build tools targets, compiling tools used during the build
65
66interim-langtools:
67	+($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterim.gmk)
68
69interim-corba:
70	+($(CD) $(CORBA_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileCorba.gmk)
71
72interim-rmic:
73	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterimRmic.gmk)
74
75build-tools-jdk:
76	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Tools.gmk java-tools)
77
78ALL_TARGETS += interim-langtools interim-corba build-tools-jdk
79
80################################################################################
81# Special targets for certain modules
82
83import-hotspot:
84	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Import.gmk)
85
86unpack-sec:
87	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f UnpackSecurity.gmk)
88
89policy-jars:
90	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CreatePolicyJars.gmk)
91
92ALL_TARGETS += import-hotspot unpack-sec policy-jars
93
94################################################################################
95# Gensrc targets, generating source before java compilation can be done
96JDK_GENSRC_MODULES := $(call FindModulesWithMakefileFor, gensrc, Gensrc)
97LANGTOOLS_GENSRC_MODULES := jdk.compiler.tools
98CORBA_GENSRC_MODULES := java.corba
99GENSRC_MODULES := $(JDK_GENSRC_MODULES) $(LANGTOOLS_GENSRC_MODULES) \
100    $(CORBA_GENSRC_MODULES)
101JDK_GENSRC_TARGETS := $(addsuffix -gensrc, $(JDK_GENSRC_MODULES))
102LANGTOOLS_GENSRC_TARGETS := $(addsuffix -gensrc, $(LANGTOOLS_GENSRC_MODULES))
103CORBA_GENSRC_TARGETS := $(addsuffix -gensrc, $(CORBA_GENSRC_MODULES))
104GENSRC_TARGETS := $(addsuffix -gensrc, $(GENSRC_MODULES))
105
106jdk.compiler.tools-gensrc:
107	+($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f GensrcLangtools.gmk)
108
109java.corba-gensrc:
110	+($(CD) $(CORBA_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f GensrcCorba.gmk)
111
112# Declare recipes for all jdk <module>-gensrc targets
113$(foreach m, $(JDK_GENSRC_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \
114    $m, gensrc, gensrc, Gensrc)))
115
116ALL_TARGETS += $(GENSRC_TARGETS)
117
118################################################################################
119# Generate data targets
120GENDATA_MODULES := $(call FindModulesWithMakefileFor, gendata, Gendata)
121GENDATA_TARGETS := $(addsuffix -gendata, $(GENDATA_MODULES))
122
123# Declare recipes for all <module>-gendata targets
124$(foreach m, $(GENDATA_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \
125    $m, gendata, gendata, Gendata)))
126
127$(foreach m, $(GENDATA_MODULES), $(eval $(call DeclareGendataRecipe,$m)))
128
129ALL_TARGETS += $(GENDATA_TARGETS)
130
131################################################################################
132# Copy files targets
133COPY_MODULES := $(call FindModulesWithMakefileFor, copy, Copy)
134COPY_TARGETS := $(addsuffix -copy, $(COPY_MODULES))
135
136# Declare recipes for all <module>-copy targets
137$(foreach m, $(COPY_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \
138    $m, copy, copy, Copy)))
139
140ALL_TARGETS += $(COPY_TARGETS)
141
142################################################################################
143# Targets for compiling all java modules. Nashorn is treated separately.
144JAVA_MODULES := $(call FindJavaModules)
145JAVA_TARGETS := $(addsuffix -java, $(JAVA_MODULES))
146
147define DeclareCompileJavaRecipe
148  $1-java:
149	+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f CompileJavaModules.gmk \
150	    $1 JAVA_MODULES=$1)
151endef
152
153$(foreach m, $(filter-out jdk.scripting.nashorn, $(JAVA_MODULES)), \
154    $(eval $(call DeclareCompileJavaRecipe,$m)))
155
156# Build nashorn. Needs to be compiled separately from the rest of the modules
157# due to nasgen.
158jdk.scripting.nashorn-java:
159	+($(CD) $(NASHORN_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk compile)
160
161ALL_TARGETS += $(JAVA_TARGETS)
162
163################################################################################
164# Targets for running rmic.
165RMIC_MODULES := $(call FindModulesWithMakefileFor, rmic, Rmic)
166RMIC_TARGETS := $(addsuffix -rmic, $(RMIC_MODULES))
167
168# Declare recipes for all <module>-rmic targets
169$(foreach m, $(RMIC_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \
170    $m, rmic, rmic, Rmic)))
171
172ALL_TARGETS += $(RMIC_TARGETS)
173
174################################################################################
175# Targets for compiling native libraries
176ALL_LIB_MODULES := $(call FindModulesWithMakefileFor, lib, Lib)
177LIB_MODULES := $(filter $(ALL_MODULES), $(ALL_LIB_MODULES))
178LIB_TARGETS := $(addsuffix -libs, $(LIB_MODULES))
179
180# Declare recipes for all <module>-libs targets
181$(foreach m, $(LIB_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \
182    $m, libs, lib, Lib)))
183
184ALL_TARGETS += $(LIB_TARGETS)
185
186################################################################################
187# Targets for compiling native executables
188ALL_LAUNCHER_MODULES := $(call FindModulesWithMakefileFor, launcher, Launcher)
189LAUNCHER_MODULES := $(filter $(ALL_MODULES), $(ALL_LAUNCHER_MODULES))
190LAUNCHER_TARGETS := $(addsuffix -launchers, $(LAUNCHER_MODULES))
191
192# Declare recipes for all <module>-launchers targets
193$(foreach m, $(LAUNCHER_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \
194    $m, launchers, launcher, Launcher)))
195
196ALL_TARGETS += $(LAUNCHER_TARGETS)
197
198################################################################################
199# Build hotspot target
200
201ifeq ($(BUILD_HOTSPOT),true)
202  hotspot:
203	($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk)
204endif
205
206ALL_TARGETS += hotspot
207
208################################################################################
209# Build demos and samples targets
210
211demos:
212	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileDemos.gmk)
213
214samples:
215	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopySamples.gmk)
216
217ALL_TARGETS += demos samples
218
219################################################################################
220# Image targets
221
222# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
223# used to track the exact sources used to build that image.
224source-tips: $(OUTPUT_ROOT)/source_tips
225$(OUTPUT_ROOT)/source_tips: FRC
226	@$(MKDIR) -p $(@D)
227	@$(RM) $@
228	@$(call GetSourceTips)
229
230security-jars:
231	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CreateSecurityJars.gmk)
232
233nashorn-jar:
234	+($(CD) $(NASHORN_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk all)
235
236# Creates the jar files (rt.jar resources.jar etc)
237# this depends on all modules built
238main-jars: exploded-image
239	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CreateJars.gmk)
240
241# Creates the images (j2sdk-image j2re-image etc)
242images:
243	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Images.gmk)
244        ifeq ($(OPENJDK_TARGET_OS), macosx)
245	  +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Bundles.gmk)
246        endif
247
248# Create Compact Profile jars
249PROFILE_JARS_TARGETS := $(addsuffix -jars, $(ALL_PROFILES))
250$(PROFILE_JARS_TARGETS):
251	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) PROFILE=$(@:%-jars=%) -f CreateJars.gmk)
252
253# Create Compact Profile images
254PROFILE_IMAGES_TARGETS := $(addsuffix -images, $(ALL_PROFILES))
255$(PROFILE_IMAGES_TARGETS):
256	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) PROFILE=$(@:%-images=%) \
257	    JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/j2re-$(word $(call profile_number,$(@:%-images=%)),$(PROFILE_NAMES))-image \
258	    -f Images.gmk profile-image)
259
260profiles-oscheck:
261        ifneq ($(OPENJDK_TARGET_OS), linux)
262	  @echo "Error: The Java SE 8 Compact Profiles are only implemented for Linux at this time" && exit 1
263        endif
264
265bootcycle-images:
266	@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
267	+$(MAKE) $(MAKE_ARGS) -f Main.gmk SPEC=$(dir $(SPEC))bootcycle-spec.gmk images
268
269ALL_TARGETS += source-tips security-jars nashorn-jar main-jars images \
270    $(PROFILE_JARS_TARGETS) $(PROFILE_IMAGES_TARGETS) profiles-oscheck \
271    bootcycle-images
272
273################################################################################
274# Docs targets
275
276docs-javadoc:
277	+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
278
279docs-jvmtidoc:
280	+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk jvmtidocs)
281
282ALL_TARGETS += docs-javadoc docs-jvmtidoc
283
284################################################################################
285# Test target
286
287test:
288	($(CD) $(SRC_ROOT)/test && $(MAKE) $(MAKE_ARGS) -j1 -k MAKEFLAGS= \
289	    JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_OUTPUT_DIR) \
290	    ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
291
292test-make:
293	($(CD) $(SRC_ROOT)/test/make && $(MAKE) $(MAKE_ARGS) -f TestMake.gmk $(TEST_TARGET))
294
295ALL_TARGETS += test test-make
296
297################################################################################
298# Verification targets
299
300# generate modules.xml in the exploded image
301modules-xml:
302	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f ModulesXml.gmk gen-modules-xml)
303
304verify-modules:
305	+($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f ModulesXml.gmk checkdeps)
306
307ALL_TARGETS += modules-xml verify-modules
308
309################################################################################
310# Install targets
311
312install:
313	+($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Install.gmk)
314
315ALL_TARGETS += install
316
317################################################################################
318#
319# Dependency declarations between targets. 
320#
321# These are declared in two groups. First all dependencies between targets that 
322# have recipes above as these dependencies may be disabled. Then the aggregator
323# targets that do not have recipes of their own, which will never have their
324# dependencies disabled.
325#
326################################################################################
327# Targets with recipes above
328
329# If running an *-only target, parallel execution and dependencies between 
330# recipe targets are disabled. This makes it possible to run a select set of 
331# recipe targets in order. It's the responsibility of the user to make sure
332# all prerequisites are fulfilled. 
333ifneq ($(findstring -only, $(MAKECMDGOALS)), )
334  .NOTPARALLEL:
335else
336  interim-langtools: $(LANGTOOLS_GENSRC_TARGETS)
337
338  build-tools-jdk: interim-langtools
339
340  $(CORBA_GENSRC_TARGETS): interim-langtools
341
342  $(JDK_GENSRC_TARGETS): interim-langtools build-tools-jdk
343
344  interim-corba: $(CORBA_GENSRC_TARGETS)
345
346  $(GENDATA_TARGETS): interim-langtools build-tools-jdk
347
348  interim-rmic: interim-langtools
349
350  $(RMIC_TARGETS): interim-langtools interim-corba interim-rmic
351
352  import-hotspot: hotspot
353
354  $(LIB_TARGETS): import-hotspot
355
356  $(LAUNCHER_TARGETS): java.base-libs
357
358  demos: $(JAVA_TARGETS)
359
360  # Declare dependency from <module>-java to <module>-gensrc
361  $(foreach m, $(GENSRC_MODULES), $(eval $m-java: $m-gensrc))
362
363  # Declare dependencies between java modules
364  $(foreach m, $(JAVA_MODULES), \
365      $(eval $m-java: $(addsuffix -java, $(filter $(JAVA_MODULES), \
366      $(call FindDepsForModule,$m)))))
367
368  # Declare dependencies between <module>-rmic to <module>-java
369  $(foreach m, $(RMIC_MODULES), $(eval $m-rmic: $m-java))
370
371  # Declare dependencies from <module>-lib to <module>-java
372  # Skip jdk.jdwp.agent as it contains no java code.
373  $(foreach m, $(filter-out jdk.jdwp.agent, $(LIB_MODULES)), $(eval $m-libs: $m-java))
374
375  # Declare dependencies from all other <module>-lib to java.base-lib
376  $(foreach t, $(filter-out java.base-libs, $(LIB_TARGETS)), \
377      $(eval $t: java.base-libs))
378  # Declare the special case dependency for jdk.deploy.osx where libosx 
379  # links against libosxapp.
380  jdk.deploy.osx-libs: java.desktop-libs
381
382  # This dependency needs to be explicitly declared. jdk.jdi-gensrc generates a 
383  # header file used by jdk.jdwp libs.
384  jdk.jdwp-libs: jdk.jdi-gensrc
385
386  # Explicitly add dependencies for special targets
387  java.base-java: unpack-sec
388
389  security-jars: java
390
391  nashorn-jar: jdk.scripting.nashorn-java
392
393  main-jars: java rmic security-jars nashorn-jar policy-jars import-hotspot
394
395  # On windows, the jars target needs to wait for jgss libs to be built.
396  # Should ideally split out the sec-bin zip file generation to avoid
397  # this dependency.
398  ifeq ($(OPENJDK_TARGET_OS), windows)
399    main-jars: java.security.jgss-libs
400  endif
401
402  images: jars demos samples exploded-image source-tips
403
404  bootcycle-images: images
405
406  # Need to depend on jars as otherwise there will a race between all the
407  # invocations of CreateJars.gmk.
408  $(PROFILE_JARS_TARGETS): jars profiles-oscheck
409
410  $(PROFILE_IMAGES_TARGETS): demos samples exploded-image source-tips
411
412  # Declare dependencies from <profile>-images to <profile>-jars
413  $(foreach p, $(ALL_PROFILES), $(eval $p-images: $p-jars))
414
415  docs-javadoc: $(GENSRC_TARGETS) rmic
416
417  docs-jvmtidoc: hotspot
418
419  test: exploded-image
420
421  modules-xml: build-tools-jdk java
422
423  verify-modules: exploded-image modules-xml
424
425endif
426
427################################################################################
428# Virtual targets without recipes
429
430gensrc: $(GENSRC_TARGETS)
431
432gendata: $(GENDATA_TARGETS)
433
434copy: $(COPY_TARGETS)
435
436java: $(JAVA_TARGETS)
437
438rmic: $(RMIC_TARGETS)
439
440libs: $(LIB_TARGETS)
441
442launchers: $(LAUNCHER_TARGETS)
443
444# Explicitly add dependencies for these special targets
445java.base: import-hotspot policy-jars
446
447# Declare dependencies from <module> to all the individual targets specific
448# to that module <module>-*.
449$(foreach m, $(GENSRC_MODULES), $(eval $m: $m-gensrc))
450$(foreach m, $(JAVA_MODULES), $(eval $m: $m-java))
451$(foreach m, $(GENDATA_MODULES), $(eval $m: $m-gendata))
452$(foreach m, $(RMIC_MODULES), $(eval $m: $m-rmic))
453$(foreach m, $(LIB_MODULES), $(eval $m: $m-libs))
454$(foreach m, $(LAUNCHER_MODULES), $(eval $m: $m-launchers))
455$(foreach m, $(COPY_MODULES), $(eval $m: $m-copy))
456
457ALL_MODULE_TARGETS := $(sort $(GENSRC_MODULES) $(JAVA_MODULES) \
458    $(GENDATA_MODULES) $(LIB_MODULES) $(LAUNCHER_MODULES) $(COPY_MODULES))
459
460exploded-image: $(ALL_MODULE_TARGETS) modules-xml
461
462jars: main-jars nashorn-jar security-jars policy-jars
463
464# Make each profile name a target that depends on it's images target.
465$(foreach p, $(ALL_PROFILES), $(eval $(p): $(p)-images $(p)-jars))
466
467profiles: $(ALL_PROFILES)
468
469docs: docs-javadoc docs-jvmtidoc
470
471ALL_TARGETS += gensrc gendata copy java rmic libs launchers \
472    $(ALL_MODULE_TARGETS) exploded-image jars \
473    $(ALL_PROFILES) profiles docs
474
475################################################################################
476
477all: images docs verify-modules
478default: exploded-image
479
480ALL_TARGETS += default all
481
482################################################################################
483################################################################################
484#
485# Clean targets
486#
487################################################################################
488
489# If running a clean target, disable parallel execution
490ifneq ($(findstring clean, $(MAKECMDGOALS)), )
491  .NOTPARALLEL:
492endif
493
494CLEAN_COMPONENTS += langtools corba hotspot jdk nashorn images \
495    bootcycle-build docs docstemp test
496CLEAN_TARGETS := $(addprefix clean-, $(CLEAN_COMPONENTS))
497
498# Remove everything, except the output from configure.
499clean: $(CLEAN_TARGETS)
500	($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
501	$(ECHO) Cleaned all build artifacts.
502
503$(CLEAN_TARGETS):
504	$(call CleanComponent,$(patsubst clean-%, %, $@))
505
506clean-docs: clean-docstemp
507
508# Remove everything, including configure configuration.
509# If the output directory was created by configure and now becomes empty, remove it as well.
510dist-clean: clean
511	($(CD) $(OUTPUT_ROOT) && $(RM) -r *spec.gmk config.* configure-arguments \
512	    Makefile compare.sh spec.sh tmp javacservers)
513	$(if $(filter $(CONF_NAME),$(notdir $(OUTPUT_ROOT))), \
514	  if test "x`$(LS) $(OUTPUT_ROOT)`" != x; then \
515	    $(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ; \
516	  else \
517	    ($(CD) $(SRC_ROOT) && $(ECHO) "Removing configuration directory for '$(CONF_NAME)'" \
518	        && $(RM) -r $(OUTPUT_ROOT)) \
519	  fi \
520	)
521	$(ECHO) Cleaned everything, you will have to re-run configure.
522
523ALL_TARGETS += clean dist-clean $(CLEAN_TARGETS)
524
525################################################################################
526
527# Setup a rule for SPEC file that fails if executed. This check makes sure the 
528# configuration is up to date after changes to configure. 
529ifeq ($(findstring reconfigure, $(MAKECMDGOALS)), )
530  $(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*)
531	@$(ECHO) "ERROR: $(SPEC) is not up to date."
532	@$(ECHO) "Please rerun configure! Easiest way to do this is by running"
533	@$(ECHO) "'make reconfigure'."
534	@$(ECHO) "It may also be ignored by setting IGNORE_OLD_CONFIG=true"
535	@if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi
536endif
537
538reconfigure:
539        ifneq ($(CONFIGURE_COMMAND_LINE), )
540	  @$(ECHO) "Re-running configure using arguments '$(CONFIGURE_COMMAND_LINE)'"
541        else
542	  @$(ECHO) "Re-running configure using default settings"
543        endif
544	@( cd $(OUTPUT_ROOT) && $(BASH) $(TOPDIR)/configure $(CONFIGURE_COMMAND_LINE) )
545
546ALL_TARGETS += reconfigure
547
548################################################################################
549# Declare *-only targets for each normal target
550$(foreach t, $(ALL_TARGETS), $(eval $(t)-only: $(t)))
551
552ALL_TARGETS += $(addsuffix -only, $(ALL_TARGETS))
553
554################################################################################
555
556.PHONY: $(ALL_TARGETS)
557
558include $(SRC_ROOT)/make/Jprt.gmk
559
560FRC: # Force target
561