Makefile revision 47e946e784719ae402ace34695f67b0e6e76ae5c
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# CDDL HEADER START
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# The contents of this file are subject to the terms of the
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Common Development and Distribution License (the "License").
bb5e3b2f129cc39517b925419c22f69a378ec023eh# You may not use this file except in compliance with the License.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb5e3b2f129cc39517b925419c22f69a378ec023eh# or http://www.opensolaris.org/os/licensing.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# See the License for the specific language governing permissions
bb5e3b2f129cc39517b925419c22f69a378ec023eh# and limitations under the License.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# When distributing Covered Code, include this CDDL HEADER in each
bb5e3b2f129cc39517b925419c22f69a378ec023eh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb5e3b2f129cc39517b925419c22f69a378ec023eh# If applicable, add the following below this CDDL HEADER, with the
bb5e3b2f129cc39517b925419c22f69a378ec023eh# fields enclosed by brackets "[]" replaced with your own identifying
bb5e3b2f129cc39517b925419c22f69a378ec023eh# information: Portions Copyright [yyyy] [name of copyright owner]
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# CDDL HEADER END
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
922d2c76afbee21520ffa2088c4e60dcb80d3945eh# Use is subject to license terms.
bb5e3b2f129cc39517b925419c22f69a378ec023eh#
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehPROG = tpmadm
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehOBJS = main.o \
bb5e3b2f129cc39517b925419c22f69a378ec023eh admin_cmds.o
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehinclude ../../Makefile.cmd
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehSRCS = $(OBJS:%.o=%.c)
bb5e3b2f129cc39517b925419c22f69a378ec023ehPOFILES = $(OBJS:%.o=%.po)
bb5e3b2f129cc39517b925419c22f69a378ec023ehPOFILE = $(PROG)_msg.po
bb5e3b2f129cc39517b925419c22f69a378ec023ehMSGFILES=$(SRCS:%.c=%.i)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehCPPFLAGS += -xCC
bb5e3b2f129cc39517b925419c22f69a378ec023ehLINTFLAGS += -XCC -L/usr/lib
bb5e3b2f129cc39517b925419c22f69a378ec023ehLDLIBS += -ltspi -luuid
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh.KEEP_STATE:
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehall : $(PROG)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh$(PROG) : $(OBJS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh $(LINK.c) -o $@ $(OBJS) $(DYNFLAGS) $(LDLIBS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh $(POST_PROCESS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023eh$(POFILE) : $(POFILES)
bb5e3b2f129cc39517b925419c22f69a378ec023eh $(RM) $@; $(CAT) $(POFILES) > $@
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehinstall : all $(ROOTPROG)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehclean :
bb5e3b2f129cc39517b925419c22f69a378ec023eh $(RM) $(OBJS)
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehlint : lint_SRCS
bb5e3b2f129cc39517b925419c22f69a378ec023eh
bb5e3b2f129cc39517b925419c22f69a378ec023ehinclude ../../Makefile.targ
bb5e3b2f129cc39517b925419c22f69a378ec023eh