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