# -*- Makefile -*- #---------------------------------------------------------------------------- # GNU Makefile # # @file GNUmakefile.TAO_IDL_BE # # $Id: gnu.mpd 82648 2008-08-21 06:55:54Z johnnyw $ # # This file was automatically generated by MPC. Any changes made directly to # this file will be lost the next time it is generated. # #---------------------------------------------------------------------------- MAKEFILE = GNUmakefile.TAO_IDL_BE DEPENDENCY_FILE = .depend.TAO_IDL_BE ## LIB may be set to empty later on in this file LIB_UNCHECKED = libTAO_IDL_BE.a LIB = $(LIB_UNCHECKED) LIB_NAME = libTAO_IDL_BE ## SHLIB may be set to empty later on in this file SHLIB_UNCHECKED = libTAO_IDL_BE.$(SOEXT) SHLIB = $(SHLIB_UNCHECKED) FILES = \ be/be_visitor_home.cpp \ be/be_constant.cpp \ be/be_visitor_decl.cpp \ be/be_sunsoft.cpp \ be/be_visitor_amh_pre_proc.cpp \ be/be_eventtype.cpp \ be/be_visitor_arg_traits.cpp \ be/be_decl.cpp \ be/be_exception.cpp \ be/be_init.cpp \ be/be_expression.cpp \ be/be_valuebox.cpp \ be/be_visitor_attribute.cpp \ be/be_scope.cpp \ be/be_argument.cpp \ be/be_visitor_traits.cpp \ be/be_visitor_context.cpp \ be/be_tmplinst.cpp \ be/be_visitor_typedef.cpp \ be/be_generator.cpp \ be/be_visitor_template_export.cpp \ be/be_visitor_field.cpp \ be/be_visitor_operation.cpp \ be/be_operation_strategy.cpp \ be/be_stream_factory.cpp \ be/be_valuetype_fwd.cpp \ be/be_visitor_typecode.cpp \ be/be_visitor_array.cpp \ be/be_codegen.cpp \ be/be_visitor_interface_fwd.cpp \ be/be_type.cpp \ be/be_visitor_argument.cpp \ be/be_eventtype_fwd.cpp \ be/be_visitor_valuetype_fwd.cpp \ be/be_enum.cpp \ be/be_visitor_constant.cpp \ be/be_sequence.cpp \ be/be_visitor.cpp \ be/be_visitor_union_fwd.cpp \ be/be_union.cpp \ be/be_visitor_exception.cpp \ be/be_native.cpp \ be/be_visitor_factory.cpp \ be/be_visitor_valuebox.cpp \ be/be_structure_fwd.cpp \ be/be_module.cpp \ be/be_interface.cpp \ be/be_visitor_union.cpp \ be/be_attribute.cpp \ be/be_home.cpp \ be/be_visitor_union_branch.cpp \ be/be_visitor_sequence.cpp \ be/be_helper.cpp \ be/be_structure.cpp \ be/be_interface_fwd.cpp \ be/be_visitor_root.cpp \ be/be_visitor_module.cpp \ be/be_visitor_valuetype.cpp \ be/be_enum_val.cpp \ be/be_util.cpp \ be/be_valuetype.cpp \ be/be_operation.cpp \ be/be_field.cpp \ be/be_visitor_scope.cpp \ be/be_string.cpp \ be/be_visitor_interface.cpp \ be/be_predefined_type.cpp \ be/be_visitor_native.cpp \ be/be_union_label.cpp \ be/be_visitor_ami_pre_proc.cpp \ be/be_array.cpp \ be/be_produce.cpp \ be/be_visitor_structure_fwd.cpp \ be/be_visitor_enum.cpp \ be/be_visitor_ccm_pre_proc.cpp \ be/be_union_fwd.cpp \ be/be_global.cpp \ be/be_root.cpp \ be/be_typedef.cpp \ be/be_union_branch.cpp \ be/be_visitor_component.cpp \ be/be_component_fwd.cpp \ be/be_visitor_component_fwd.cpp \ be/be_interface_strategy.cpp \ be/be_visitor_structure.cpp \ be/be_component.cpp \ be/be_factory.cpp VPATH = .:be #---------------------------------------------------------------------------- # Include macros and targets #---------------------------------------------------------------------------- ACE_SHLIBS = -lTAO_IDL_FE -lACE PRJ_TYPE = library INSLIB ?= $(ACE_ROOT)/lib ifeq ($(INSLIB),.) ifeq ($(PWD),) PWD=$(shell pwd) endif INSLIB = $(PWD) endif OUTPUT_DIRECTORY = $(INSLIB) include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU # To build multiple targets in the same directory on AIX, it works # best to have a template directory per project. # The compiler/linker isn't too smart about instantiating templates... ifdef TEMPINCDIR TEMPINCDIR := $(TEMPINCDIR)/TAO_IDL_BE all: $(TEMPINCDIR) endif ifneq ($(OUTPUT_DIRECTORY),) all: $(OUTPUT_DIRECTORY) $(OUTPUT_DIRECTORY): -@$(MKDIR) "$(OUTPUT_DIRECTORY)" endif # turn off libcheck if doing a dry run ifeq ($(findstring n, $(MAKEFLAGS)),n) LIBCHECK = 1 else # turn off libcheck if keep going was passed too ifeq ($(findstring k, $(MAKEFLAGS)),k) LIBCHECK = 1 else LIBCHECK ?= $(filter-out $(foreach lib,TAO_IDL_FE ACE,$(findstring $(lib),$(foreach libpath,. $(ACE_ROOT)/lib /usr/lib /usr/lib64 $(INSLIB),$(wildcard $(libpath)/lib$(lib).* $(libpath)/$(lib).lib)))),TAO_IDL_FE ACE) ifeq ($(LIBCHECK),) LIBCHECK = 1 endif endif endif ifneq ($(LIBCHECK), 1) LIB = SHLIB = all: lib_warning endif LSRC = $(FILES) ifneq ($(CROSS-COMPILE),) all clean realclean idl_stubs depend lib_warning require_warning avoid_warning: @echo This project will not build on CROSS-COMPILE platforms. else include $(ACE_ROOT)/include/makeinclude/macros.GNU include $(ACE_ROOT)/include/makeinclude/rules.common.GNU include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU include $(ACE_ROOT)/include/makeinclude/rules.local.GNU ifeq ($(VXWORKSLINK),1) include $(TGT_DIR)/h/make/rules.$(PRJ_TYPE) endif ifeq ($(VXWORKSLINK),1) LDLIBPATH = -L. -L$(ACE_ROOT)/lib else LDFLAGS += -L. -L$(ACE_ROOT)/lib endif CPPFLAGS += -I$(ACE_ROOT) -Iinclude -Ibe_include -Ife ifeq ($(shared_libs),1) ifneq ($(SHLIB),) CPPFLAGS += -DTAO_IDL_BE_BUILD_DLL endif endif ifeq ($(static_libs),1) CPPFLAGS += -DACE_AS_STATIC_LIBS endif #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- lib_warning: @echo TAO_IDL_BE will not be built due to the following missing library: @echo $(LIBCHECK) ## Some OS's have /bin/test others only have /usr/bin/test ifeq ($(wildcard /bin/test), /bin/test) TEST_EXE = /bin/test else ifeq ($(wildcard /usr/bin/test), /usr/bin/test) TEST_EXE = /usr/bin/test endif endif ifneq ($(GENERATED_DIRTY),) .PRECIOUS: $(GENERATED_DIRTY) ## If the generated files are anything but source files, we need to ## ensure that those files are generated before we attempt to build anything ## else. ifeq ($(OBJS_DEPEND_ON_GENERATED),1) $(VDIR)$(ACE_PCH_FILE) $(addprefix $(VDIR), $(OBJS)): $(GENERATED_DIRTY) $(VSHDIR)$(ACE_PCH_FILE) $(VSHOBJS): $(GENERATED_DIRTY) endif endif realclean: clean ifneq ($(GENERATED_DIRTY),) -$(RM) -r $(GENERATED_DIRTY) endif __prebuild__: @-: endif # CROSS-COMPILE