xref: /onnv-gate/usr/src/cmd/cmd-crypto/tpmadm/Makefile (revision 9126:6acea8ac53c8)
1*9126SWyllys.Ingersoll@Sun.COM#
2*9126SWyllys.Ingersoll@Sun.COM# CDDL HEADER START
3*9126SWyllys.Ingersoll@Sun.COM#
4*9126SWyllys.Ingersoll@Sun.COM# The contents of this file are subject to the terms of the
5*9126SWyllys.Ingersoll@Sun.COM# Common Development and Distribution License (the "License").
6*9126SWyllys.Ingersoll@Sun.COM# You may not use this file except in compliance with the License.
7*9126SWyllys.Ingersoll@Sun.COM#
8*9126SWyllys.Ingersoll@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9126SWyllys.Ingersoll@Sun.COM# or http://www.opensolaris.org/os/licensing.
10*9126SWyllys.Ingersoll@Sun.COM# See the License for the specific language governing permissions
11*9126SWyllys.Ingersoll@Sun.COM# and limitations under the License.
12*9126SWyllys.Ingersoll@Sun.COM#
13*9126SWyllys.Ingersoll@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
14*9126SWyllys.Ingersoll@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9126SWyllys.Ingersoll@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
16*9126SWyllys.Ingersoll@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
17*9126SWyllys.Ingersoll@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
18*9126SWyllys.Ingersoll@Sun.COM#
19*9126SWyllys.Ingersoll@Sun.COM# CDDL HEADER END
20*9126SWyllys.Ingersoll@Sun.COM#
21*9126SWyllys.Ingersoll@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22*9126SWyllys.Ingersoll@Sun.COM# Use is subject to license terms.
23*9126SWyllys.Ingersoll@Sun.COM#
24*9126SWyllys.Ingersoll@Sun.COM
25*9126SWyllys.Ingersoll@Sun.COMPROG =	tpmadm
26*9126SWyllys.Ingersoll@Sun.COM
27*9126SWyllys.Ingersoll@Sun.COMOBJS =	main.o \
28*9126SWyllys.Ingersoll@Sun.COM	admin_cmds.o
29*9126SWyllys.Ingersoll@Sun.COM
30*9126SWyllys.Ingersoll@Sun.COMinclude ../../Makefile.cmd
31*9126SWyllys.Ingersoll@Sun.COM
32*9126SWyllys.Ingersoll@Sun.COMSRCS =	$(OBJS:%.o=%.c)
33*9126SWyllys.Ingersoll@Sun.COMPOFILES = $(OBJS:%.o=%.po)
34*9126SWyllys.Ingersoll@Sun.COMPOFILE = $(PROG)_msg.po
35*9126SWyllys.Ingersoll@Sun.COMMSGFILES=$(SRCS:%.c=%.i)
36*9126SWyllys.Ingersoll@Sun.COM
37*9126SWyllys.Ingersoll@Sun.COMCPPFLAGS += -xCC
38*9126SWyllys.Ingersoll@Sun.COMLINTFLAGS += -XCC  -L/usr/lib
39*9126SWyllys.Ingersoll@Sun.COMLDLIBS += -ltspi -luuid
40*9126SWyllys.Ingersoll@Sun.COM
41*9126SWyllys.Ingersoll@Sun.COM.KEEP_STATE:
42*9126SWyllys.Ingersoll@Sun.COM
43*9126SWyllys.Ingersoll@Sun.COMall : $(PROG)
44*9126SWyllys.Ingersoll@Sun.COM
45*9126SWyllys.Ingersoll@Sun.COM$(PROG) : $(OBJS)
46*9126SWyllys.Ingersoll@Sun.COM	$(LINK.c) -o $@ $(OBJS) $(DYNFLAGS) $(LDLIBS)
47*9126SWyllys.Ingersoll@Sun.COM	$(POST_PROCESS)
48*9126SWyllys.Ingersoll@Sun.COM
49*9126SWyllys.Ingersoll@Sun.COM$(POFILE) : $(POFILES)
50*9126SWyllys.Ingersoll@Sun.COM	$(RM) $@; $(CAT) $(POFILES) > $@
51*9126SWyllys.Ingersoll@Sun.COM
52*9126SWyllys.Ingersoll@Sun.COMinstall : all $(ROOTPROG)
53*9126SWyllys.Ingersoll@Sun.COM
54*9126SWyllys.Ingersoll@Sun.COMclean :
55*9126SWyllys.Ingersoll@Sun.COM	$(RM) $(OBJS)
56*9126SWyllys.Ingersoll@Sun.COM
57*9126SWyllys.Ingersoll@Sun.COMlint : lint_SRCS
58*9126SWyllys.Ingersoll@Sun.COM
59*9126SWyllys.Ingersoll@Sun.COMinclude ../../Makefile.targ
60