Makefile revision 919
70N/A###############################################################################
70N/A#
286N/A# libdpstk Makefile
70N/A#
70N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
70N/A# Use is subject to license terms.
70N/A#
70N/A# Permission is hereby granted, free of charge, to any person obtaining a
70N/A# copy of this software and associated documentation files (the "Software"),
70N/A# to deal in the Software without restriction, including without limitation
70N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
70N/A# and/or sell copies of the Software, and to permit persons to whom the
70N/A# Software is furnished to do so, subject to the following conditions:
70N/A#
70N/A# The above copyright notice and this permission notice (including the next
70N/A# paragraph) shall be included in all copies or substantial portions of the
70N/A# Software.
70N/A#
70N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
70N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
70N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
70N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
70N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
70N/A# DEALINGS IN THE SOFTWARE.
70N/A#
70N/A#
70N/A
70N/A# Manual conversion of the X11R6.9 xc/lib/dpstk/Imakefile
70N/A
535N/ALDPRELIB = -L . -L ../libdps -L ../libpsres
70N/ADPSTKLIBS = $(LDPRELIB) -ldps -lXt -lX11 -lm -lc
70N/ADPSTKXMLIBS = $(LDPRELIB) -ldpstk -lpsres -ldps -L/usr/dt/lib -lXm $(DPSTKLIBS)
70N/A
359N/A PSWRAP = ../pswrap/pswrap
359N/A
359N/AINCLUDES = $(MOTIFINCLUDES)
98N/A
321N/AMOTIFSRCS = FSBwraps.c FontSample.c FontSB.c FontCreato.c \
493N/A CSBwraps.c ColorSB.c DSWwraps.c DPSScrollW.c
321N/AMOTIFOBJS = FSBwraps.o FontSample.o FontSB.o FontCreato.o \
213N/A CSBwraps.o ColorSB.o DSWwraps.o DPSScrollW.o
304N/A
530N/A RESPATH = NULL
425N/A DEFINES = -DDEFAULT_RESOURCE_PATH=\"${RESPATH}\"
425N/A
325N/ADERIVED_FILES = FSBwraps.c FSBwraps.h XDPSpwraps.c XDPSpwraps.h \
493N/A XDPSswraps.c XDPSswraps.h CSBwraps.c CSBwraps.h \
456N/A DSWwraps.c DSWwraps.h
320N/A
332N/ASRCS = XDPSpwraps.c XDPSswraps.c XDPSshare.c XDPSpreview.c \
501N/A XDPSuserpath.c
231N/A
523N/AOBJS = XDPSpwraps.o XDPSswraps.o XDPSshare.o XDPSpreview.o \
98N/A XDPSuserpath.o
347N/A
532N/A CC = cc
525N/A CPPFLAGS += $(DEFINES) -I ../include $(INCLUDES)
463N/A CFLAGS += -Kpic
493N/A SHLIBLDFLAGS = -G -z defs $(LDFLAGS) -R $(libdir)
425N/A
493N/A# Inspired by automake 1.11 silent rules - hides details by default
472N/A# Run make V=1 to show details
324N/ADEFAULT_V = 0
347N/AV_CC = $(V_CC_$(V))
310N/AV_CC_ = $(V_CC_$(DEFAULT_V))
316N/AV_CC_0 = @echo " CC " $@;
474N/AV_PSWRAP = $(V_PSWRAP_$(V))
290N/AV_PSWRAP_ = $(V_PSWRAP_$(DEFAULT_V))
332N/AV_PSWRAP_0 = @echo " PSWRAP" $@;
464N/A
332N/Aall:: $(SRCS) $(MOTIFSRCS)
509N/A
332N/A.SUFFIXES: .psw
210N/A
493N/A.psw.c:
128N/A $(V_PSWRAP)$(PSWRAP) -o $*.c -a -f $*.h -h $*.h $<
414N/A
484N/A.c.o:
326N/A $(V_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<
493N/A
335N/Aall:: libdpstk.so.5 libdpstk.so
493N/A
493N/Alibdpstk.so.5: $(SRCS) $(OBJS) mapfile-vers.dpstk
425N/A $(V_CC)$(CC) $(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) -M mapfile-vers.dpstk $(OBJS) $(DPSTKLIBS)
370N/A
70N/Alibdpstk.so: libdpstk.so.5
400N/A -${RM} libdpstk.so
294N/A ln -s libdpstk.so.5 libdpstk.so
435N/A
98N/Aall:: libdpstkXm.so.5 libdpstkXm.so
434N/A
505N/AlibdpstkXm.so.5: libdpstk.so $(MOTIFSRCS) $(MOTIFOBJS) mapfile-vers.dpstkXm
277N/A $(V_CC)$(CC) $(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) -M mapfile-vers.dpstkXm $(MOTIFOBJS) $(DPSTKXMLIBS)
433N/A
356N/AlibdpstkXm.so: libdpstkXm.so.5
289N/A -${RM} libdpstkXm.so
326N/A ln -s libdpstkXm.so.5 libdpstkXm.so
439N/A
501N/Aclean ::
469N/A ${RM} $(DERIVED_FILES) $(MOTIFOBJS) $(OBJS)
290N/A
424N/Ainstall: all
286N/A $(INSTALL) libdpstk.so.5 $(DESTDIR)$(libdir)/libdpstk.so.5
90N/A $(INSTALL) libdpstkXm.so.5 $(DESTDIR)$(libdir)/libdpstkXm.so.5
475N/A $(INSTALL) ColorSelect.ad $(DESTDIR)$(datadir)/X11/app-defaults/ColorSelect
535N/A $(INSTALL) FontSelect.ad $(DESTDIR)$(datadir)/X11/app-defaults/FontSelect
535N/A