Makefile revision dd5829d1456ba00e6f704e6a88e7eaae608e3c1b
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
a11c1571b6942161b0186d0588609448066892c2Gary Mills# CDDL HEADER START
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore#
25f48f6755be2e1b122ca5e2e4030ed583fd600eGordon Ross# The contents of this file are subject to the terms of the
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# Common Development and Distribution License (the "License").
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# You may not use this file except in compliance with the License.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'Amore# See the License for the specific language governing permissions
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# and limitations under the License.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# CDDL HEADER END
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# Use is subject to license terms.
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore# ident "%Z%%M% %I% %E% SMI"
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore#
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreFSTYPE = nfs
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreTYPEPROG = nfsmapid
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'AmoreTESTPROG = nfsmapid_test
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'AmoreATTMK = $(TYPEPROG)
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'Amore
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'Amoreinclude ../../Makefile.fstype
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
5aec55eb0591d2fcdd38d7dd5408a6ff3456e596Garrett D'AmoreLDLIBS += -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreLDLIBS += -lnsl -lmapid -ldoor -ldtrace -lidmap
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreSRCS = nfsmapid.c nfsmapid_server.c
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreDSRC = nfsmapid_dt.d
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreDOBJ = $(DSRC:%.d=%.o)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreOBJS = $(SRCS:%.c=%.o)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmoreCPPFLAGS += -I../lib -D_POSIX_PTHREAD_SEMANTICS
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoreall: $(TYPEPROG) $(TESTPROG)
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore$(TYPEPROG): $(OBJS) $(DSRC)
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore $(COMPILE.d) -s $(DSRC) -o $(DOBJ) $(OBJS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore $(LINK.c) $(ZIGNORE) -o $@ $(DOBJ) $(OBJS) $(LDLIBS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore $(POST_PROCESS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'AmoreTESTSRCS = nfsmapid_test.c
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'AmoreTESTOBJS = $(TESTSRCS:%.c=%.o)
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'AmoreTEST_OBJS = $(TESTOBJS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore$(TESTPROG): $(TEST_OBJS)
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore $(LINK.c) -o $@ $(TEST_OBJS) $(LDLIBS)
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore $(POST_PROCESS)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'AmorePOFILE = nfsmapid.po
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amorecatalog: $(POFILE)
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore$(POFILE): $(SRCS)
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore $(RM) $@
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore $(COMPILE.cpp) $(SRCS) > $@.i
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'Amore $(XGETTEXT) $(XGETFLAGS) $@.i
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'Amore sed "/^domain/d" messages.po > $@
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'Amore $(RM) $@.i messages.po
6eaad1d3bb5bc6d4b1e87f2660b6d3a6e9fc2155Garrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amoreclean:
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore $(RM) $(OBJS) $(TESTPROG) $(TESTOBJS) $(DOBJ) $(POFILE)
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amorelint: $(SRCS) lint_SRCS
4297a3b0d0a35d80f86fff155e288e885a100e6dGarrett D'Amore