# -*- Makefile -*- #---------------------------------------------------------------------------- # GNU Makefile # # @file GNUmakefile.ACE_Qt4Reactor_moc # # $Id: gnu.mpd 95691 2012-04-10 20:11:35Z mitza $ # # 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.ACE_Qt4Reactor_moc DEPENDENCY_FILE = .depend.ACE_Qt4Reactor_moc LIB_PREFIX ?= lib FILES = \ #---------------------------------------------------------------------------- # Include macros and targets #---------------------------------------------------------------------------- PRJ_TYPE = library COLLAPSE_SLASHES = $(if $(findstring //,$(1)),$(call COLLAPSE_SLASHES,$(subst //,/,$(1))),$(1)) INSLIB ?= $(call COLLAPSE_SLASHES,.) 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 GNUACE_PROJECT_VERSION ?= $(ACE_VERSION) # 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)/ACE_Qt4Reactor_moc all: $(TEMPINCDIR) endif ifneq ($(OUTPUT_DIRECTORY),) .PHONY: create_output_directory.local all: create_output_directory.local create_output_directory.local: -@$(MKDIR) "$(OUTPUT_DIRECTORY)" $(ACE_NUL_STDERR) endif LIBCHECK = 1 ifeq ($(qt4),1) ifneq ($(LIBCHECK), 1) all: lib_warning endif else all: require_warning endif ifeq ($(qt4),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),1) include $(TGT_DIR)/h/make/rules.$(PRJ_TYPE) endif ifeq ($(VXWORKSLINK),1) LDLIBPATH = -L. -L../../lib -L$(QTDIR)/lib else LDFLAGS += -L. $(if $(ARCH),-L./$(ARCH)) -L../../lib $(if $(ARCH),-L../../lib/$(ARCH)) -L$(QTDIR)/lib $(if $(ARCH),-L$(QTDIR)/lib/$(ARCH)) endif CPPFLAGS += -I../.. -I$(QTDIR)/include CPPFLAGS += -DACE_HAS_QT4 ifeq ($(static_libs),1) CPPFLAGS += -DACE_AS_STATIC_LIBS endif #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- lib_warning: @echo ACE_Qt4Reactor_moc will not be built due to the following missing library: $(LIBCHECK) >&2 ifneq ($(qt4),1) requires_disabled_macros += qt4 endif require_warning: @echo ACE_Qt4Reactor_moc will not be built due to the following disabled make macros: $(requires_disabled_macros)>&2 ## 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 SPACE = $(should_be_unset) $(should_be_unset) GENERATED_DIRTY += QtReactor_moc.cpp QtReactor_moc.cpp: QtReactor.h $(if $(findstring ",$(QTDIR)/bin/moc),$(QTDIR)/bin/moc,$(call ADD_QUOTE,$(call ADD_ARCH,$(QTDIR)/bin/moc))) QtReactor.h -o $@ ifneq ($(GENERATED_DIRTY),) .PRECIOUS: $(GENERATED_DIRTY) ifeq ($(qt4),1) all: $(GENERATED_DIRTY) endif endif realclean: clean ifneq ($(GENERATED_DIRTY),) -$(RM) -r $(GENERATED_DIRTY) endif __prebuild__: ifeq ($(qt4),1) @-: endif .PHONY: install install: all INSTALL_LIB ?= lib ifneq ($(INSTALL_PREFIX),) ifneq ($(install_rpath),0) LDFLAGS += -Wl,-R$(INSTALL_PREFIX)/$(INSTALL_LIB) $(LD_RPATH_FLAGS) endif endif