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
26 SBINPROG = keyserv newkey
27 BINPROG = keylogout keylogin domainname chkey
28
29 MANIFEST= keyserv.xml
30
31 PROG= $(SBINPROG) $(BINPROG)
32
33 HDRS= key_prot.h
34
35 DEFAULTFILES = keyserv.dfl
36
37 KEYSERVOBJS = keyserv.o
38 KEYLOGOUTOBJS = keylogout.o
39 KEYLOGINOBJS = keylogin.o
40 CHKEYOBJS = chkey.o
41 NEWKEYOBJS = newkey.o
42 UPDATEOBJS = update.o
43
44 DOMAINNAMEOBJS = domainname.o
57
58 IBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
59 ISBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
60
61 ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
62
63 $(ROOTBIN)/chkey := FILEMODE= 4555
64
65 $(ROOTKEYSERVDFLT) := FILEMODE= 444
66
67 CPPFLAGS += -I. -I$(SRC)/lib/libnsl/include -I$(SRC)/lib/libsldap/common \
68 -D_REENTRANT
69
70 CERRWARN += -_gcc=-Wno-implicit-function-declaration
71 CERRWARN += -_gcc=-Wno-parentheses
72 CERRWARN += -_gcc=-Wno-uninitialized
73 CERRWARN += -_gcc=-Wno-unused-variable
74 CERRWARN += -_gcc=-Wno-address
75 CERRWARN += -_gcc=-Wno-unused-function
76
77 LDLIBS += -lnsl
78 chkey := LDLIBS += -lsldap
79 keyserv := LDLIBS += -lmp
80 newkey := LDLIBS += -lsldap -lsocket
81
82 .KEEP_STATE:
83
84 all: $(PROG)
85
86 keyserv: $(K_OBJS) $(KEYSERVOBJS)
87 $(LINK.c) $(K_OBJS) $(KEYSERVOBJS) -o $@ $(LDLIBS)
88 $(POST_PROCESS)
89
90 keylogout: $(KEYLOGOUTOBJS)
91 $(LINK.c) $(KEYLOGOUTOBJS) -o $@ $(LDLIBS)
92 $(POST_PROCESS)
93
94 keylogin: $(KEYLOGINOBJS)
95 $(LINK.c) $(KEYLOGINOBJS) -o $@ $(LDLIBS)
96 $(POST_PROCESS)
|
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 (c) 2018, Joyent, Inc.
26
27 SBINPROG = keyserv newkey
28 BINPROG = keylogout keylogin domainname chkey
29
30 MANIFEST= keyserv.xml
31
32 PROG= $(SBINPROG) $(BINPROG)
33
34 HDRS= key_prot.h
35
36 DEFAULTFILES = keyserv.dfl
37
38 KEYSERVOBJS = keyserv.o
39 KEYLOGOUTOBJS = keylogout.o
40 KEYLOGINOBJS = keylogin.o
41 CHKEYOBJS = chkey.o
42 NEWKEYOBJS = newkey.o
43 UPDATEOBJS = update.o
44
45 DOMAINNAMEOBJS = domainname.o
58
59 IBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
60 ISBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
61
62 ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
63
64 $(ROOTBIN)/chkey := FILEMODE= 4555
65
66 $(ROOTKEYSERVDFLT) := FILEMODE= 444
67
68 CPPFLAGS += -I. -I$(SRC)/lib/libnsl/include -I$(SRC)/lib/libsldap/common \
69 -D_REENTRANT
70
71 CERRWARN += -_gcc=-Wno-implicit-function-declaration
72 CERRWARN += -_gcc=-Wno-parentheses
73 CERRWARN += -_gcc=-Wno-uninitialized
74 CERRWARN += -_gcc=-Wno-unused-variable
75 CERRWARN += -_gcc=-Wno-address
76 CERRWARN += -_gcc=-Wno-unused-function
77
78 # not linted
79 SMATCH=off
80
81 LDLIBS += -lnsl
82 chkey := LDLIBS += -lsldap
83 keyserv := LDLIBS += -lmp
84 newkey := LDLIBS += -lsldap -lsocket
85
86 .KEEP_STATE:
87
88 all: $(PROG)
89
90 keyserv: $(K_OBJS) $(KEYSERVOBJS)
91 $(LINK.c) $(K_OBJS) $(KEYSERVOBJS) -o $@ $(LDLIBS)
92 $(POST_PROCESS)
93
94 keylogout: $(KEYLOGOUTOBJS)
95 $(LINK.c) $(KEYLOGOUTOBJS) -o $@ $(LDLIBS)
96 $(POST_PROCESS)
97
98 keylogin: $(KEYLOGINOBJS)
99 $(LINK.c) $(KEYLOGINOBJS) -o $@ $(LDLIBS)
100 $(POST_PROCESS)
|