147e946e7SWyllys Ingersoll# 247e946e7SWyllys Ingersoll# CDDL HEADER START 347e946e7SWyllys Ingersoll# 447e946e7SWyllys Ingersoll# The contents of this file are subject to the terms of the 547e946e7SWyllys Ingersoll# Common Development and Distribution License (the "License"). 647e946e7SWyllys Ingersoll# You may not use this file except in compliance with the License. 747e946e7SWyllys Ingersoll# 847e946e7SWyllys Ingersoll# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 947e946e7SWyllys Ingersoll# or http://www.opensolaris.org/os/licensing. 1047e946e7SWyllys Ingersoll# See the License for the specific language governing permissions 1147e946e7SWyllys Ingersoll# and limitations under the License. 1247e946e7SWyllys Ingersoll# 1347e946e7SWyllys Ingersoll# When distributing Covered Code, include this CDDL HEADER in each 1447e946e7SWyllys Ingersoll# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1547e946e7SWyllys Ingersoll# If applicable, add the following below this CDDL HEADER, with the 1647e946e7SWyllys Ingersoll# fields enclosed by brackets "[]" replaced with your own identifying 1747e946e7SWyllys Ingersoll# information: Portions Copyright [yyyy] [name of copyright owner] 1847e946e7SWyllys Ingersoll# 1947e946e7SWyllys Ingersoll# CDDL HEADER END 2047e946e7SWyllys Ingersoll# 2147e946e7SWyllys Ingersoll# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2247e946e7SWyllys Ingersoll# Use is subject to license terms. 2347e946e7SWyllys Ingersoll# 2447e946e7SWyllys Ingersoll 2547e946e7SWyllys IngersollPROG = tpmadm 2647e946e7SWyllys Ingersoll 2747e946e7SWyllys IngersollOBJS = main.o \ 2847e946e7SWyllys Ingersoll admin_cmds.o 2947e946e7SWyllys Ingersoll 3047e946e7SWyllys Ingersollinclude ../../Makefile.cmd 3147e946e7SWyllys Ingersoll 3247e946e7SWyllys IngersollSRCS = $(OBJS:%.o=%.c) 3347e946e7SWyllys IngersollPOFILES = $(OBJS:%.o=%.po) 3447e946e7SWyllys IngersollPOFILE = $(PROG)_msg.po 3547e946e7SWyllys IngersollMSGFILES = $(SRCS:%.c=%.i) 3647e946e7SWyllys Ingersoll 3747e946e7SWyllys IngersollLDLIBS += -ltspi -luuid 385801b0f0SToomas SoomeNATIVE_LIBS += libtspi.so 3947e946e7SWyllys Ingersoll 40*d17be682SRichard LoweCLOBBERFILES = $(POFILE) $(POFILES) 41b6805bf7SGordon Ross 4247e946e7SWyllys Ingersoll.KEEP_STATE: 4347e946e7SWyllys Ingersoll 4447e946e7SWyllys Ingersollall : $(PROG) 4547e946e7SWyllys Ingersoll 4647e946e7SWyllys Ingersoll$(PROG) : $(OBJS) 4747e946e7SWyllys Ingersoll $(LINK.c) -o $@ $(OBJS) $(DYNFLAGS) $(LDLIBS) 4847e946e7SWyllys Ingersoll $(POST_PROCESS) 4947e946e7SWyllys Ingersoll 5047e946e7SWyllys Ingersoll$(POFILE) : $(POFILES) 5147e946e7SWyllys Ingersoll $(RM) $@; $(CAT) $(POFILES) > $@ 5247e946e7SWyllys Ingersoll 5347e946e7SWyllys Ingersollinstall : all $(ROOTPROG) 5447e946e7SWyllys Ingersoll 5547e946e7SWyllys Ingersollclean : 5647e946e7SWyllys Ingersoll $(RM) $(OBJS) 5747e946e7SWyllys Ingersoll 5847e946e7SWyllys Ingersollinclude ../../Makefile.targ 59