mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
(based on cipherCOM's repo commit d3d8934) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
229 lines
6.4 KiB
Makefile
229 lines
6.4 KiB
Makefile
# -*- Makefile -*-
|
|
#----------------------------------------------------------------------------
|
|
# GNU Makefile
|
|
#
|
|
# @file GNUmakefile.ACE_ETCL_Parser
|
|
#
|
|
# $Id: gnu.mpd 91974 2010-09-23 16:17:42Z 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_ETCL_Parser
|
|
DEPENDENCY_FILE = .depend.ACE_ETCL_Parser
|
|
|
|
LIB_PREFIX ?= lib
|
|
|
|
## LIB_CHECKED may be set to empty later on in this file
|
|
LIB_UNCHECKED = $(LIB_PREFIX)ACE_ETCL_Parser.$(LIBEXT)
|
|
LIB_CHECKED = $(LIB_UNCHECKED)
|
|
LIB_NAME = $(LIB_PREFIX)ACE_ETCL_Parser
|
|
|
|
## SHLIB may be set to empty later on in this file
|
|
SHLIB_UNCHECKED = $(LIB_PREFIX)ACE_ETCL_Parser.$(SOEXT)
|
|
SHLIB = $(SHLIB_UNCHECKED)
|
|
|
|
FILES = \
|
|
ETCL_Interpreter.cpp \
|
|
ETCL_l.cpp \
|
|
ETCL_y.cpp
|
|
|
|
#----------------------------------------------------------------------------
|
|
# Include macros and targets
|
|
#----------------------------------------------------------------------------
|
|
ACE_SHLIBS = -lACE_ETCL -lACE
|
|
|
|
PRJ_TYPE = library
|
|
|
|
COLLAPSE_SLASHES = $(if $(findstring //,$(1)),$(call COLLAPSE_SLASHES,$(subst //,/,$(1))),$(1))
|
|
INSLIB ?= $(call COLLAPSE_SLASHES,../../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
|
|
|
|
|
|
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_ETCL_Parser
|
|
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
|
|
|
|
# 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 ACE,$(findstring $(lib),$(foreach libpath,. $(if $(ARCH),./$(ARCH)) ../../lib $(if $(ARCH),../../lib/$(ARCH)) /usr/lib /usr/lib64 $(INSLIB),$(wildcard $(libpath)/$(LIB_PREFIX)$(lib).* $(libpath)/$(lib).lib)))),ACE_ETCL ACE)
|
|
ifeq ($(LIBCHECK),)
|
|
LIBCHECK = 1
|
|
endif
|
|
endif
|
|
endif
|
|
ifneq ($(LIBCHECK), 1)
|
|
LIB_CHECKED =
|
|
SHLIB =
|
|
all: lib_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. $(if $(ARCH),-L./$(ARCH)) -L../../lib $(if $(ARCH),-L../../lib/$(ARCH))
|
|
endif
|
|
CPPFLAGS += -I../..
|
|
ifeq ($(shared_libs),1)
|
|
ifneq ($(SHLIB),)
|
|
CPPFLAGS += -DETCL_PARSER_BUILD_DLL
|
|
endif
|
|
endif
|
|
ifeq ($(static_libs),1)
|
|
CPPFLAGS += -DACE_AS_STATIC_LIBS
|
|
endif
|
|
|
|
#----------------------------------------------------------------------------
|
|
# Local targets
|
|
#----------------------------------------------------------------------------
|
|
lib_warning:
|
|
@echo ACE_ETCL_Parser will not be built due to the following missing library: $(LIBCHECK) >&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)
|
|
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__:
|
|
@-:
|
|
|
|
|
|
.PHONY: install
|
|
install: all
|
|
INSTALL_LIB ?= lib
|
|
ifneq ($(INSTALL_PREFIX),)
|
|
ifneq ($(install_rpath),0)
|
|
LDFLAGS += -Wl,-R$(INSTALL_PREFIX)/$(INSTALL_LIB)
|
|
endif
|
|
endif
|
|
|
|
PRJINST_OPTIONS ?=
|
|
INST_DIR ?= /ace/ETCL
|
|
COMMA = ,
|
|
SPACE = $(should_be_unset) $(should_be_unset)
|
|
INSTALLER ?= $(MPC_ROOT)/prj_install.pl
|
|
CUSTOM_INST_TAGS = $(sort )
|
|
|
|
LIB_INST_TAGS = header_files template_files$(if $(findstring 1,$(inline)), inline_files)$(if $(CUSTOM_INST_TAGS), $(CUSTOM_INST_TAGS))
|
|
LIB_INST_LOCATIONS = $(foreach tag,$(LIB_INST_TAGS),-b $(tag)=include$(INST_DIR))
|
|
|
|
INST_TAGS = lib_output$(if $(LIB_INST_TAGS), $(LIB_INST_TAGS))
|
|
INST_LOCATIONS = $(LIB_INST_LOCATIONS) -o lib_output=$(INSTALL_LIB)
|
|
|
|
DATA_INST_TAGS =
|
|
INST_LOCATIONS += $(if $(DATA_INST_TAGS),-x installdata_files -b installdata_files=share$(INST_DIR))
|
|
INST_TAGS := $(INST_TAGS)$(if $(DATA_INST_TAGS), $(DATA_INST_TAGS))
|
|
|
|
ifeq ($(INSTALLER),/prj_install.pl)
|
|
INSTALLER = $(ACE_ROOT)/MPC/prj_install.pl
|
|
endif
|
|
|
|
ifeq ($(LIBCHECK),1)
|
|
install:
|
|
ifeq ($(INST_TAGS),)
|
|
@echo Nothing to install.
|
|
else
|
|
ifeq ($(INSTALL_PREFIX),)
|
|
@echo The variable INSTALL_PREFIX must be set to install.
|
|
@echo If binaries are already built and you want to use RPATH,
|
|
@echo they must be rebuilt after changing INSTALL_PREFIX.
|
|
@false
|
|
else
|
|
perl -ne'if (/^#END MPC-Generated Install Info/) {exit 0}' \
|
|
-e'elsif (/^#BEGIN MPC-Generated Install Info/) {$$ok=1}' \
|
|
-e'elsif ($$ok && s/^#//) {print}' $(MAKEFILE) | \
|
|
$(INSTALLER) -i -s $(subst $(SPACE),$(COMMA),$(INST_TAGS)) \
|
|
$(INST_LOCATIONS) $(if $(ARCH),-d $(ARCH)) $(PRJINST_OPTIONS) \
|
|
$(INSTALL_PREFIX)
|
|
$(ACE_ROOT)/bin/ace_install_pkgconfig.pl ACE_ETCL_Parser.pc.in --prefix $(INSTALL_PREFIX) --libdir $(INSTALL_LIB) --libs "$(LIBS)" --version $(GNUACE_PROJECT_VERSION)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
#BEGIN MPC-Generated Install Info
|
|
#build_files:
|
|
#ETCL.mpc
|
|
#
|
|
#header_files:
|
|
#ETCL_Interpreter.h
|
|
#ETCL_y.h
|
|
#etcl_parser_export.h
|
|
#
|
|
#pkgconfig_files:
|
|
#ACE_ETCL_Parser.pc.in
|
|
#
|
|
#source_files:
|
|
#ETCL_Interpreter.cpp
|
|
#ETCL_l.cpp
|
|
#ETCL_y.cpp
|
|
#
|
|
#lib_output:
|
|
#../../lib ACE_ETCL_Parser
|
|
|
|
#END MPC-Generated Install Info
|
|
|