usr/src/cmd/cmd-crypto/kmfcfg/Makefile
author Keith M Wesolowski <wesolows@foobazco.org>
Wed, 17 Jul 2013 17:05:07 -0700
changeset 14225 20c0ad5cefdf
parent 10207 87c40ea3fc4b
permissions -rw-r--r--
3915 Add adjuncts support to the build Reviewed by: Robert Mustacchi <[email protected]> Reviewed by: Richard Lowe <[email protected]> Approved by: Dan McDonald <[email protected]>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     1
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     2
# CDDL HEADER START
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     3
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     7
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    11
# and limitations under the License.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    12
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    18
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    19
# CDDL HEADER END
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    20
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    21
#
10207
87c40ea3fc4b 6864230 hiho, hiho, it'ch chtime for CH to go
jmcp <James.McPherson@Sun.COM>
parents: 5626
diff changeset
    22
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    23
# Use is subject to license terms.
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    24
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    25
# Makefile for policy testing code
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    26
#
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    27
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    28
PROG =	kmfcfg
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    29
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    30
OBJS =	kmfcfg.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    31
	list.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    32
	delete.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    33
	util.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    34
	create.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    35
	modify.o \
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    36
	export.o \
5626
1f8878c75f54 PSARC 2007/604 KMF Pluggability Enhancements
hylee
parents: 3092
diff changeset
    37
	import.o \
1f8878c75f54 PSARC 2007/604 KMF Pluggability Enhancements
hylee
parents: 3092
diff changeset
    38
	install.o \
1f8878c75f54 PSARC 2007/604 KMF Pluggability Enhancements
hylee
parents: 3092
diff changeset
    39
	uninstall.o
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    40
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    41
include ../../Makefile.cmd
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    42
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    43
KMFDIR		= $(SRC)/lib/libkmf
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    44
SRCS		= $(OBJS:%.o=%.c)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    45
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    46
POFILES		= $(OBJS:%.o=%.po)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    47
POFILE		= $(PROG)_msg.po
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    48
MSGFILES	= $(SRCS:%.c=%.i)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    49
14225
20c0ad5cefdf 3915 Add adjuncts support to the build
Keith M Wesolowski <wesolows@foobazco.org>
parents: 10207
diff changeset
    50
CPPFLAGS	+= -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
20c0ad5cefdf 3915 Add adjuncts support to the build
Keith M Wesolowski <wesolows@foobazco.org>
parents: 10207
diff changeset
    51
		-I$(KMFDIR)/include -I.
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    52
LDLIBS		+= -L$(ROOT)/usr/lib -lkmf -lcryptoutil
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    53
XMLLIB		= -lxml2
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    54
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    55
.KEEP_STATE:
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    56
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    57
XMLDIR=		$(ROOT)/etc/security
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    58
DTDDIR=		$(ROOT)/usr/share/lib/xml/dtd
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    59
ROOTDTDS=	$(DTDDIR)/kmfpolicy.dtd
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    60
ROOTXML=	$(XMLDIR)/kmfpolicy.xml
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    61
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    62
$(ROOTDTDS) :=	FILEMODE = 444
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    63
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    64
$(ROOTXML)  :=	FILEMODE = 644
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    65
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    66
all:	$(PROG) $(ROOTDTDS)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    67
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    68
$(PROG): $(OBJS)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    69
	$(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(XMLLIB)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    70
	$(POST_PROCESS)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    71
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    72
$(POFILE):	$(POFILES)
3092
959eb57579ac 6224192 Solaris needs unified key management interfaces (Fix _msg build target)
wyllys
parents: 3089
diff changeset
    73
	$(RM) $@; $(CAT) $(POFILES) > $@
3089
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    74
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    75
install:	all $(ROOTDTDS) $(ROOTXML) $(ROOTPROG)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    76
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    77
$(XMLDIR)/%: %
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    78
	$(INS.file)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    79
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    80
$(DTDDIR)/%: %
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    81
	$(INS.file)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    82
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    83
clean:
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    84
	$(RM) $(OBJS)
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    85
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    86
lint : lint_SRCS
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    87
8ddeb2ace8aa PSARC 2005/074 Solaris Key Management Framework
wyllys
parents:
diff changeset
    88
include ../../Makefile.targ