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