32 # CLASSES:=List of classes to generate stubs for |
32 # CLASSES:=List of classes to generate stubs for |
33 # CLASSES_DIR:=Directory where to look for classes |
33 # CLASSES_DIR:=Directory where to look for classes |
34 # STUB_CLASSES_DIR:=Directory in where to put stub classes |
34 # STUB_CLASSES_DIR:=Directory in where to put stub classes |
35 # RUN_V11:=Set to run rmic with -v1.1 |
35 # RUN_V11:=Set to run rmic with -v1.1 |
36 # RUN_V12:=Set to run rmic with -v1.2 |
36 # RUN_V12:=Set to run rmic with -v1.2 |
37 # RUN_IIOP:=Set to run rmic with -iiop |
|
38 # RUN_IIOP_STDPKG:=Set to run rmic with -iiop -standardPackage |
|
39 # KEEP_GENERATED:=Set to keep generated sources around |
37 # KEEP_GENERATED:=Set to keep generated sources around |
40 SetupRMICompilation = $(NamedParamsMacroTemplate) |
38 SetupRMICompilation = $(NamedParamsMacroTemplate) |
41 define SetupRMICompilationBody |
39 define SetupRMICompilationBody |
42 |
40 |
43 $1_DEP_FILE := $$($1_STUB_CLASSES_DIR)/_the.$1_rmic.generated |
41 $1_DEP_FILE := $$($1_STUB_CLASSES_DIR)/_the.$1_rmic.generated |
57 endif |
55 endif |
58 |
56 |
59 $1_TIE_BASE_FILES := $$(foreach f,$$($1_CLASSES_SLASH),$$(dir $$f)_$$(notdir $$f)) |
57 $1_TIE_BASE_FILES := $$(foreach f,$$($1_CLASSES_SLASH),$$(dir $$f)_$$(notdir $$f)) |
60 $1_TIE_FILES := $$(addprefix $$($1_STUB_CLASSES_DIR)/org/omg/stub/,$$(addsuffix _Tie.class,$$($1_TIE_BASE_FILES))) |
58 $1_TIE_FILES := $$(addprefix $$($1_STUB_CLASSES_DIR)/org/omg/stub/,$$(addsuffix _Tie.class,$$($1_TIE_BASE_FILES))) |
61 $1_TIE_STDPKG_FILES := $$(addprefix $$($1_STUB_CLASSES_DIR)/,$$(addsuffix _Tie.class,$$($1_TIE_BASE_FILES))) |
59 $1_TIE_STDPKG_FILES := $$(addprefix $$($1_STUB_CLASSES_DIR)/,$$(addsuffix _Tie.class,$$($1_TIE_BASE_FILES))) |
62 |
|
63 ifneq (,$$($1_RUN_IIOP)) |
|
64 $1_TARGETS += $$($1_TIE_FILES) |
|
65 $1_ARGS += -iiop -emitPermissionCheck |
|
66 endif |
|
67 ifneq (,$$($1_RUN_IIOP_STDPKG)) |
|
68 $1_TARGETS += $$($1_TIE_STDPKG_FILES) |
|
69 $1_ARGS2 := -iiop -emitPermissionCheck -standardPackage |
|
70 endif |
|
71 |
60 |
72 ifneq (,$$($1_KEEP_GENERATED)) |
61 ifneq (,$$($1_KEEP_GENERATED)) |
73 $1_ARGS += -keepgenerated |
62 $1_ARGS += -keepgenerated |
74 $1_TARGETS += $$(subst .class,.java,$$($1_TARGETS)) |
63 $1_TARGETS += $$(subst .class,.java,$$($1_TARGETS)) |
75 endif |
64 endif |