Makefile revision 911
499N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
499N/A# Use subject to license terms.
499N/A#
499N/A# Permission is hereby granted, free of charge, to any person obtaining a
499N/A# copy of this software and associated documentation files (the
499N/A# "Software"), to deal in the Software without restriction, including
499N/A# without limitation the rights to use, copy, modify, merge, publish,
499N/A# distribute, and/or sell copies of the Software, and to permit persons
499N/A# to whom the Software is furnished to do so, provided that the above
499N/A# copyright notice(s) and this permission notice appear in all copies of
499N/A# the Software and that both the above copyright notice(s) and this
499N/A# permission notice appear in supporting documentation.
499N/A#
499N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
499N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
499N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
499N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
499N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
499N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
499N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
499N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
499N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
499N/A#
499N/A# Except as contained in this notice, the name of a copyright holder
499N/A# shall not be used in advertising or otherwise to promote the sale, use
499N/A# or other dealings in this Software without prior written authorization
499N/A# of the copyright holder.
499N/A#
499N/A
499N/AHEADERSPublic = Xtsol.h Xtsolproto.h
499N/AHEADERSPublic_dir = $(PREFIX)/include/X11/extensions
499N/A
499N/ASRCS = Xtsol.c auditwrite.c
499N/AOBJS = $(SRCS:.c=.o)
499N/A
499N/AREQUIREDLIBS = -lX11 -lbsm -ltsol -lc
499N/A
499N/AXLIB_CFLAGS:sh = pkg-config --cflags x11
499N/A
499N/AlibXtsol.so.1: $(OBJS) mapfile-vers
499N/A $(CC) -G -o $@ -h $@ $(CFLAGS) $(LDFLAGS) -M mapfile-vers \
499N/A $(OBJS) $(REQUIREDLIBS)
499N/A
499N/A.c.o:
499N/A $(CC) -Kpic $(XLIB_CFLAGS) $(CFLAGS) $(CPPFLAGS) -c $<
499N/A
499N/Ainstall: libXtsol.so.1
499N/A mkdir -p $(DESTDIR)$(HEADERSPublic_dir)
499N/A for i in $(HEADERSPublic) ; do \
499N/A $(INSTALL) $$i $(DESTDIR)$(HEADERSPublic_dir) ; \
499N/A done
499N/A mkdir -p $(DESTDIR)$(libdir)
499N/A -rm -f $(DESTDIR)$(libdir)/libXtsol.so \
499N/A $(DESTDIR)$(libdir)/libXtsol.so.1
499N/A $(INSTALL) libXtsol.so.1 $(DESTDIR)$(libdir)/libXtsol.so.1
499N/A ln -s libXtsol.so.1 $(DESTDIR)$(libdir)/libXtsol.so