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