Makefile revision 824
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte###############################################################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# libowconfig Makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Permission is hereby granted, free of charge, to any person obtaining a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# copy of this software and associated documentation files (the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# "Software"), to deal in the Software without restriction, including
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# without limitation the rights to use, copy, modify, merge, publish,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# distribute, and/or sell copies of the Software, and to permit persons
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# to whom the Software is furnished to do so, provided that the above
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# copyright notice(s) and this permission notice appear in all copies of
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the Software and that both the above copyright notice(s) and this
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# permission notice appear in supporting documentation.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
904e51f67bfac9f3ec88d9254757474c448808ebJack Meng# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Except as contained in this notice, the name of a copyright holder
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# shall not be used in advertising or otherwise to promote the sale, use
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or other dealings in this Software without prior written authorization
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# of the copyright holder.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ident "@(#)Makefile 1.6 09/11/09 SMI"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSHLIBLDFLAGS = -G -z defs $(LDFLAGS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteREQUIREDLIBS = -lc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteHEADERS = \
1a1a84a324206b6b1f5f704ab166c4ebf78aed76Peter Dunlap Sunowconfig.h
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCS = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte OWconfig.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte OWconfig.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Inspired by automake 1.11 silent rules - hides details by default
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Run make V=1 to show details
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDEFAULT_V = 0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteV_CC = $(V_CC_$(V))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteV_CC_ = $(V_CC_$(DEFAULT_V))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteV_CC_0 = @echo " CC " $@;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: libowconfig.so.0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelibowconfig.so.0: $(OBJS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(V_CC)$(LD) $(CFLAGS) -o $@ $(SHLIBLDFLAGS) -h libowconfig.so.0 \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(OBJS) $(REQUIREDLIBS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.c.o:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(V_CC)$(CC) -Kpic $(CFLAGS) $(CPPFLAGS) -c $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINCDIR = $(X11_INCLUDES_DIR)/X11
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall: libowconfig.so.0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(INCDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INSTALL) libowconfig.so.0 $(DESTDIR)$(libdir)/libowconfig.so.0
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(INSTALL) Sunowconfig.h $(DESTDIR)$(INCDIR)/Sunowconfig.h
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte