Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
0N/A#
0N/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, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/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#
0N/A#
0N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A#
0N/A# cmd/fs.d/cachefs/cfsd
0N/A#
0N/A
0N/AFSTYPE= cachefs
0N/ALIBPROG_C= cachefsd
0N/AATTMK= $(LIBPROG_C)
0N/ALINKVALUE= ../lib/fs/$(FSTYPE)/$(LIBPROG_C)
0N/A
0N/Ainclude ../../Makefile.fstype
0N/A
0N/APROGOBJS = cfsd_main.o cfsd_svc.o cfsd_kmod.o cfsd_maptbl.o \
0N/A cfsd_logelem.o cfsd_cache.o cfsd_fscache.o cfsd_all.o \
0N/A cfsd_logfile.o cfsd_subr.o
0N/A
0N/ALDLIBSMT = $(LDLIBS.cmd) $(CFSLIBMT) $(MDBUGLIB) -lnsl
0N/Ainclude ../Makefile.cachefs
0N/A
0N/AMDBUGLIB= ../mdbug/libdbug.a
0N/ACPPFLAGS += -I.. -D_REENTRANT
0N/ARPCGENFLAGS= -M -C -T
0N/ACLOBBERFILES += $(LIBPROG_C) cachefsd_tbl.i
0N/A
0N/Aall : $(LIBPROG_C)
0N/A
0N/Ainstall : $(ROOTLIBFSTYPE)/$(LIBPROG_C)
0N/A
0N/A$(LIBPROG_C): $(OBJS)
0N/A $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBSMT)
0N/A $(POST_PROCESS)
0N/A
0N/Atestmap : cfsd_maptbl.o testmap.o
0N/A $(LINK.c) -o $@ cfsd_maptbl.o testmap.o $(LDLIBS)
0N/A
0N/Acachefsd_tbl.i : $(CACHEFSDIR)/cachefsd.x
0N/A $(RPCGEN) $(RPCGENFLAGS) -t -o cachefsd_tbl.i \
0N/A $(CACHEFSDIR)/cachefsd.x
0N/A
cfsd_main.o : cfsd_main.c cachefsd_tbl.i
clobber : templates
templates :
rm -rf SunWS_cache
$(LIBPROG_C) : $(CFSLIB) $(MDBUGLIB)
$(MDBUGLIB) :
cd $(@D); pwd; $(MAKE) $(TARGET);
@pwd
$(PROGOBJS) : $(CACHEFSDIR)/cachefsd.h ../mdbug/mdbug.h