# -*- Makefile -*- #---------------------------------------------------------------------------- # GNU Makefile # # @file GNUmakefile.ACE_Qt3Reactor_moc # # $Id: gnu.mpd 90587 2010-06-14 14:17:55Z 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_Qt3Reactor_moc DEPENDENCY_FILE = .depend.ACE_Qt3Reactor_moc 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 # 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_Qt3Reactor_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 ($(qt),1) ifneq ($(LIBCHECK), 1) all: lib_warning endif else all: require_warning endif ifeq ($(qt),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 -L$(QTDIR)/lib64 else LDFLAGS += -L. $(if $(ARCH),-L./$(ARCH)) -L../lib $(if $(ARCH),-L../lib/$(ARCH)) -L$(QTDIR)/lib $(if $(ARCH),-L$(QTDIR)/lib/$(ARCH)) -L$(QTDIR)/lib64 $(if $(ARCH),-L$(QTDIR)/lib64/$(ARCH)) endif CPPFLAGS += -I.. -I$(QTDIR)/include -I/usr/include/qt3 CPPFLAGS += -DQT_THREAD_SUPPORT ifeq ($(static_libs),1) CPPFLAGS += -DACE_AS_STATIC_LIBS endif #---------------------------------------------------------------------------- # Local targets #---------------------------------------------------------------------------- CPPFLAGS += $(PLATFORM_QT_CPPFLAGS) LIBS += $(PLATFORM_QT_LIBS) LDFLAGS += $(PLATFORM_QT_LDFLAGS) lib_warning: @echo ACE_Qt3Reactor_moc will not be built due to the following missing library: $(LIBCHECK) >&2 ifneq ($(qt),1) requires_disabled_macros += qt endif require_warning: @echo ACE_Qt3Reactor_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/QtReactor_moc.cpp QtReactor/QtReactor_moc.cpp: QtReactor/QtReactor.h $(if $(findstring ",$(QTDIR)/bin/moc),$(QTDIR)/bin/moc,$(call ADD_QUOTE,$(call ADD_ARCH,$(QTDIR)/bin/moc))) QtReactor/QtReactor.h -o $@ ifneq ($(GENERATED_DIRTY),) .PRECIOUS: $(GENERATED_DIRTY) ifeq ($(qt),1) all: $(GENERATED_DIRTY) endif endif realclean: clean ifneq ($(GENERATED_DIRTY),) -$(RM) -r $(GENERATED_DIRTY) endif __prebuild__: ifeq ($(qt),1) @-: endif .PHONY: install install: all INSTALL_LIB ?= lib ifneq ($(INSTALL_PREFIX),) ifneq ($(install_rpath),0) LDFLAGS += -Wl,-R,$(INSTALL_PREFIX)/$(INSTALL_LIB) endif endif