Makefile revision dd5829d1456ba00e6f704e6a88e7eaae608e3c1b
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# The contents of this file are subject to the terms of the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Common Development and Distribution License (the "License").
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# You may not use this file except in compliance with the License.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# or http://www.opensolaris.org/os/licensing.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# See the License for the specific language governing permissions
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# and limitations under the License.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# CDDL HEADER END
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# Use is subject to license terms.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# ident "%Z%%M% %I% %E% SMI"
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntFSTYPE = nfs
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntTYPEPROG = nfsmapid
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntTESTPROG = nfsmapid_test
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntATTMK = $(TYPEPROG)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinclude ../../Makefile.fstype
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLDLIBS += -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntLDLIBS += -lnsl -lmapid -ldoor -ldtrace -lidmap
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntSRCS = nfsmapid.c nfsmapid_server.c
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntDSRC = nfsmapid_dt.d
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntDOBJ = $(DSRC:%.d=%.o)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntOBJS = $(SRCS:%.c=%.o)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCPPFLAGS += -I../lib -D_POSIX_PTHREAD_SEMANTICS
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userall: $(TYPEPROG) $(TESTPROG)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(TYPEPROG): $(OBJS) $(DSRC)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(LINK.c) $(ZIGNORE) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(POST_PROCESS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTESTSRCS = nfsmapid_test.c
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTESTOBJS = $(TESTSRCS:%.c=%.o)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTEST_OBJS = $(TESTOBJS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(TESTPROG): $(TEST_OBJS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(LINK.c) -o $@ $(TEST_OBJS) $(LDLIBS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(POST_PROCESS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPOFILE = nfsmapid.po
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntcatalog: $(POFILE)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(POFILE): $(SRCS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $@
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(COMPILE.cpp) $(SRCS) > $@.i
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(XGETTEXT) $(XGETFLAGS) $@.i
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt sed "/^domain/d" messages.po > $@
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $@.i messages.po
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntclean:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $(OBJS) $(TESTPROG) $(TESTOBJS) $(DOBJ) $(POFILE)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntlint: $(SRCS) lint_SRCS
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt