Makefile revision 494f7e12a62129ef191a15f9dfde6b7abe3bf510
486N/A#
486N/A# CDDL HEADER START
486N/A#
486N/A# The contents of this file are subject to the terms of the
486N/A# Common Development and Distribution License (the "License").
486N/A# You may not use this file except in compliance with the License.
486N/A#
486N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
486N/A# or http://www.opensolaris.org/os/licensing.
486N/A# See the License for the specific language governing permissions
486N/A# and limitations under the License.
486N/A#
486N/A# When distributing Covered Code, include this CDDL HEADER in each
486N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
486N/A# If applicable, add the following below this CDDL HEADER, with the
486N/A# fields enclosed by brackets "[]" replaced with your own identifying
486N/A# information: Portions Copyright [yyyy] [name of copyright owner]
486N/A#
486N/A# CDDL HEADER END
873N/A#
486N/A#
486N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
486N/A# Use is subject to license terms.
486N/A#
486N/A# Makefile for policy testing code
873N/A#
486N/A
486N/APROG = kmfcfg
486N/A
486N/AOBJS = kmfcfg.o \
486N/A list.o \
486N/A delete.o \
486N/A util.o \
486N/A create.o \
486N/A modify.o \
486N/A export.o \
486N/A import.o \
619N/A install.o \
619N/A uninstall.o
619N/A
619N/Ainclude ../../Makefile.cmd
619N/A
619N/AKMFDIR = $(SRC)/lib/libkmf
619N/ASRCS = $(OBJS:%.o=%.c)
619N/A
619N/APOFILES = $(OBJS:%.o=%.po)
619N/APOFILE = $(PROG)_msg.po
619N/AMSGFILES = $(SRCS:%.c=%.i)
619N/A
619N/ACPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
619N/A -I$(KMFDIR)/include -I.
619N/ALDLIBS += -L$(ROOT)/usr/lib -lkmf -lcryptoutil
486N/AXMLLIB = -lxml2
486N/A
486N/A.KEEP_STATE:
486N/A
486N/AXMLDIR= $(ROOT)/etc/security
486N/ADTDDIR= $(ROOT)/usr/share/lib/xml/dtd
619N/AROOTDTDS= $(DTDDIR)/kmfpolicy.dtd
486N/AROOTXML= $(XMLDIR)/kmfpolicy.xml
619N/A
619N/A$(ROOTDTDS) := FILEMODE = 444
486N/A
486N/A$(ROOTXML) := FILEMODE = 644
619N/A
619N/Aall: $(PROG) $(ROOTDTDS)
619N/A
619N/A$(PROG): $(OBJS)
619N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(XMLLIB)
619N/A $(POST_PROCESS)
619N/A
619N/A$(POFILE): $(POFILES)
486N/A $(RM) $@; $(CAT) $(POFILES) > $@
486N/A
619N/Ainstall: all $(ROOTDTDS) $(ROOTXML) $(ROOTPROG)
486N/A
486N/A$(XMLDIR)/%: %
486N/A $(INS.file)
486N/A
486N/A$(DTDDIR)/%: %
486N/A $(INS.file)
486N/A
486N/Aclean:
486N/A $(RM) $(OBJS)
486N/A
486N/Alint : lint_SRCS
486N/A
486N/Ainclude ../../Makefile.targ
486N/A