Makefile revision 851
98N/A###############################################################################
98N/A#
98N/A# libdpstk Makefile
98N/A#
98N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
98N/A# Use is subject to license terms.
98N/A#
98N/A# Permission is hereby granted, free of charge, to any person obtaining a
98N/A# copy of this software and associated documentation files (the
98N/A# "Software"), to deal in the Software without restriction, including
98N/A# without limitation the rights to use, copy, modify, merge, publish,
98N/A# distribute, and/or sell copies of the Software, and to permit persons
98N/A# to whom the Software is furnished to do so, provided that the above
98N/A# copyright notice(s) and this permission notice appear in all copies of
98N/A# the Software and that both the above copyright notice(s) and this
98N/A# permission notice appear in supporting documentation.
98N/A#
98N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
98N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
98N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
98N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
98N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
98N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
98N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
98N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
98N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
98N/A#
98N/A# Except as contained in this notice, the name of a copyright holder
98N/A# shall not be used in advertising or otherwise to promote the sale, use
98N/A# or other dealings in this Software without prior written authorization
231N/A# of the copyright holder.
98N/A#
98N/A#ident "@(#)Makefile 1.3 09/12/05 SMI"
98N/A#
98N/A
98N/A# Manual conversion of the X11R6.9 xc/lib/dpstk/Imakefile
98N/A
98N/ALDPRELIB = -L . -L ../libdps -L ../libpsres
98N/ADPSTKLIBS = $(LDPRELIB) -ldps -lXt -lX11 -lm -lc
98N/ADPSTKXMLIBS = $(LDPRELIB) -ldpstk -lpsres -ldps -L/usr/dt/lib -lXm $(DPSTKLIBS)
98N/A
98N/A PSWRAP = ../pswrap/pswrap
98N/A
156N/AINCLUDES = $(MOTIFINCLUDES)
156N/A
98N/AMOTIFSRCS = FSBwraps.c FontSample.c FontSB.c FontCreato.c \
98N/A CSBwraps.c ColorSB.c DSWwraps.c DPSScrollW.c
98N/AMOTIFOBJS = FSBwraps.o FontSample.o FontSB.o FontCreato.o \
98N/A CSBwraps.o ColorSB.o DSWwraps.o DPSScrollW.o
98N/A
98N/A RESPATH = NULL
98N/A DEFINES = -DDEFAULT_RESOURCE_PATH=\"${RESPATH}\"
98N/A
98N/ADERIVED_FILES = FSBwraps.c FSBwraps.h XDPSpwraps.c XDPSpwraps.h \
98N/A XDPSswraps.c XDPSswraps.h CSBwraps.c CSBwraps.h \
98N/A DSWwraps.c DSWwraps.h
98N/A
98N/ASRCS = XDPSpwraps.c XDPSswraps.c XDPSshare.c XDPSpreview.c \
98N/A XDPSuserpath.c
98N/A
98N/AOBJS = XDPSpwraps.o XDPSswraps.o XDPSshare.o XDPSpreview.o \
98N/A XDPSuserpath.o
231N/A
231N/A CC = cc
231N/A CPPFLAGS += $(DEFINES) -I ../include $(INCLUDES)
231N/A CFLAGS += -Kpic
231N/A SHLIBLDFLAGS = -G -z defs $(LDFLAGS) -R $(libdir)
231N/A
231N/A# Inspired by automake 1.11 silent rules - hides details by default
231N/A# Run make V=1 to show details
98N/ADEFAULT_V = 0
98N/AV_CC = $(V_CC_$(V))
98N/AV_CC_ = $(V_CC_$(DEFAULT_V))
98N/AV_CC_0 = @echo " CC " $@;
98N/AV_PSWRAP = $(V_PSWRAP_$(V))
98N/AV_PSWRAP_ = $(V_PSWRAP_$(DEFAULT_V))
98N/AV_PSWRAP_0 = @echo " PSWRAP" $@;
98N/A
98N/Aall:: $(SRCS) $(MOTIFSRCS)
98N/A
98N/A.SUFFIXES: .psw
98N/A
98N/A.psw.c:
98N/A $(V_PSWRAP)$(PSWRAP) -o $*.c -a -f $*.h -h $*.h $<
98N/A
98N/A.c.o:
231N/A $(V_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<
156N/A
156N/Aall:: libdpstk.so.5 libdpstk.so
156N/A
98N/Alibdpstk.so.5: $(SRCS) $(OBJS) mapfile-vers.dpstk
156N/A $(V_CC)$(CC) $(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) -M mapfile-vers.dpstk $(OBJS) $(DPSTKLIBS)
156N/A
98N/Alibdpstk.so: libdpstk.so.5
98N/A -${RM} libdpstk.so
98N/A ln -s libdpstk.so.5 libdpstk.so
98N/A
98N/Aall:: libdpstkXm.so.5 libdpstkXm.so
98N/A
98N/AlibdpstkXm.so.5: libdpstk.so $(MOTIFSRCS) $(MOTIFOBJS) mapfile-vers.dpstkXm
98N/A $(V_CC)$(CC) $(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) -M mapfile-vers.dpstkXm $(MOTIFOBJS) $(DPSTKXMLIBS)
98N/A
98N/AlibdpstkXm.so: libdpstkXm.so.5
98N/A -${RM} libdpstkXm.so
98N/A ln -s libdpstkXm.so.5 libdpstkXm.so
98N/A
98N/Aclean ::
98N/A ${RM} $(DERIVED_FILES) $(MOTIFOBJS) $(OBJS)
98N/A
98N/Ainstall: all
98N/A $(INSTALL) libdpstk.so.5 $(DESTDIR)$(libdir)/libdpstk.so.5
98N/A $(INSTALL) libdpstkXm.so.5 $(DESTDIR)$(libdir)/libdpstkXm.so.5
98N/A $(INSTALL) ColorSelect.ad $(DESTDIR)$(datadir)/X11/app-defaults/ColorSelect
98N/A $(INSTALL) FontSelect.ad $(DESTDIR)$(datadir)/X11/app-defaults/FontSelect
231N/A