Makefile revision 943
2521N/A###############################################################################
2521N/A#
2521N/A# libdpstk Makefile
2521N/A#
2521N/A# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
2521N/A#
2521N/A# Permission is hereby granted, free of charge, to any person obtaining a
2521N/A# copy of this software and associated documentation files (the "Software"),
2521N/A# to deal in the Software without restriction, including without limitation
2521N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
2521N/A# and/or sell copies of the Software, and to permit persons to whom the
2521N/A# Software is furnished to do so, subject to the following conditions:
2521N/A#
2521N/A# The above copyright notice and this permission notice (including the next
2521N/A# paragraph) shall be included in all copies or substantial portions of the
2521N/A# Software.
2521N/A#
2521N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2521N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2521N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2521N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2521N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2521N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2521N/A# DEALINGS IN THE SOFTWARE.
2521N/A#
2521N/A#
2521N/A
2892N/A# Manual conversion of the X11R6.9 xc/lib/psres/Imakefile
2892N/A
2521N/A
2521N/A REQUIREDLIBS = -lc
2521N/A ALLOC_DEFS = -DMALLOC_0_RETURNS_NULL
2892N/A DEFINES = -DXENVIRONMENT $(ALLOC_DEFS)
2521N/A
2521N/ASRCS = PSres.c
2521N/A
2521N/AOBJS = PSres.o
2521N/A
2521N/A CC = cc
2521N/A CPPFLAGS += $(DEFINES) -I ../include $(INCLUDES)
2521N/A CFLAGS += -Kpic
2521N/A MAPFILE = mapfile
2521N/A SHLIBLDFLAGS = -G -z defs $(LDFLAGS) -M $(MAPFILE) -R $(libdir)
2521N/A
2521N/A# Inspired by automake 1.11 silent rules - hides details by default
2521N/A# Run make V=1 to show details
2521N/ADEFAULT_V = 0
2521N/AV_CC = $(V_CC_$(V))
2521N/AV_CC_ = $(V_CC_$(DEFAULT_V))
2521N/AV_CC_0 = @echo " CC " $@;
2521N/A
2521N/Aall:: libpsres.so.5 libpsres.so
2521N/A
2521N/Alibpsres.so.5: $(OBJS) $(MAPFILE)
2521N/A $(V_CC)$(CC)$(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) $(OBJS) $(REQUIREDLIBS)
2521N/A
2663N/Alibpsres.so: libpsres.so.5
2663N/A -${RM} libpsres.so
2663N/A ln -s libpsres.so.5 libpsres.so
2892N/A
2521N/A.c.o:
2521N/A $(V_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<
2521N/A
2521N/Ainstall: all
2521N/A $(INSTALL) libpsres.so.5 $(DESTDIR)$(libdir)/libpsres.so.5
2521N/A