# -*- Makefile -*- #---------------------------------------------------------------------------- # GNU Makefile # # @file GNUmakefile.MT_Cubit_IDL # # $Id: gnu.mpd 77593 2007-03-07 16:38:39Z elliott_c $ # # 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.MT_Cubit_IDL DEPENDENCY_FILE = .depend.MT_Cubit_IDL TAO_ROOT ?= $(ACE_ROOT)/TAO FILES = \ #---------------------------------------------------------------------------- # Include macros and targets #---------------------------------------------------------------------------- TAO_IDL = $(ACE_ROOT)/bin/tao_idl TAO_IDL_DEP = $(ACE_ROOT)/bin/tao_idl$(EXEEXT) TAO_IDLFLAGS = -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I../../../.. 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 include $(TAO_ROOT)/rules.tao.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)/MT_Cubit_IDL all: $(TEMPINCDIR) endif ifneq ($(OUTPUT_DIRECTORY),) all: $(OUTPUT_DIRECTORY) $(OUTPUT_DIRECTORY): -@$(MKDIR) "$(OUTPUT_DIRECTORY)" endif LIBCHECK = 1 ifeq ($(exceptions),1) ifneq ($(LIBCHECK), 1) all: lib_warning endif else all: require_warning endif ifeq ($(exceptions),1) else all: require_warning endif 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.local.GNU ifeq ($(VXWORKSLINK),true) include $(TGT_DIR)/h/make/rules.$(PRJ_TYPE) endif ifeq ($(VXWORKSLINK),true) LDLIBPATH = -L. -L$(ACE_ROOT)/lib else LDFLAGS += -L. -L$(ACE_ROOT)/lib endif CPPFLAGS += -I$(ACE_ROOT) -I../../../.. ifeq ($(static_libs),1) CPPFLAGS += -DACE_AS_STATIC_LIBS -DTAO_AS_STATIC_LIBS endif #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- lib_warning: @echo MT_Cubit_IDL will not be built due to the following missing library: @echo $(LIBCHECK) require_warning: @echo MT_Cubit_IDL will not be built due to one of the following disabled make macros: @echo exceptions ## 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 DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):$(ACE_ROOT)/lib LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(ACE_ROOT)/lib SHLIB_PATH := $(SHLIB_PATH):$(ACE_ROOT)/lib LIBPATH := $(LIBPATH):$(ACE_ROOT)/lib PATH := $(PATH):$(ACE_ROOT)/lib GENERATED_DIRTY += cubitC.inl cubitS.inl cubitC.h cubitS.h cubitC.cpp cubitS.cpp OBJS_DEPEND_ON_GENERATED = 1 ## More than one file is generated by the command and therefore ## it can not be run in parallel. Unfortunately, there is no way to ## say that only this rule can't be run in parallel. However, we can ## determine if the generated files have already been generated. If that's ## the case, then we don't need this special rule. ifeq ($(wildcard $(GENERATED_DIRTY)), $(GENERATED_DIRTY)) ## If we can find /bin/test, then we will continue ifneq ($(TEST_EXE),) ## If all of the generated files are there, then we need to check ## and make sure that the generated files are up-to-date. If they are not ## then we need the special rule. ifneq ($(shell $(TEST_EXE) cubit.idl -nt cubitC.inl 2> /dev/null && $(TEST_EXE) cubit.idl -nt cubitS.inl 2> /dev/null && $(TEST_EXE) cubit.idl -nt cubitC.h 2> /dev/null && $(TEST_EXE) cubit.idl -nt cubitS.h 2> /dev/null && $(TEST_EXE) cubit.idl -nt cubitC.cpp 2> /dev/null && $(TEST_EXE) cubit.idl -nt cubitS.cpp 2> /dev/null && echo 0),) .NOTPARALLEL: else ## By this point, all of the generated files are here and up-to-date ## with respect to the source file. Now we need to make sure that ## they are up-to-date with respect to the generation tool. If the tool ## is newer than the generated files, then we need the special rule. ifneq ($(shell $(TEST_EXE) $(TAO_IDL_DEP) -nt cubitC.inl 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt cubitS.inl 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt cubitC.h 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt cubitS.h 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt cubitC.cpp 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt cubitS.cpp 2> /dev/null && echo 0),) .NOTPARALLEL: endif endif else .NOTPARALLEL: endif else .NOTPARALLEL: endif cubitC.inl cubitS.inl cubitC.h cubitS.h cubitC.cpp cubitS.cpp: cubit.idl $(TAO_IDL_DEP) $(TAO_IDL) $(TAO_IDLFLAGS) cubit.idl ifneq ($(GENERATED_DIRTY),) .PRECIOUS: $(GENERATED_DIRTY) ifeq ($(exceptions),1) all: $(GENERATED_DIRTY) endif endif ADDITIONAL_IDL_TARGETS += cubit$(IDL_CLIENT_HDR_EXT) idl_stubs: $(ADDITIONAL_IDL_TARGETS) realclean: clean ifneq ($(GENERATED_DIRTY),) -$(RM) -r $(GENERATED_DIRTY) endif __prebuild__: @-: