server/dep/ACE_wrappers/bin/PerlACE/GNUmakefile.PerlACE
cipherCOM 571f510ee4 [11162] Changed ACE lib to same version but with configure script
(based on cipherCOM's repo commit d3d8934)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-14 12:51:16 +03:00

120 lines
2.9 KiB
Makefile

# -*- Makefile -*-
#----------------------------------------------------------------------------
# GNU Makefile
#
# @file GNUmakefile.PerlACE
#
# $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.PerlACE
DEPENDENCY_FILE = .depend.PerlACE
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)/PerlACE
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
ifneq ($(LIBCHECK), 1)
all: lib_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.
else
LDFLAGS += -L. $(if $(ARCH),-L./$(ARCH))
endif
#----------------------------------------------------------------------------
# Local targets
#----------------------------------------------------------------------------
lib_warning:
@echo PerlACE 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)
all: $(GENERATED_DIRTY)
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