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