dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / keyserv / Makefile
blob037c4444aacc8767f82c27c3d3d364aeed5a1737
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 SBINPROG = keyserv newkey
27 BINPROG = keylogout keylogin domainname chkey
29 MANIFEST= keyserv.xml
31 PROG= $(SBINPROG) $(BINPROG)
33 HDRS= key_prot.h
35 DEFAULTFILES = keyserv.dfl
37 KEYSERVOBJS = keyserv.o gen_dhkeys.o xcrypt.o
38 KEYLOGOUTOBJS = keylogout.o
39 KEYLOGINOBJS = keylogin.o
40 CHKEYOBJS = chkey.o gen_dhkeys.o xcrypt.o
41 NEWKEYOBJS = newkey.o gen_dhkeys.o xcrypt.o
42 UPDATEOBJS = update.o
44 DOMAINNAMEOBJS = domainname.o
45 K_OBJS = setkey.o detach.o key_generic.o keyserv_cache.o
46 CHANGE_OBJS = update.o chkey_common.o
47 OUTSIDE_UTIL_OBJS = selfcheck.o
49 OBJS = $(KEYSERVOBJS) $(KEYLOGOUTOBJS) $(KEYLOGINOBJS) $(CHKEYOBJS) \
50 $(NEWKEYOBJS) $(UPDATEOBJS) $(DOMAINNAMEOBJS) \
51 $(K_OBJS) $(CHANGE_OBJS)
52 SRCS = $(OBJS:.o=.c)
54 SED= sed
56 include ../Makefile.cmd
58 IBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
59 ISBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
61 ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
63 $(ROOTBIN)/chkey := FILEMODE= 4555
65 $(ROOTKEYSERVDFLT) := FILEMODE= 444
67 CPPFLAGS += -I. -I$(SRC)/lib/libc/inc -I$(SRC)/lib/libsldap/common
69 CERRWARN += -Wno-implicit-function-declaration
70 CERRWARN += -Wno-parentheses
71 CERRWARN += -Wno-uninitialized
72 CERRWARN += -Wno-unused-variable
73 CERRWARN += -Wno-address
74 CERRWARN += -Wno-unused-function
76 chkey := LDLIBS += -lsldap -lmp -lmd
77 keyserv := LDLIBS += -lmp -lmd
78 newkey := LDLIBS += -lsldap -lmp -lmd
80 .KEEP_STATE:
82 all: $(PROG)
84 keyserv: $(K_OBJS) $(KEYSERVOBJS)
85 $(LINK.c) $(K_OBJS) $(KEYSERVOBJS) -o $@ $(LDLIBS)
86 $(POST_PROCESS)
88 keylogout: $(KEYLOGOUTOBJS)
89 $(LINK.c) $(KEYLOGOUTOBJS) -o $@ $(LDLIBS)
90 $(POST_PROCESS)
92 keylogin: $(KEYLOGINOBJS)
93 $(LINK.c) $(KEYLOGINOBJS) -o $@ $(LDLIBS)
94 $(POST_PROCESS)
96 chkey: $(CHKEYOBJS) $(CHANGE_OBJS)
97 $(LINK.c) $(CHANGE_OBJS) $(CHKEYOBJS) -o $@ $(LDLIBS)
98 $(POST_PROCESS)
100 newkey:$(CHANGE_OBJS) $(NEWKEYOBJS) $(OUTSIDE_UTIL_OBJS)
101 $(LINK.c) $(CHANGE_OBJS) $(NEWKEYOBJS) $(OUTSIDE_UTIL_OBJS) \
102 -o $@ $(LDLIBS)
103 $(POST_PROCESS)
105 update: $(UPDATEOBJS)
106 $(LINK.c) $(UPDATEOBJS) -o $@ $(LDLIBS)
107 $(POST_PROCESS)
109 domainname: $(DOMAINNAMEOBJS)
110 $(LINK.c) $(DOMAINNAMEOBJS) -o $@ $(LDLIBS)
111 $(POST_PROCESS)
113 selfcheck.o: ../fs.d/nfs/lib/selfcheck.c
114 $(COMPILE.c) ../fs.d/nfs/lib/selfcheck.c
116 install: all $(DIRS) $(IBINPROG) $(ISBINPROG) $(ROOTETCDEFAULTFILES) \
117 $(ROOTMANIFEST)
119 clean:
120 $(RM) $(OBJS) $(OUTSIDE_UTIL_OBJS)
123 check: $(CHKMANIFEST)
125 key_prot.h : $(ROOT)/usr/include/rpcsvc/key_prot.x
126 $(RPCGEN) -h $(ROOT)/usr/include/rpcsvc/key_prot.x > key_prot.h
128 include ../Makefile.targ