0
|
1 #
|
|
2 # CDDL HEADER START
|
|
3 #
|
|
4 # The contents of this file are subject to the terms of the
|
|
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 #
|
|
23 #
|
|
24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
|
|
25 # Use is subject to license terms.
|
|
26 #
|
|
27 # ident "@(#)Makefile 1.1 07/05/14 SMI"
|
|
28 #
|
|
29
|
|
30 PROG= ikeadm ipsecalgs ipsecconf ipseckey ikecert
|
|
31 SOCKETPROG= ipsecalgs ipsecconf ipseckey
|
|
32 SRCS= ikeadm.c ipsecalgs.c ipsecconf.c ipseckey.c
|
|
33
|
|
34 include ../../../Makefile.cmd
|
|
35
|
|
36 MANIFEST= ipsecalgs.xml policy.xml manual-key.xml
|
|
37
|
|
38 ROOTMANIFESTDIR= $(ROOTSVCNETWORKIPSEC)
|
|
39 $(ROOTMANIFEST) := FILEMODE= 444
|
|
40 include ../../Makefile.cmd-inet
|
|
41
|
|
42 COMMONSRCS= $(CMDINETCOMMONDIR)/$(COMMONOBJS:.o=.c)
|
|
43 SRCS+= $(COMMONSRCS)
|
|
44
|
|
45 #
|
|
46 # Message catalog
|
|
47 #
|
|
48 POFILES= ikeadm.po ipsecalgs.po ipsecconf.po ipseckey.po
|
|
49 POFILE= ipsecutils.po
|
|
50
|
|
51 all:= TARGET= all
|
|
52 install:= TARGET= install
|
|
53 clean:= TARGET= clean
|
|
54 clobber:= TARGET= clobber
|
|
55 lint:= TARGET= lint
|
|
56
|
|
57 CLOBBERFILES += $(PROG) $(POFILES)
|
|
58 CLEANFILES += $(PROG) $(POFILES)
|
|
59
|
|
60 CPPFLAGS += -DSYSV -DBSD_COMP -I$(CMDINETCOMMONDIR) -I.
|
|
61
|
|
62 CFLAGS += $(XSTRCONST)
|
|
63 LDLIBS += -lipsecutil -lnsl
|
|
64 $(SOCKETPROG) := LDLIBS += -lsocket
|
|
65
|
|
66 .KEEP_STATE:
|
|
67
|
|
68 .PARALLEL:
|
|
69
|
|
70 all: $(PROG)
|
|
71
|
|
72 #
|
|
73 # message catalog
|
|
74 #
|
|
75
|
|
76 $(POFILE): $(POFILES)
|
|
77 $(RM) $@
|
|
78 cat $(POFILES) >> $@
|
|
79
|
|
80 $(COMMONOBJS): $(COMMONSRCS)
|
|
81 $(COMPILE.c) $(COMMONSRCS)
|
|
82
|
|
83 $(ROOTUSRSBINLINKS):
|
|
84 -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@
|
|
85
|
|
86 install: $(PROG) $(ROOTFS_PROG) .WAIT $(ROOTUSRSBINPROG) \
|
|
87 $(ROOTUSRSBINLINKS) $(ROOTETCDEFAULTFILES) $(ROOTMANIFEST)
|
|
88
|
|
89 lint:
|
|
90 $(LINT.c) -erroff=E_NAME_USED_NOT_DEF2 \
|
|
91 -erroff=E_NAME_MULTIPLY_DEF2 $(SRCS) $(LDLIBS)
|
|
92
|
|
93 check: $(CHKMANIFEST)
|
|
94
|
|
95 clean:
|
|
96 -$(RM) $(CLEANFILES)
|
|
97
|
|
98
|
|
99 include ../../../Makefile.targ
|
|
100
|