mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
169 lines
4.4 KiB
Makefile
169 lines
4.4 KiB
Makefile
# -*- Makefile -*-
|
|
#----------------------------------------------------------------------------
|
|
# GNU Makefile
|
|
#
|
|
# @file GNUmakefile.ACE_Qt3Reactor
|
|
#
|
|
# $Id: gnu.mpd 82648 2008-08-21 06:55:54Z 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.ACE_Qt3Reactor
|
|
DEPENDENCY_FILE = .depend.ACE_Qt3Reactor
|
|
|
|
## LIB may be set to empty later on in this file
|
|
LIB_UNCHECKED = libACE_QtReactor.a
|
|
LIB = $(LIB_UNCHECKED)
|
|
LIB_NAME = libACE_QtReactor
|
|
|
|
## SHLIB may be set to empty later on in this file
|
|
SHLIB_UNCHECKED = libACE_QtReactor.$(SOEXT)
|
|
SHLIB = $(SHLIB_UNCHECKED)
|
|
|
|
FILES = \
|
|
QtReactor/QtReactor_moc.cpp \
|
|
QtReactor/QtReactor.cpp
|
|
|
|
VPATH = .:QtReactor
|
|
|
|
#----------------------------------------------------------------------------
|
|
# Include macros and targets
|
|
#----------------------------------------------------------------------------
|
|
ACE_SHLIBS = -lACE -lqt-mt$(QT_VERSION)
|
|
|
|
PRJ_TYPE = library
|
|
|
|
INSLIB ?= ../lib
|
|
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)/ACE_Qt3Reactor
|
|
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,$(findstring $(lib),$(foreach libpath,. ../lib $(QTDIR)/lib /usr/lib /usr/lib64 $(INSLIB),$(wildcard $(libpath)/lib$(lib).* $(libpath)/$(lib).lib)))),ACE)
|
|
ifeq ($(LIBCHECK),)
|
|
LIBCHECK = 1
|
|
endif
|
|
endif
|
|
endif
|
|
ifeq ($(qt),1)
|
|
ifneq ($(LIBCHECK), 1)
|
|
LIB =
|
|
SHLIB =
|
|
all: lib_warning
|
|
endif
|
|
else
|
|
LIB =
|
|
SHLIB =
|
|
all: require_warning
|
|
endif
|
|
|
|
ifeq ($(qt),1)
|
|
else
|
|
LIB =
|
|
SHLIB =
|
|
all: require_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 -L$(QTDIR)/lib
|
|
else
|
|
LDFLAGS += -L. -L../lib -L$(QTDIR)/lib
|
|
endif
|
|
CPPFLAGS += -I.. -I$(QTDIR)/include
|
|
CPPFLAGS += -DQT_THREAD_SUPPORT
|
|
ifeq ($(shared_libs),1)
|
|
ifneq ($(SHLIB),)
|
|
CPPFLAGS += -DACE_QTREACTOR_BUILD_DLL
|
|
endif
|
|
endif
|
|
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 will not be built due to the following missing library:
|
|
@echo $(LIBCHECK)
|
|
|
|
require_warning:
|
|
@echo ACE_Qt3Reactor will not be built due to one of the following disabled make macros:
|
|
@echo qt
|
|
|
|
## 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
|
|
|
|
GENERATED_DIRTY += QtReactor/QtReactor_moc.cpp
|
|
QtReactor/QtReactor_moc.cpp: QtReactor/QtReactor.h
|
|
$(QTDIR)/bin/moc QtReactor/QtReactor.h -o $@
|
|
|
|
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__:
|
|
@-:
|
|
|