# -*- Makefile -*- #---------------------------------------------------------------------------- # GNU Makefile # # @file GNUmakefile.grid_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.grid_IDL DEPENDENCY_FILE = .depend.grid_IDL 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 ?= . 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)/grid_IDL all: $(TEMPINCDIR) endif ifneq ($(OUTPUT_DIRECTORY),) all: $(OUTPUT_DIRECTORY) $(OUTPUT_DIRECTORY): -@$(MKDIR) "$(OUTPUT_DIRECTORY)" endif LIBCHECK = 1 ifneq ($(LIBCHECK), 1) all: lib_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. else LDFLAGS += -L. endif #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- lib_warning: @echo grid_IDL 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 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 += GridC.inl GridS.inl GridC.h GridS.h GridC.cpp GridS.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) Grid.idl -nt GridC.inl 2> /dev/null && $(TEST_EXE) Grid.idl -nt GridS.inl 2> /dev/null && $(TEST_EXE) Grid.idl -nt GridC.h 2> /dev/null && $(TEST_EXE) Grid.idl -nt GridS.h 2> /dev/null && $(TEST_EXE) Grid.idl -nt GridC.cpp 2> /dev/null && $(TEST_EXE) Grid.idl -nt GridS.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 GridC.inl 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt GridS.inl 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt GridC.h 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt GridS.h 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt GridC.cpp 2> /dev/null && $(TEST_EXE) $(TAO_IDL_DEP) -nt GridS.cpp 2> /dev/null && echo 0),) .NOTPARALLEL: endif endif else .NOTPARALLEL: endif else .NOTPARALLEL: endif GridC.inl GridS.inl GridC.h GridS.h GridC.cpp GridS.cpp: Grid.idl $(TAO_IDL_DEP) $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St Grid.idl ifneq ($(GENERATED_DIRTY),) .PRECIOUS: $(GENERATED_DIRTY) all: $(GENERATED_DIRTY) endif ADDITIONAL_IDL_TARGETS += Grid$(IDL_CLIENT_HDR_EXT) idl_stubs: $(ADDITIONAL_IDL_TARGETS) realclean: clean ifneq ($(GENERATED_DIRTY),) -$(RM) -r $(GENERATED_DIRTY) endif __prebuild__: @-: