Makefile revision 919
6170N/A###############################################################################
6170N/A#
6170N/A# libowconfig Makefile
6170N/A#
6170N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
6170N/A# Use is subject to license terms.
6170N/A#
6170N/A# Permission is hereby granted, free of charge, to any person obtaining a
6170N/A# copy of this software and associated documentation files (the "Software"),
6170N/A# to deal in the Software without restriction, including without limitation
6170N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
6170N/A# and/or sell copies of the Software, and to permit persons to whom the
6170N/A# Software is furnished to do so, subject to the following conditions:
6170N/A#
6170N/A# The above copyright notice and this permission notice (including the next
6170N/A# paragraph) shall be included in all copies or substantial portions of the
6170N/A# Software.
6170N/A#
6170N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6170N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6170N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
6170N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6170N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
6170N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
6170N/A# DEALINGS IN THE SOFTWARE.
6170N/A#
6170N/A#
6170N/A
6170N/ASHLIBLDFLAGS = -G -z defs $(LDFLAGS)
6170N/AREQUIREDLIBS = -lc
6170N/A
6170N/AHEADERS = \
6170N/A Sunowconfig.h
6170N/A
6170N/ASRCS = \
6170N/A OWconfig.c
6170N/A
6170N/AOBJS = \
6170N/A OWconfig.o
6170N/A
6170N/A# Inspired by automake 1.11 silent rules - hides details by default
6170N/A# Run make V=1 to show details
6170N/ADEFAULT_V = 0
6170N/AV_CC = $(V_CC_$(V))
6170N/AV_CC_ = $(V_CC_$(DEFAULT_V))
6170N/AV_CC_0 = @echo " CC " $@;
6170N/A
6170N/Aall: libowconfig.so.0
6170N/A
6170N/Alibowconfig.so.0: $(OBJS)
6170N/A $(V_CC)$(LD) $(CFLAGS) -o $@ $(SHLIBLDFLAGS) -h libowconfig.so.0 \
6170N/A $(OBJS) $(REQUIREDLIBS)
6170N/A
6170N/A.c.o:
6170N/A $(V_CC)$(CC) -Kpic $(CFLAGS) $(CPPFLAGS) -c $<
6170N/A
6170N/AINCDIR = $(X11_INCLUDES_DIR)/X11
6170N/A
6170N/Ainstall: libowconfig.so.0
6170N/A mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(INCDIR)
6170N/A $(INSTALL) libowconfig.so.0 $(DESTDIR)$(libdir)/libowconfig.so.0
6170N/A $(INSTALL) Sunowconfig.h $(DESTDIR)$(INCDIR)/Sunowconfig.h
6170N/A