diff options
Diffstat (limited to 'src/libpcp_import/src/GNUmakefile')
-rw-r--r-- | src/libpcp_import/src/GNUmakefile | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/libpcp_import/src/GNUmakefile b/src/libpcp_import/src/GNUmakefile new file mode 100644 index 0000000..6c3c2aa --- /dev/null +++ b/src/libpcp_import/src/GNUmakefile @@ -0,0 +1,81 @@ +# +# Copyright (c) 2013 Red Hat. +# Copyright (c) 2001,2009 Silicon Graphics, Inc. All Rights Reserved. +# +# This library is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published +# by the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +# License for more details. +# + +TOPDIR = ../../.. +include $(TOPDIR)/src/include/builddefs +-include ./GNUlocaldefs + +CFILES = import.c stuff.c archive.c +HFILES = private.h +VERSION_SCRIPT = exports + +STATICLIBTARGET = libpcp_import.a +DSOVERSION = 1 +LIBTARGET = libpcp_import.$(DSOSUFFIX).$(DSOVERSION) +SYMTARGET = libpcp_import.$(DSOSUFFIX) +ifeq "$(TARGET_OS)" "darwin" +LIBTARGET = libpcp_import.$(DSOVERSION).$(DSOSUFFIX) +endif +ifeq "$(TARGET_OS)" "mingw" +LIBTARGET = libpcp_import.$(DSOSUFFIX) +SYMTARGET = +STATICLIBTARGET = +endif +ifeq "$(ENABLE_SHARED)" "no" +LIBTARGET = +SYMTARGET = +endif + +LCFLAGS = +LLDLIBS = -lpcp +LSRCFILES = $(VERSION_SCRIPT) +LDIRT = $(SYMTARGET) domain.h + +DOMAIN = PMI_DOMAIN + +default: domain.h $(LIBTARGET) $(SYMTARGET) $(STATICLIBTARGET) + +$(OBJECTS): $(HFILES) + +include $(BUILDRULES) + +install: default +ifneq ($(LIBTARGET),) + $(INSTALL) -m 755 $(LIBTARGET) $(PCP_LIB_DIR)/$(LIBTARGET) +endif +ifneq ($(SYMTARGET),) + for tt in $(SYMTARGET); do \ + $(INSTALL) -S $(LIBTARGET) $(PCP_LIB_DIR)/$$tt || exit 1; \ + done +endif +ifneq ($(STATICLIBTARGET),) + $(INSTALL) -m 755 $(STATICLIBTARGET) $(PCP_LIB_DIR)/$(STATICLIBTARGET) +endif + +default_pcp: default + +install_pcp: install + +ifneq ($(SYMTARGET),) +$(SYMTARGET): + $(LN_S) -f $(LIBTARGET) $@ +endif + +ifneq ($(LIBTARGET),) +$(LIBTARGET): $(VERSION_SCRIPT) +endif + +domain.h: $(TOPDIR)/src/pmns/stdpmid + $(DOMAIN_MAKERULE) |