2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # Copyright (c) 2018, Joyent, Inc.
10 PROG
=$(PROG1
) $(PROG2
) $(PROG3
)
11 MANIFEST
= krb5_prop.xml
24 SERVEROBJS
= kpropd.o kpropd_rpc.o
25 SERVERSRCS
= kpropd.c kpropd_rpc.c
26 DERIVED_OBJS
= iprop_xdr.o
27 DERIVED_SRCS
= iprop_xdr.c
30 # Definitions needed to rpcgen iprop-related files
31 ISRC
= iprop.h iprop_xdr.c
32 KRB5IPROPDIR
= $(SRC
)/cmd
/krb5
/iprop
33 CMD
= grep
-v
"usr/src/cmd/krb5/iprop" > $@
35 DEFS
= -DHAVE_LIBSOCKET
=1 -DHAVE_LIBNSL
=1 \
39 CLOBBERFILES
+= $(RSRC
)
41 include ..
/..
/Makefile.cmd
42 include $(SRC
)/lib
/gss_mechs
/mech_krb5
/Makefile.mech_krb5
44 ROOTMANIFESTDIR
= $(ROOTSVCNETWORKSECURITY
)
46 TEXT_DOMAIN
= SUNW_OST_OSCMD
50 CFLAGS
+= $(CCOPTS
) $(DEFS
) $(LOCALINCLUDE
)
53 -I
$(SRC
)/lib
/gss_mechs
/mech_krb5
/include \
54 -I
$(SRC
)/lib
/gss_mechs
/mech_krb5
/include/krb5\
56 -I
$(SRC
)/lib
/krb5
/kadm5 \
57 -I
$(SRC
)/uts
/common
/gssapi
/mechs
/krb5
/include
59 CERRWARN
+= -Wno-unused-variable
60 CERRWARN
+= -Wno-unused-function
61 CERRWARN
+= -Wno-implicit-function-declaration
62 CERRWARN
+= -Wno-parentheses
63 CERRWARN
+= -Wno-uninitialized
64 CERRWARN
+= -Wno-unused-value
65 CERRWARN
+= -Wno-address
70 LDFLAGS
+= $(KRUNPATH
) $(KERBRUNPATH
)
71 LDLIBS
+= -L
$(ROOT_KLIBDIR
) -lmech_krb5
72 $(PROG1
) := LDLIBS
+= -L
$(KRB5LIB
) -lkadm5srv
73 $(PROG2
) := LDLIBS
+= -L
$(KRB5LIB
) -lkdb
-lkadm5clnt
79 $(PROG1
): $(CLIENTOBJS
) $(COMMONOBJS
)
80 $(LINK.c
) $(CLIENTOBJS
) $(COMMONOBJS
) -o
$@
$(DEPLIBS
) $(LDFLAGS
) $(LDARGS
) $(LDLIBS
)
83 $(PROG2
): $(SERVEROBJS
) $(DERIVED_OBJS
) $(COMMONOBJS
) $(DEPLIBS
)
84 $(LINK.c
) $(SERVEROBJS
) $(DERIVED_OBJS
) $(COMMONOBJS
) -o
$@
$(DEPLIBS
) $(LDFLAGS
) $(LDARGS
) $(LDLIBS
)
87 # Rules to rpcgen-erate derived files from the iprop.x spec file
88 iprop.h
: $(KRB5IPROPDIR
)/iprop.x
90 $(RPCGEN
) -h
$(KRB5IPROPDIR
)/iprop.x
> $@
92 iprop_xdr.c
: iprop.h
$(KRB5IPROPDIR
)/iprop.x
94 $(RPCGEN
) -c
$(KRB5IPROPDIR
)/iprop.x |
$(CMD
)
96 # Make dependencies explicit so make sees it.
97 $(KRB5LIB
)/$(PROG3
): $(PROG3
)
100 install: $(KRB5LIBPROG
) $(ROOTSVCMETHOD
) $(ROOTMANIFEST
)
102 check: $(CHKMANIFEST
)
106 $(RM
) $(CLIENTOBJS
) $(SERVEROBJS
) $(DERIVED_OBJS
) $(COMMONOBJS
) $(PROG
) $(ISRC
)
108 include ..
/..
/Makefile.targ
110 $(POFILE
): $(DERIVED_FILES
) .WAIT
$(POFILES
)
112 $(CAT
) $(POFILES
) > $@
116 $(XGETTEXT
) $(XGETFLAGS
) `$(GREP) -l gettext *.[ch]`
117 $(SED
) "/^domain/d" messages.po
> $@