xref: /illumos-gate/usr/src/cmd/idmap/nltest/Makefile (revision 299e09de)
1b3700b07SGordon Ross#
2b3700b07SGordon Ross# CDDL HEADER START
3b3700b07SGordon Ross#
4b3700b07SGordon Ross# The contents of this file are subject to the terms of the
5b3700b07SGordon Ross# Common Development and Distribution License (the "License").
6b3700b07SGordon Ross# You may not use this file except in compliance with the License.
7b3700b07SGordon Ross#
8b3700b07SGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b3700b07SGordon Ross# or http://www.opensolaris.org/os/licensing.
10b3700b07SGordon Ross# See the License for the specific language governing permissions
11b3700b07SGordon Ross# and limitations under the License.
12b3700b07SGordon Ross#
13b3700b07SGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
14b3700b07SGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b3700b07SGordon Ross# If applicable, add the following below this CDDL HEADER, with the
16b3700b07SGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
17b3700b07SGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
18b3700b07SGordon Ross#
19b3700b07SGordon Ross# CDDL HEADER END
20b3700b07SGordon Ross#
21b3700b07SGordon Ross#
22b3700b07SGordon Ross# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23b3700b07SGordon Ross# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
24b3700b07SGordon Ross#
25b3700b07SGordon Ross
26b3700b07SGordon RossPROG =		nltest
27b3700b07SGordon RossCLIENTOBJS =	nltest.o
28b3700b07SGordon Ross
29b3700b07SGordon RossCLIENTSRCS =	$(CLIENTOBJS:%.o=%.c)
30*299e09deSRichard LowePOFILES =	$(CLIENTOBJS:.o=.po)
31b3700b07SGordon RossOBJS =		$(CLIENTOBJS)
32b3700b07SGordon RossSRCS =		$(CLIENTSRCS)
33b3700b07SGordon Ross
34b3700b07SGordon Rossinclude ../../Makefile.cmd
35b3700b07SGordon Ross
36*299e09deSRichard LowePOFILE =	$(PROG)_all.po
37b3700b07SGordon RossLDLIBS +=	-lads -luuid
38b3700b07SGordon RossFILEMODE =	0555
39b3700b07SGordon Ross
40b3700b07SGordon RossINCS += -I.
41b3700b07SGordon Ross
42b3700b07SGordon RossCFLAGS += $(CCVERBOSE)
43b3700b07SGordon Ross$(OBJS) :=	CPPFLAGS += $(INCS) -D_REENTRANT
44b3700b07SGordon Ross$(POFILE) :=	CPPFLAGS += $(INCS)
45b3700b07SGordon Ross
46b3700b07SGordon Rosslint_SRCS :=	CPPFLAGS += $(INCS)
47b3700b07SGordon Ross
48b3700b07SGordon Ross.KEEP_STATE:
49b3700b07SGordon Ross
50b3700b07SGordon Rossall: $(PROG)
51b3700b07SGordon Ross
52b3700b07SGordon Ross$(PROG): $(OBJS)
53*299e09deSRichard Lowe	$(LINK.c) $(CCGDEBUG) -o $@ $(OBJS) $(LDLIBS)
54b3700b07SGordon Ross	$(POST_PROCESS)
55b3700b07SGordon Ross
56b3700b07SGordon Ross$(POFILE): $(POFILES)
57b3700b07SGordon Ross	$(RM) $@
58b3700b07SGordon Ross	cat $(POFILES) > $@
59b3700b07SGordon Ross
60b3700b07SGordon Rossinstall: all $(ROOTUSRSBINPROG)
61b3700b07SGordon Ross
62b3700b07SGordon Rossclean:
63b3700b07SGordon Ross	$(RM) $(OBJS)
64b3700b07SGordon Ross
65b3700b07SGordon Rosslint: lint_SRCS
66b3700b07SGordon Ross
67b3700b07SGordon Rossinclude ../../Makefile.targ
68