2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # Copyright (c) 2018, Joyent, Inc.
10 OBJS
= kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o misc.o server_glue_v1.o \
13 DERIVED_OBJS
= iprop_xdr.o
16 SRCS
+= $(DERIVED_OBJS
:.o
=.c
)
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" > $@
23 CLOBBERFILES
+= $(TESTPROG
)
25 include ..
/..
/..
/Makefile.cmd
26 include $(SRC
)/lib
/gss_mechs
/mech_krb5
/Makefile.mech_krb5
31 ROOTMANIFESTDIR
= $(ROOTSVCNETWORKSECURITY
)
33 DEFS
= -DHAVE_LIBSOCKET
=1 -DHAVE_LIBNSL
=1 -DHAVE_COMPILE
=1 -DHAVE_STEP
=1 -DKRB5_KRB4_COMPAT
35 CPPFLAGS
+= -I.
-I
$(SRC
)/uts
/common
/gssapi
/mechs
/krb5
/include \
36 -I
$(SRC
)/uts
/common
/gssapi \
38 -I
$(SRC
)/lib
/krb5
/kadm5 \
39 -I
$(SRC
)/lib
/krb5
/kadm5
/srv \
40 -I
$(SRC
)/lib
/gss_mechs
/mech_krb5
/include \
42 -I
$(SRC
)/uts
/common
/gssapi
/include/ $(DEFS
)
44 COPTFLAG
+= #-I$(KINCDIR)
46 CERRWARN
+= -Wno-implicit-function-declaration
47 CERRWARN
+= -Wno-unused-variable
48 CERRWARN
+= -Wno-parentheses
49 CERRWARN
+= -Wno-unused-function
54 LDFLAGS
+= $(KRUNPATH
) $(KERBRUNPATH
)
55 LDLIBS
+= -lgss
-L
$(KRB5LIB
) \
56 -lmech_krb5
-lkadm5srv
-lkdb
-lresolv
-lpam
62 $(PROG
): $(OBJS
) $(DERIVED_OBJS
)
63 $(LINK.c
) $(OBJS
) $(DERIVED_OBJS
) -o
$@
$(LDLIBS
)
66 # Rules to rpcgen-erate derived files from the iprop.x spec file
67 iprop.h
: $(KRB5IPROPDIR
)/iprop.x
69 $(RPCGEN
) -h
$(KRB5IPROPDIR
)/iprop.x
> $@
71 iprop_xdr.c
: iprop.h
$(KRB5IPROPDIR
)/iprop.x
73 $(RPCGEN
) -c
$(KRB5IPROPDIR
)/iprop.x |
$(CMD
)
75 # Explicitly state the dependancy on iprop.h
78 $(KRB5LIBPROG
):= FILEMODE
= 0500
80 install: $(KRB5LIBPROG
) $(ROOTSVCMETHOD
) $(ROOTMANIFEST
)
85 $(RM
) $(OBJS
) $(DERIVED_OBJS
) $(ISRC
)
88 include ..
/..
/..
/Makefile.targ
90 $(POFILE
): $(DERIVED_FILES
) .WAIT
$(POFILES
)
92 $(CAT
) $(POFILES
) > $@
96 $(XGETTEXT
) $(XGETFLAGS
) `$(GREP) -l gettext *.[ch]`
97 $(SED
) "/^domain/d" messages.po
> $@