Makefile revision 830
3998N/A###############################################################################
3998N/A#
3998N/A# libdga Makefile
3998N/A#
3998N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3998N/A# Use is subject to license terms.
3998N/A#
3998N/A# Permission is hereby granted, free of charge, to any person obtaining a
3998N/A# copy of this software and associated documentation files (the
3998N/A# "Software"), to deal in the Software without restriction, including
3998N/A# without limitation the rights to use, copy, modify, merge, publish,
3998N/A# distribute, and/or sell copies of the Software, and to permit persons
3998N/A# to whom the Software is furnished to do so, provided that the above
3998N/A# copyright notice(s) and this permission notice appear in all copies of
3998N/A# the Software and that both the above copyright notice(s) and this
3998N/A# permission notice appear in supporting documentation.
3998N/A#
3998N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
3998N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
3998N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
3998N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
3998N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
3998N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
3998N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
3998N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
3998N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3998N/A#
3998N/A# Except as contained in this notice, the name of a copyright holder
3998N/A# shall not be used in advertising or otherwise to promote the sale, use
3998N/A# or other dealings in this Software without prior written authorization
3998N/A# of the copyright holder.
3998N/A#
3998N/A# ident "@(#)Makefile 1.1 09/11/09 SMI"
3998N/A#
3998N/A
3998N/ASHLIBLDFLAGS = -G -z defs $(LDFLAGS)
3998N/AREQUIREDLIBS = -lX11 -lsocket -lc
3998N/ADEFINES = -D_TS_ERRNO -DMT -DXTHREADS -DPANORAMIX -DIPv6 -DSVR4
3998N/A
3998N/AHEADERS = dga_Xrequests.h win_grab.h rtn_grab.h cmap_grab.h pix_grab.h \
3998N/A mbufsetstr.h vmbuf_grab.h dga_incls.h
3998N/ASRCS = dga_Xrequests.c win_grab.c dga_db.c rtn_grab.c cmap_grab.c pix_grab.c \
3998N/A mbsmemb_update.c mbsmemb_inquiry.c win_update.c mbuf_update.c \
3998N/A mbufset.c draw_inquiry.c draw_db.c pix_update.c pix_inquiry.c dga_ab.c
3998N/AOBJS = $(SRCS:.c=.o)
3998N/A
3998N/A# Inspired by automake 1.11 silent rules - hides details by default
3998N/A# Run make V=1 to show details
3998N/ADEFAULT_V = 0
3998N/AV_CC = $(V_CC_$(V))
3998N/AV_CC_ = $(V_CC_$(DEFAULT_V))
3998N/AV_CC_0 = @echo " CC " $@;
3998N/A
3998N/Aall: libdga.so.1
3998N/A
3998N/Alibdga.so.1: $(OBJS)
3998N/A $(V_CC)$(LD) $(CFLAGS) -o $@ $(SHLIBLDFLAGS) -h libdga.so.1 \
$(OBJS) $(REQUIREDLIBS)
.c.o:
$(V_CC)$(CC) -Kpic $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c $<
install: libdga.so.1
mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(INCDIR)
$(INSTALL) libdga.so.1 $(DESTDIR)$(libdir)/libdga.so.1