Makefile revision f808c858fa61e7769218966759510a8b1190dfcf
0N/A#
4152N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A#
2362N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2362N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A
0N/ALIBRARY= libdump.a
0N/A
0N/A# Has to be before include of Makefile.backup
0N/A# This should be POFILE=libdump.po, but that causes make to
0N/A# fall over due to some seriously weird interactions in the
0N/A# various indirectly-included makefiles. So, since this works
0N/A# and is otherwise harmless, we fake it.
0N/APROG= libdump
0N/A
0N/A# Include library definitions, then backup definitions, as in general
0N/A# we want the flags and such from our tree.
0N/A
0N/Ainclude ../../../lib/Makefile.lib
0N/Ainclude ../Makefile.backup
0N/A
0N/ASRCDIR = .
0N/A
0N/A# Specifically request the construction of a static library.
0N/A# This library is not installed in the proto area.
0N/ALIBS= $(LIBRARY)
0N/A
0N/AHDRS= ../include/byteorder.h \
0N/A ../include/memutils.h ../include/myrcmd.h \
0N/A ../../../head/protocols/dumprestore.h \
0N/A ../include/rmt.h
0N/A
0N/AYFILE= getdate.y
0N/AYSRC= getdate.c
0N/A
0N/ACLOBBERFILES= $(YSRC) $(GLIB) *.ln
0N/A
0N/ALOBJS= rmtlib.o myrcmd.o \
0N/A $(YSRC:%.c=%.o) \
0N/A byteorder.o memutils.o $(RPC_CLNT:%.c=%.o) $(RPC_XDR:%.c=%.o)
0N/A
0N/AOBJECTS= $(LOBJS)
0N/APOFILES= $(OBJECTS:.o=.po)
0N/AGENERAL= ../include
0N/AGLOBAL= ../../../head
0N/ACPPFLAGS= -I$(GENERAL) -I$(GLOBAL) $(CPPFLAGS.master)
0N/ALINTOUT= lint.out
0N/ACLEANFILES= $(OBJECTS) $(LINTOUT) $(LINTLIB) $(DEBUGS) *.ln \
0N/A $(YSRC) $(LIBRARY)
0N/ALINTFLAGS += -y
0N/A
0N/A# support for -g library
0N/AGLIB= libdump_g.a
0N/ADEBUGS= $(OBJECTS:%=.debug/%)
0N/A$(GLIB):= AROBJS = $(DEBUGS)
0N/A$(GLIB):= DIR = .debug
0N/A$(GLIB):= CFLAGS= -g $(XESS) -DDEBUG -DYYDEBUG ${SBFLAGS}
0N/A
0N/A.KEEP_STATE:
0N/A
0N/Aall: $(LIBS)
0N/A
0N/Adebug: $(LIBS) $(GLIB)
0N/A
0N/A.debug:
0N/A -@mkdir -p $@
0N/A
0N/A.debug/%.o: %.c
0N/A $(COMPILE.c) -o $@ $<
0N/A $(POST_PROCESS_O)
0N/A
0N/A$(GLIB): .debug $$(DEBUGS)
0N/A $(BUILD.AR)
0N/A $(POST_PROCESS_A)
0N/A
0N/A$(OBJECTS): $(HDRS)
0N/A
0N/Ainstall: all
0N/A
0N/A$(POFILE): $(POFILES)
0N/A $(RM) $@; cat $(POFILES) > $@
0N/A
0N/A# rpcgen produces unused local variables that we can't easily suppress.
0N/A# It is also stupid about 32/64 bit integers. Since we don't support
0N/A# the RPC subsystem any more, just ignore complaints about it all.
0N/A# We have no control over yaccpar, and it has lots of 32/64 complaints.
0N/A# Assumes lint run with -s argument
0N/Alint: lint.out
0N/A sed -f lint.sed lint.out
0N/A
0N/Alint.out: $(LINTLIB)
0N/A
0N/Acheck: $(HDRS)
0N/A $(CSTYLE) $(CSTYLEFLAGS) `echo $(SRCS) | sed -e s/getdate.c//` $(HDRS)
0N/A $(HDRCHK) $(HDRCHKFLAGS) $(HDRS)
0N/A
0N/A# include library targets
0N/Ainclude ../../../lib/Makefile.targ
0N/A
0N/A_msg: $(POFILE)
0N/A