Makefile revision 965
851N/A###############################################################################
851N/A#
851N/A# libdpstk Makefile
851N/A#
1265N/A# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
851N/A#
851N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
851N/A#
851N/A#
851N/A
851N/A# Manual conversion of the X11R6.9 xc/lib/dpstk/Imakefile
851N/A
851N/ALDPRELIB = -L . -L ../libdps -L ../libpsres
851N/ADPSTKLIBS = $(LDPRELIB) -ldps -lX11 -lm -lc
1276N/ADPSTKXMLIBS = $(LDPRELIB) -ldpstk -lpsres -ldps -L/usr/dt/lib -lXm -lXt $(DPSTKLIBS)
851N/A
911N/A PSWRAP = ../pswrap/pswrap
1276N/A
1276N/AINCLUDES = $(MOTIFINCLUDES)
1276N/A
911N/AMOTIFSRCS = FSBwraps.c FontSample.c FontSB.c FontCreato.c \
851N/A CSBwraps.c ColorSB.c DSWwraps.c DPSScrollW.c
851N/AMOTIFOBJS = FSBwraps.o FontSample.o FontSB.o FontCreato.o \
851N/A CSBwraps.o ColorSB.o DSWwraps.o DPSScrollW.o
851N/A
851N/A RESPATH = NULL
1179N/A DEFINES = -DDEFAULT_RESOURCE_PATH=\"${RESPATH}\"
851N/A
851N/ADERIVED_FILES = FSBwraps.c FSBwraps.h XDPSpwraps.c XDPSpwraps.h \
1196N/A XDPSswraps.c XDPSswraps.h CSBwraps.c CSBwraps.h \
1196N/A DSWwraps.c DSWwraps.h
1196N/A
1196N/ASRCS = XDPSpwraps.c XDPSswraps.c XDPSshare.c XDPSpreview.c \
1196N/A XDPSuserpath.c
1196N/A
1196N/AOBJS = XDPSpwraps.o XDPSswraps.o XDPSshare.o XDPSpreview.o \
851N/A XDPSuserpath.o
1088N/A
1088N/A CC = cc
1088N/A CPPFLAGS += $(DEFINES) -I ../include $(INCLUDES)
1088N/A CFLAGS += -Kpic
1088N/A SHLIBLDFLAGS = -G -z defs $(LDFLAGS) -R $(libdir)
851N/A
1097N/A# Inspired by automake 1.11 silent rules - hides details by default
1097N/A# Run make V=1 to show details
1097N/ADEFAULT_V = 0
1097N/AV_CC = $(V_CC_$(V))
1097N/AV_CC_ = $(V_CC_$(DEFAULT_V))
851N/AV_CC_0 = @echo " CC " $@;
851N/AV_PSWRAP = $(V_PSWRAP_$(V))
1088N/AV_PSWRAP_ = $(V_PSWRAP_$(DEFAULT_V))
1088N/AV_PSWRAP_0 = @echo " PSWRAP" $@;
1088N/A
1088N/Aall:: $(SRCS) $(MOTIFSRCS)
1088N/A
1088N/A.SUFFIXES: .psw
1088N/A
1088N/A.psw.c:
$(V_PSWRAP)$(PSWRAP) -o $*.c -a -f $*.h -h $*.h $<
.c.o:
$(V_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c $(OUTPUT_OPTION) $<
all:: libdpstk.so.5 libdpstk.so
libdpstk.so.5: $(SRCS) $(OBJS) mapfile-vers.dpstk
$(V_CC)$(CC) $(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) -M mapfile-vers.dpstk $(OBJS) $(DPSTKLIBS)
libdpstk.so: libdpstk.so.5
-${RM} libdpstk.so
ln -s libdpstk.so.5 libdpstk.so
all:: libdpstkXm.so.5 libdpstkXm.so
libdpstkXm.so.5: libdpstk.so $(MOTIFSRCS) $(MOTIFOBJS) mapfile-vers.dpstkXm
$(V_CC)$(CC) $(CDEBUGFLAGS) -o $@ -h $@ $(SHLIBLDFLAGS) -M mapfile-vers.dpstkXm $(MOTIFOBJS) $(DPSTKXMLIBS)
libdpstkXm.so: libdpstkXm.so.5
-${RM} libdpstkXm.so
ln -s libdpstkXm.so.5 libdpstkXm.so
clean ::
${RM} $(DERIVED_FILES) $(MOTIFOBJS) $(OBJS)
install: all
$(INSTALL) libdpstk.so.5 $(DESTDIR)$(libdir)/libdpstk.so.5
$(INSTALL) libdpstkXm.so.5 $(DESTDIR)$(libdir)/libdpstkXm.so.5
$(INSTALL) -m 0444 ColorSelect.ad \
$(DESTDIR)$(datadir)/X11/app-defaults/ColorSelect
$(INSTALL) -m 0444 FontSelect.ad \
$(DESTDIR)$(datadir)/X11/app-defaults/FontSelect