1*99ebb4caSwyllys# 2*99ebb4caSwyllys# CDDL HEADER START 3*99ebb4caSwyllys# 4*99ebb4caSwyllys# The contents of this file are subject to the terms of the 5*99ebb4caSwyllys# Common Development and Distribution License (the "License"). 6*99ebb4caSwyllys# You may not use this file except in compliance with the License. 7*99ebb4caSwyllys# 8*99ebb4caSwyllys# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*99ebb4caSwyllys# or http://www.opensolaris.org/os/licensing. 10*99ebb4caSwyllys# See the License for the specific language governing permissions 11*99ebb4caSwyllys# and limitations under the License. 12*99ebb4caSwyllys# 13*99ebb4caSwyllys# When distributing Covered Code, include this CDDL HEADER in each 14*99ebb4caSwyllys# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*99ebb4caSwyllys# If applicable, add the following below this CDDL HEADER, with the 16*99ebb4caSwyllys# fields enclosed by brackets "[]" replaced with your own identifying 17*99ebb4caSwyllys# information: Portions Copyright [yyyy] [name of copyright owner] 18*99ebb4caSwyllys# 19*99ebb4caSwyllys# CDDL HEADER END 20*99ebb4caSwyllys# 21*99ebb4caSwyllys# 22*99ebb4caSwyllys# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*99ebb4caSwyllys# Use is subject to license terms. 24*99ebb4caSwyllys# 25*99ebb4caSwyllys# ident "%Z%%M% %I% %E% SMI" 26*99ebb4caSwyllys# 27*99ebb4caSwyllys# Makefile for policy testing code 28*99ebb4caSwyllys# 29*99ebb4caSwyllys 30*99ebb4caSwyllysPROG = kmfcfg 31*99ebb4caSwyllys 32*99ebb4caSwyllysOBJS = kmfcfg.o \ 33*99ebb4caSwyllys list.o \ 34*99ebb4caSwyllys delete.o \ 35*99ebb4caSwyllys util.o \ 36*99ebb4caSwyllys create.o \ 37*99ebb4caSwyllys modify.o \ 38*99ebb4caSwyllys export.o \ 39*99ebb4caSwyllys import.o 40*99ebb4caSwyllys 41*99ebb4caSwyllysinclude ../../Makefile.cmd 42*99ebb4caSwyllys 43*99ebb4caSwyllysKMFDIR = $(SRC)/lib/libkmf 44*99ebb4caSwyllysSRCS = $(OBJS:%.o=%.c) 45*99ebb4caSwyllys 46*99ebb4caSwyllysPOFILES = $(OBJS:%.o=%.po) 47*99ebb4caSwyllysPOFILE = $(PROG)_msg.po 48*99ebb4caSwyllysMSGFILES = $(SRCS:%.c=%.i) 49*99ebb4caSwyllys 50*99ebb4caSwyllysCPPFLAGS += -I/usr/include/libxml2 -I$(KMFDIR)/include -I. 51*99ebb4caSwyllysLDLIBS += -L$(ROOT)/usr/lib -lkmf -lcryptoutil 52*99ebb4caSwyllysXMLLIB = -lxml2 53*99ebb4caSwyllys 54*99ebb4caSwyllys.KEEP_STATE: 55*99ebb4caSwyllys 56*99ebb4caSwyllysXMLDIR= $(ROOT)/etc/security 57*99ebb4caSwyllysDTDDIR= $(ROOT)/usr/share/lib/xml/dtd 58*99ebb4caSwyllysROOTDTDS= $(DTDDIR)/kmfpolicy.dtd 59*99ebb4caSwyllysROOTXML= $(XMLDIR)/kmfpolicy.xml 60*99ebb4caSwyllys 61*99ebb4caSwyllys$(ROOTDTDS) := FILEMODE = 444 62*99ebb4caSwyllys$(ROOTDTDS) := OWNER = root 63*99ebb4caSwyllys$(ROOTDTDS) := GROUP = bin 64*99ebb4caSwyllys 65*99ebb4caSwyllys$(ROOTXML) := FILEMODE = 644 66*99ebb4caSwyllys$(ROOTXML) := OWNER = root 67*99ebb4caSwyllys$(ROOTXML) := GROUP = bin 68*99ebb4caSwyllys 69*99ebb4caSwyllysall: $(PROG) $(ROOTDTDS) 70*99ebb4caSwyllys 71*99ebb4caSwyllys$(PROG): $(OBJS) 72*99ebb4caSwyllys $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(XMLLIB) 73*99ebb4caSwyllys $(POST_PROCESS) 74*99ebb4caSwyllys 75*99ebb4caSwyllys$(POFILE): $(POFILES) 76*99ebb4caSwyllys $(BUILDPO.pofiles) 77*99ebb4caSwyllys 78*99ebb4caSwyllysinstall: all $(ROOTDTDS) $(ROOTXML) $(ROOTPROG) 79*99ebb4caSwyllys 80*99ebb4caSwyllys$(XMLDIR)/%: % 81*99ebb4caSwyllys $(INS.file) 82*99ebb4caSwyllys 83*99ebb4caSwyllys$(DTDDIR)/%: % 84*99ebb4caSwyllys $(INS.file) 85*99ebb4caSwyllys 86*99ebb4caSwyllysclean: 87*99ebb4caSwyllys $(RM) $(OBJS) 88*99ebb4caSwyllys 89*99ebb4caSwyllyslint : lint_SRCS 90*99ebb4caSwyllys 91*99ebb4caSwyllysinclude ../../Makefile.targ 92