Makefile revision 833
546N/A###############################################################################
546N/A#
546N/A# libdpstk Makefile
546N/A#
546N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
546N/A# Use is subject to license terms.
546N/A#
546N/A# Permission is hereby granted, free of charge, to any person obtaining a
546N/A# copy of this software and associated documentation files (the
546N/A# "Software"), to deal in the Software without restriction, including
546N/A# without limitation the rights to use, copy, modify, merge, publish,
546N/A# distribute, and/or sell copies of the Software, and to permit persons
546N/A# to whom the Software is furnished to do so, provided that the above
546N/A# copyright notice(s) and this permission notice appear in all copies of
546N/A# the Software and that both the above copyright notice(s) and this
546N/A# permission notice appear in supporting documentation.
546N/A#
546N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
546N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
546N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
546N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
919N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
919N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
919N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
919N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
919N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
546N/A#
919N/A# Except as contained in this notice, the name of a copyright holder
919N/A# shall not be used in advertising or otherwise to promote the sale, use
919N/A# or other dealings in this Software without prior written authorization
546N/A# of the copyright holder.
919N/A#
919N/A#ident "@(#)Makefile 1.2 09/11/19 SMI"
919N/A#
919N/A
919N/A# Manual conversion of the X11R6.9 xc/lib/psres/Imakefile
919N/A
919N/A
546N/A REQUIREDLIBS = -lc
546N/A ALLOC_DEFS = -DMALLOC_0_RETURNS_NULL
546N/A DEFINES = -DXENVIRONMENT $(ALLOC_DEFS)
546N/A
546N/ASRCS = PSres.c
546N/A
546N/AOBJS = PSres.o
546N/A
546N/A CC = cc
546N/A CPPFLAGS += $(DEFINES) -I ../include $(INCLUDES)
546N/A CFLAGS += -Kpic
546N/A MAPFILE = mapfile
546N/A SHLIBLDFLAGS = -G -z defs $(LDFLAGS) -M $(MAPFILE) -R $(libdir)
546N/A
546N/A# Inspired by automake 1.11 silent rules - hides details by default
546N/A# Run make V=1 to show details
546N/ADEFAULT_V = 0
546N/AV_CC = $(V_CC_$(V))
546N/AV_CC_ = $(V_CC_$(DEFAULT_V))
546N/AV_CC_0 = @echo " CC " $@;
546N/A
546N/Aall:: libpsres.so.5 libpsres.so
546N/A
546N/Alibpsres.so.5: $(OBJS) $(MAPFILE)
546N/A $(V_CC)$(CC)$(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) $(OBJS) $(REQUIREDLIBS)
546N/A
546N/Alibpsres.so: libpsres.so.5
546N/A -${RM} libpsres.so
546N/A ln -s libpsres.so.5 libpsres.so
546N/A
546N/A.c.o:
546N/A $(V_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<
546N/A
546N/Ainstall: all
546N/A $(INSTALL) libpsres.so.5 $(DESTDIR)$(libdir)/libpsres.so.5
546N/A