# -*- Makefile -*- #---------------------------------------------------------------------------- # GNU Makefile # # @file GNUmakefile.Monitor_Control # # $Id: gnu.mpd 85209 2009-04-29 09:47:19Z 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.Monitor_Control DEPENDENCY_FILE = .depend.Monitor_Control LIB_PREFIX ?= lib ## LIB_CHECKED may be set to empty later on in this file LIB_UNCHECKED = $(LIB_PREFIX)ACE_Monitor_Control.$(LIBEXT) LIB_CHECKED = $(LIB_UNCHECKED) LIB_NAME = $(LIB_PREFIX)ACE_Monitor_Control ## SHLIB may be set to empty later on in this file SHLIB_UNCHECKED = $(LIB_PREFIX)ACE_Monitor_Control.$(SOEXT) SHLIB = $(SHLIB_UNCHECKED) FILES = \ Auto_Update_Starter.cpp \ BSD_Network_Interface_Monitor.cpp \ Bytes_Received_Monitor.cpp \ Bytes_Sent_Monitor.cpp \ Constraint_Interpreter.cpp \ Constraint_Visitor.cpp \ CPU_Load_Monitor.cpp \ Linux_Network_Interface_Monitor.cpp \ Memory_Usage_Monitor.cpp \ Monitor_Group.cpp \ Monitor_Query.cpp \ Null_Network_Interface_Monitor.cpp \ Num_Threads_Monitor.cpp \ Packets_Received_Monitor.cpp \ Packets_Sent_Monitor.cpp \ Solaris_Network_Interface_Monitor.cpp \ Windows_Monitor.cpp \ Windows_Multi_Instance_Monitor.cpp #---------------------------------------------------------------------------- # Include macros and targets #---------------------------------------------------------------------------- ACE_SHLIBS = -lACE_ETCL_Parser -lACE_ETCL -lACE PRJ_TYPE = library INSLIB ?= ../../lib ifeq ($(INSLIB),.) ifeq ($(CURDIR),) ifeq ($(PWD),) PWD=$(shell pwd) endif else PWD=$(CURDIR) 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)/Monitor_Control 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,ACE_ETCL_Parser ACE_ETCL ACE,$(findstring $(lib),$(foreach libpath,. ../../lib /usr/lib /usr/lib64 $(INSLIB),$(wildcard $(libpath)/$(LIB_PREFIX)$(lib).* $(libpath)/$(lib).lib)))),ACE_ETCL_Parser ACE_ETCL ACE) ifeq ($(LIBCHECK),) LIBCHECK = 1 endif endif endif ifneq ($(wince),1) ifneq ($(LIBCHECK), 1) LIB_CHECKED = SHLIB = all: lib_warning endif else LIB_CHECKED = SHLIB = all: avoid_warning endif ifneq ($(wince),1) else LIB_CHECKED = SHLIB = all: avoid_warning endif LSRC = $(FILES) 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../../lib else LDFLAGS += -L. -L../../lib endif CPPFLAGS += -I../.. ifeq ($(shared_libs),1) ifneq ($(SHLIB),) CPPFLAGS += -DMONITOR_CONTROL_BUILD_DLL endif endif ifeq ($(static_libs),1) CPPFLAGS += -DACE_AS_STATIC_LIBS endif #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- ifeq (1,$(winnt)) ACE_SHLIBS += pdh.lib endif lib_warning: @echo Monitor_Control will not be built due to the following missing library: @echo $(LIBCHECK) avoid_warning: @echo Monitor_Control will not be built due to one of the following enabled make macros: @echo wince ## 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__: @-: