Makefile revision f841f6ad96ea6675d6c6b35c749eaac601799fdf
1029N/A#
1029N/A# CDDL HEADER START
1029N/A#
1029N/A# The contents of this file are subject to the terms of the
1392N/A# Common Development and Distribution License (the "License").
1029N/A# You may not use this file except in compliance with the License.
1029N/A#
1042N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1042N/A# or http://www.opensolaris.org/os/licensing.
1042N/A# See the License for the specific language governing permissions
1042N/A# and limitations under the License.
1042N/A#
1042N/A# When distributing Covered Code, include this CDDL HEADER in each
1042N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1042N/A# If applicable, add the following below this CDDL HEADER, with the
1042N/A# fields enclosed by brackets "[]" replaced with your own identifying
1042N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1042N/A#
1042N/A# CDDL HEADER END
1042N/A#
1042N/A#
1042N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1042N/A# Use is subject to license terms.
1042N/A#
1029N/A# ident "%Z%%M% %I% %E% SMI"
1029N/A#
1029N/A
1029N/AFSTYPE = nfs
1029N/ATYPEPROG = nfsmapid
1029N/ATESTPROG = nfsmapid_test
1029N/AATTMK = $(TYPEPROG)
1029N/A
1029N/Ainclude ../../Makefile.fstype
1029N/A
1029N/ALDLIBS += -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
1029N/ALDLIBS += -lnsl -lmapid -ldoor -ldtrace
1029N/ASRCS = nfsmapid.c nfsmapid_server.c
1029N/ADSRC = nfsmapid_dt.d
1029N/ADOBJ = $(DSRC:%.d=%.o)
1029N/AOBJS = $(SRCS:%.c=%.o)
1029N/ACPPFLAGS += -I../lib -D_POSIX_PTHREAD_SEMANTICS
1029N/A
1029N/Aall: $(TYPEPROG) $(TESTPROG)
1392N/A
1029N/A$(TYPEPROG): $(OBJS) $(DSRC)
1029N/A $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
1042N/A $(LINK.c) -zignore -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
1029N/A $(POST_PROCESS)
1029N/A
1029N/ATESTSRCS = nfsmapid_test.c
1181N/ATESTOBJS = $(TESTSRCS:%.c=%.o)
1029N/ATEST_OBJS = $(TESTOBJS)
1029N/A
1029N/A$(TESTPROG): $(TEST_OBJS)
1029N/A $(LINK.c) -o $@ $(TEST_OBJS) $(LDLIBS)
1029N/A $(POST_PROCESS)
1029N/A
1029N/APOFILE = nfsmapid.po
1029N/Acatalog: $(POFILE)
1029N/A
1029N/A$(POFILE): $(SRCS)
1029N/A $(RM) $@
1029N/A $(COMPILE.cpp) $(SRCS) > $@.i
1029N/A $(XGETTEXT) $(XGETFLAGS) $@.i
1029N/A sed "/^domain/d" messages.po > $@
1029N/A $(RM) $@.i messages.po
1029N/A
1029N/Aclean:
1196N/A $(RM) $(OBJS) $(TESTPROG) $(TESTOBJS) $(DOBJ) $(POFILE)
1196N/A
1196N/Alint: $(SRCS) lint_SRCS
1196N/A