xref: /titanic_51/usr/src/cmd/gss/gsscred/Makefile (revision 0cd13cbfb4270b840b4bd22ec5f673b2b6a2c02b)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29SBINPROG = gsscred
30
31INCDIRS = -I. -I$(ROOT)/usr/include
32
33LIBPATH = -L$(ROOT)/usr/lib
34
35PROG= $(SBINPROG)
36
37GSSCREDOBJS = gsscred.o gsscred_utils.o gsscred_file.o
38
39OBJS	= $(GSSCREDOBJS)
40SRCS	= $(OBJS:.o=.c)
41
42include ../../Makefile.cmd
43
44TEXT_DOMAIN = SUNW_OST_NETRPC
45POFILE = $(PROG).po
46POFILES = generic.po
47
48ROOTBINPROG=		$(BINPROG:%=$(ROOTBIN)/%)
49
50$(ROOTUSRSBIN)/gsscred :=	OWNER=	root
51$(ROOTUSRSBIN)/gsscred :=	GROUP=	sys
52
53COPTFLAG += $(XESS) $(INCDIRS) $(LIBPATH)
54
55LDLIBS += -lgss
56
57$(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50
58
59.KEEP_STATE:
60
61all: $(PROG)
62
63gsscred:	$(OBJS)
64	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
65	$(POST_PROCESS)
66
67$(ROOTBINPROG):
68	$(INS.dir)
69
70$(ROOTUSRSBIN)/%:	%
71	$(INS.file)
72
73install: all $(DIRS) $(ROOTBINPROG) $(ROOTUSRSBIN)/gsscred
74
75install_h:
76
77clean:
78	$(RM) $(OBJS)
79	$(RM) $(PROG)
80
81lint: lint_SRCS
82
83include ../../Makefile.targ
84
85$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
86	$(RM) $@
87	$(CAT) $(POFILES) > $@
88
89generic.po: FRC
90	$(RM) messages.po
91	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
92	$(SED) "/^domain/d" messages.po > $@
93	$(RM) messages.po
94
95FRC:
96