xref: /onnv-gate/usr/src/cmd/cmd-crypto/cryptoadm/Makefile (revision 12929:f2051cc42292)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
56543Srie# Common Development and Distribution License (the "License").
66543Srie# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*12929SMisaki.Miyashita@Oracle.COM# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
220Sstevel@tonic-gate#
230Sstevel@tonic-gate
240Sstevel@tonic-gatePROG = cryptoadm
250Sstevel@tonic-gate
260Sstevel@tonic-gateOBJS =  cryptoadm.o \
270Sstevel@tonic-gate	adm_uef.o \
280Sstevel@tonic-gate	adm_kef.o \
290Sstevel@tonic-gate	adm_kef_ioctl.o \
300Sstevel@tonic-gate	adm_kef_util.o \
31*12929SMisaki.Miyashita@Oracle.COM	adm_fips_hw.o \
320Sstevel@tonic-gate	adm_util.o \
330Sstevel@tonic-gate	start_stop.o \
340Sstevel@tonic-gate	adm_metaslot.o
350Sstevel@tonic-gate
360Sstevel@tonic-gateSRCS = $(OBJS:.o=.c)
370Sstevel@tonic-gate
380Sstevel@tonic-gateinclude ../../Makefile.cmd
390Sstevel@tonic-gate
400Sstevel@tonic-gatePOFILES = $(OBJS:%.o=%.po)
410Sstevel@tonic-gatePOFILE = $(PROG)_all.po
420Sstevel@tonic-gate
430Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
440Sstevel@tonic-gate
450Sstevel@tonic-gateLDLIBS += -lcryptoutil
460Sstevel@tonic-gate
470Sstevel@tonic-gate.KEEP_STATE:
480Sstevel@tonic-gate
490Sstevel@tonic-gateall:    $(PROG)
500Sstevel@tonic-gate
510Sstevel@tonic-gate$(PROG): $(OBJS)
520Sstevel@tonic-gate	$(LINK.c) $(OBJS) -o $@ $(LDLIBS) $(DYNFLAGS)
530Sstevel@tonic-gate	$(POST_PROCESS)
540Sstevel@tonic-gate
550Sstevel@tonic-gate$(POFILE): $(POFILES)
560Sstevel@tonic-gate	$(RM) $@; cat $(POFILES) > $@
570Sstevel@tonic-gate
588192SJohn.Zolnowsky@Sun.COMinstall: all $(ROOTSBINPROG)
598192SJohn.Zolnowsky@Sun.COM	$(RM) $(ROOTUSRSBINPROG)
608192SJohn.Zolnowsky@Sun.COM	-$(SYMLINK) ../../sbin/$(PROG) $(ROOTUSRSBINPROG)
610Sstevel@tonic-gate
620Sstevel@tonic-gateclean:
630Sstevel@tonic-gate	$(RM) -f $(OBJS) $(PROG)
640Sstevel@tonic-gate
650Sstevel@tonic-gatelint:   lint_SRCS
660Sstevel@tonic-gate
670Sstevel@tonic-gateinclude ../../Makefile.targ
68