# This Makefile can be used to compile the EMBL idl files to java code using # ORBacus, Visibroker or OrbixWeb. The default is to use ORBacus; to use # other compilers, (un)comment the appropriate sections. # General variables: RM = /usr/bin/rm OUTPUT_DIR = java_idl # ------------------------------------------------------------------------ # ORBacus settings; this has been testes with ORBacus for java 3.1 # Comment this section out when a different ORB is used. # ------------------------------------------------------------------ # Possible compilation flags: # --no-skeletons Don't generate skeletons. # --all Generate code for included files. # --output-dir DIR Write .java files to directory DIR. # ------------------------------------------------------------------ IDL_FLAGS = --all --no-skeletons OUTPUT_FLAG = --output-dir $(OUTPUT_DIR) IDL_COMPILER = jidl # # ------------------------------------------------------------------------ # # Visibroker settings; this has been tested with Visibroker 3.1 for java # # Uncomment this section if needed. # # ------------------------------------------------------------------ # # Possible compilation flags: # # -incl_files_code Generate code for included files # # -root_dir Generate code into the specified directory # # -no_comments Suppress comments in generated code # # -no_examples Suppress generation of example code # # ------------------------------------------------------------------ # # IDL_FLAGS = -incl_files_code -no_comments -no_examples # OUTPUT_FLAG = -root_dir $(OUTPUT_DIR) # IDL_COMPILER = idl2java # ------------------------------------------------------------------------ # OrbixWeb settings. This has been tested with OrbixWebProf 3.0 patch level 4 # Uncomment this section when needed # ------------------------------------------------------------------ # Possible compilation flags: # # -N Output code for included IDL files # -jO A target directory for compiler output code # -jOMG OMG mapping only - suppress value added support # -jc Generate client side stubs only # # ------------------------------------------------------------------ # # IDL_FLAGS = -jc # OUTPUT_DIR = java_idl # OUTPUT_FLAG = -jO $(OUTPUT_DIR) # IDL_COMPILER = idl # ------------------------------------------------------------------ # Finally, the compilation rules: # ------------------------------------------------------------------------ idl: @mkdir $(OUTPUT_DIR) >/dev/null $(IDL_COMPILER) $(IDL_FLAGS) $(OUTPUT_FLAG) embl.idl clean: $(RM) -rf $(OUTPUT_DIR) # ------------------------------------------------------------------------