1 #
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5
6 PROG= kadmind
7 MANIFEST= kadmin.xml
8
9 OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o misc.o server_glue_v1.o \
10 ipropd_svc.o
11
12 DERIVED_OBJS= iprop_xdr.o
13
14 SRCS= $(OBJS:.o=.c)
15 SRCS+= $(DERIVED_OBJS:.o=.c)
16
17 # Definitions needed to rpcgen iprop-related files
18 ISRC= iprop.h iprop_xdr.c
19 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
20 CMD= grep -v "usr/src/cmd/krb5/iprop" > $@
21
22 CLOBBERFILES += $(TESTPROG)
23
24 include ../../../Makefile.cmd
30 ROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
31
32 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 -DKRB5_KRB4_COMPAT
33
34 CPPFLAGS += -I. -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
35 -I$(SRC)/uts/common/gssapi \
36 -I$(SRC)/lib/krb5 \
37 -I$(SRC)/lib/krb5/kadm5 \
38 -I$(SRC)/lib/krb5/kadm5/srv \
39 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
40 -I$(KRB5IPROPDIR) \
41 -I$(SRC)/uts/common/gssapi/include/ $(DEFS)
42
43 COPTFLAG += $(XESS) #-I$(KINCDIR)
44
45 CERRWARN += -_gcc=-Wno-implicit-function-declaration
46 CERRWARN += -_gcc=-Wno-unused-variable
47 CERRWARN += -_gcc=-Wno-parentheses
48 CERRWARN += -_gcc=-Wno-unused-function
49
50 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
51 LDLIBS += -lgss -L$(KRB5LIB) \
52 -lmech_krb5 -lkadm5srv -lkdb -lnsl -lresolv -lbsm -lpam -lsocket
53
54 .KEEP_STATE:
55
56 all: $(PROG)
57
58 $(PROG): $(OBJS) $(DERIVED_OBJS)
59 $(LINK.c) $(OBJS) $(DERIVED_OBJS) -o $@ $(LDLIBS)
60 $(POST_PROCESS)
61
62 # Rules to rpcgen-erate derived files from the iprop.x spec file
63 iprop.h: $(KRB5IPROPDIR)/iprop.x
64 $(RM) $@
65 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
66
67 iprop_xdr.c: iprop.h $(KRB5IPROPDIR)/iprop.x
68 $(RM) $@
69 $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
|
1 #
2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # Copyright (c) 2018, Joyent, Inc.
6
7 PROG= kadmind
8 MANIFEST= kadmin.xml
9
10 OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o misc.o server_glue_v1.o \
11 ipropd_svc.o
12
13 DERIVED_OBJS= iprop_xdr.o
14
15 SRCS= $(OBJS:.o=.c)
16 SRCS+= $(DERIVED_OBJS:.o=.c)
17
18 # Definitions needed to rpcgen iprop-related files
19 ISRC= iprop.h iprop_xdr.c
20 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
21 CMD= grep -v "usr/src/cmd/krb5/iprop" > $@
22
23 CLOBBERFILES += $(TESTPROG)
24
25 include ../../../Makefile.cmd
31 ROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
32
33 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 -DKRB5_KRB4_COMPAT
34
35 CPPFLAGS += -I. -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
36 -I$(SRC)/uts/common/gssapi \
37 -I$(SRC)/lib/krb5 \
38 -I$(SRC)/lib/krb5/kadm5 \
39 -I$(SRC)/lib/krb5/kadm5/srv \
40 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
41 -I$(KRB5IPROPDIR) \
42 -I$(SRC)/uts/common/gssapi/include/ $(DEFS)
43
44 COPTFLAG += $(XESS) #-I$(KINCDIR)
45
46 CERRWARN += -_gcc=-Wno-implicit-function-declaration
47 CERRWARN += -_gcc=-Wno-unused-variable
48 CERRWARN += -_gcc=-Wno-parentheses
49 CERRWARN += -_gcc=-Wno-unused-function
50
51 # not linted
52 SMATCH=off
53
54 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
55 LDLIBS += -lgss -L$(KRB5LIB) \
56 -lmech_krb5 -lkadm5srv -lkdb -lnsl -lresolv -lbsm -lpam -lsocket
57
58 .KEEP_STATE:
59
60 all: $(PROG)
61
62 $(PROG): $(OBJS) $(DERIVED_OBJS)
63 $(LINK.c) $(OBJS) $(DERIVED_OBJS) -o $@ $(LDLIBS)
64 $(POST_PROCESS)
65
66 # Rules to rpcgen-erate derived files from the iprop.x spec file
67 iprop.h: $(KRB5IPROPDIR)/iprop.x
68 $(RM) $@
69 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
70
71 iprop_xdr.c: iprop.h $(KRB5IPROPDIR)/iprop.x
72 $(RM) $@
73 $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
|