32 # RUN_V11:=Set to run rmic with -v1.1 |
32 # RUN_V11:=Set to run rmic with -v1.1 |
33 # RUN_V12:=Set to run rmic with -v1.2 |
33 # RUN_V12:=Set to run rmic with -v1.2 |
34 # RUN_IIOP:=Set to run rmic with -iiop |
34 # RUN_IIOP:=Set to run rmic with -iiop |
35 # RUN_IIOP_STDPKG:=Set to run rmic with -iiop -standardPackage |
35 # RUN_IIOP_STDPKG:=Set to run rmic with -iiop -standardPackage |
36 # KEEP_GENERATED:=Set to keep generated sources around |
36 # KEEP_GENERATED:=Set to keep generated sources around |
37 $(if $2,$1_$(strip $2)) |
37 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE)) |
38 $(if $3,$1_$(strip $3)) |
38 $(call LogSetupMacroEntry,SetupRMICompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15)) |
39 $(if $4,$1_$(strip $4)) |
39 $(if $(16),$(error Internal makefile error: Too many arguments to SetupRMICompilation, please update RMICompilation.gmk)) |
40 $(if $5,$1_$(strip $5)) |
|
41 $(if $6,$1_$(strip $6)) |
|
42 $(if $7,$1_$(strip $7)) |
|
43 $(if $8,$1_$(strip $8)) |
|
44 $(if $9,$1_$(strip $9)) |
|
45 $(if $(10),$(error Internal makefile error: Too many arguments to SetupRMICompilation, please update RMICompilation.gmk)) |
|
46 |
|
47 |
40 |
48 $1_DEP_FILE := $$($1_STUB_CLASSES_DIR)/$1_rmic |
41 $1_DEP_FILE := $$($1_STUB_CLASSES_DIR)/$1_rmic |
49 |
42 |
50 $1_CLASSES_SLASH := $$(subst .,/,$$($1_CLASSES)) |
43 $1_CLASSES_SLASH := $$(subst .,/,$$($1_CLASSES)) |
51 $1_CLASS_FILES := $$(addprefix $$($1_CLASSES_DIR)/,$$(addsuffix .class,$$($1_CLASSES_SLASH))) |
44 $1_CLASS_FILES := $$(addprefix $$($1_CLASSES_DIR)/,$$(addsuffix .class,$$($1_CLASSES_SLASH))) |
84 $$($1_TARGETS): $$($1_DEP_FILE) $$($1_CLASS_FILES) |
77 $$($1_TARGETS): $$($1_DEP_FILE) $$($1_CLASS_FILES) |
85 |
78 |
86 $$($1_DEP_FILE): $$($1_CLASS_FILES) |
79 $$($1_DEP_FILE): $$($1_CLASS_FILES) |
87 $(MKDIR) -p $$($1_STUB_CLASSES_DIR) |
80 $(MKDIR) -p $$($1_STUB_CLASSES_DIR) |
88 if [ "x$$($1_ARGS)" != "x" ]; then \ |
81 if [ "x$$($1_ARGS)" != "x" ]; then \ |
89 $(ECHO) Running rmic $$($1_ARGS) for $$($1_DOLLAR_SAFE_CLASSES) &&\ |
82 $(ECHO) $(LOG_INFO) Running rmic $$($1_ARGS) for $$($1_DOLLAR_SAFE_CLASSES) &&\ |
90 $(RMIC) $$($1_ARGS) -classpath "$$($1_CLASSES_DIR)" \ |
83 $(RMIC) $$($1_ARGS) -classpath "$$($1_CLASSES_DIR)" \ |
91 -d $$($1_STUB_CLASSES_DIR) $$($1_DOLLAR_SAFE_CLASSES);\ |
84 -d $$($1_STUB_CLASSES_DIR) $$($1_DOLLAR_SAFE_CLASSES);\ |
92 fi; |
85 fi; |
93 if [ "x$$($1_ARGS2)" != "x" ]; then \ |
86 if [ "x$$($1_ARGS2)" != "x" ]; then \ |
94 $(ECHO) Running rmic $$($1_ARGS2) for $$($1_DOLLAR_SAFE_CLASSES) &&\ |
87 $(ECHO) $(LOG_INFO) Running rmic $$($1_ARGS2) for $$($1_DOLLAR_SAFE_CLASSES) &&\ |
95 $(RMIC) $$($1_ARGS2) -classpath "$$($1_CLASSES_DIR)" \ |
88 $(RMIC) $$($1_ARGS2) -classpath "$$($1_CLASSES_DIR)" \ |
96 -d $$($1_STUB_CLASSES_DIR) $$($1_DOLLAR_SAFE_CLASSES);\ |
89 -d $$($1_STUB_CLASSES_DIR) $$($1_DOLLAR_SAFE_CLASSES);\ |
97 fi; |
90 fi; |
98 |
91 |
99 |
92 |