5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Makefile for policy testing code
26 #
27
28 PROG = kmfcfg
29
30 OBJS = kmfcfg.o \
31 list.o \
32 delete.o \
33 util.o \
34 create.o \
35 modify.o \
36 export.o \
37 import.o \
38 install.o \
39 uninstall.o
40
41 include ../../Makefile.cmd
42
43 KMFDIR = $(SRC)/lib/libkmf
44 SRCS = $(OBJS:%.o=%.c)
45
46 POFILES = $(OBJS:%.o=%.po)
47 POFILE = $(PROG)_msg.po
48 MSGFILES = $(SRCS:%.c=%.i)
49
50 CPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
51 -I$(KMFDIR)/include -I.
52 LDLIBS += -L$(ROOT)/usr/lib -lkmf -lcryptoutil
53 XMLLIB = -lxml2
54
55 .KEEP_STATE:
56
57 XMLDIR= $(ROOT)/etc/security
58 DTDDIR= $(ROOT)/usr/share/lib/xml/dtd
59 ROOTDTDS= $(DTDDIR)/kmfpolicy.dtd
60 ROOTXML= $(XMLDIR)/kmfpolicy.xml
61
62 $(ROOTDTDS) := FILEMODE = 444
63
64 $(ROOTXML) := FILEMODE = 644
65
66 all: $(PROG) $(ROOTDTDS)
67
68 $(PROG): $(OBJS)
69 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(XMLLIB)
70 $(POST_PROCESS)
71
72 $(POFILE): $(POFILES)
73 $(RM) $@; $(CAT) $(POFILES) > $@
74
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2017 RackTop Systems.
26 #
27 # Makefile for policy testing code
28 #
29
30 PROG = kmfcfg
31
32 OBJS = kmfcfg.o \
33 list.o \
34 delete.o \
35 util.o \
36 create.o \
37 modify.o \
38 export.o \
39 import.o \
40 install.o \
41 uninstall.o
42
43 include ../../Makefile.cmd
44
45 KMFDIR = $(SRC)/lib/libkmf
46 SRCS = $(OBJS:%.o=%.c)
47
48 POFILES = $(OBJS:%.o=%.po)
49 POFILE = $(PROG)_msg.po
50 MSGFILES = $(SRCS:%.c=%.i)
51
52 CPPFLAGS += -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
53 -I$(KMFDIR)/include -I.
54 LDLIBS += -L$(ROOT)/usr/lib -lkmf -lcryptoutil
55 XMLLIB = -lxml2
56
57 # Allow libxml2 to be taken from outside the proto area.
58 $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libxml2.so
59
60 .KEEP_STATE:
61
62 XMLDIR= $(ROOT)/etc/security
63 DTDDIR= $(ROOT)/usr/share/lib/xml/dtd
64 ROOTDTDS= $(DTDDIR)/kmfpolicy.dtd
65 ROOTXML= $(XMLDIR)/kmfpolicy.xml
66
67 $(ROOTDTDS) := FILEMODE = 444
68
69 $(ROOTXML) := FILEMODE = 644
70
71 all: $(PROG) $(ROOTDTDS)
72
73 $(PROG): $(OBJS)
74 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(XMLLIB)
75 $(POST_PROCESS)
76
77 $(POFILE): $(POFILES)
78 $(RM) $@; $(CAT) $(POFILES) > $@
79
|