2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
9 OBJS
= kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o misc.o server_glue_v1.o \
12 DERIVED_OBJS
= iprop_xdr.o
15 SRCS
+= $(DERIVED_OBJS
:.o
=.c
)
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" > $@
22 CLOBBERFILES
+= $(TESTPROG
)
24 include ..
/..
/..
/Makefile.cmd
25 include $(SRC
)/lib
/gss_mechs
/mech_krb5
/Makefile.mech_krb5
30 ROOTMANIFESTDIR
= $(ROOTSVCNETWORKSECURITY
)
32 DEFS
= -DHAVE_LIBSOCKET
=1 -DHAVE_LIBNSL
=1 -DHAVE_COMPILE
=1 -DHAVE_STEP
=1 -DKRB5_KRB4_COMPAT
34 CPPFLAGS
+= -I.
-I
$(SRC
)/uts
/common
/gssapi
/mechs
/krb5
/include \
35 -I
$(SRC
)/uts
/common
/gssapi \
37 -I
$(SRC
)/lib
/krb5
/kadm5 \
38 -I
$(SRC
)/lib
/krb5
/kadm5
/srv \
39 -I
$(SRC
)/lib
/gss_mechs
/mech_krb5
/include \
41 -I
$(SRC
)/uts
/common
/gssapi
/include/ $(DEFS
)
43 COPTFLAG
+= $(XESS
) #-I$(KINCDIR)
45 CERRWARN
+= -_gcc
=-Wno-implicit-function-declaration
46 CERRWARN
+= -_gcc
=-Wno-unused-variable
47 CERRWARN
+= -_gcc
=-Wno-parentheses
48 CERRWARN
+= -_gcc
=-Wno-unused-function
50 LDFLAGS
+= $(KRUNPATH
) $(KERBRUNPATH
)
51 LDLIBS
+= -lgss
-L
$(KRB5LIB
) \
52 -lmech_krb5
-lkadm5srv
-lkdb
-lnsl
-lresolv
-lbsm
-lpam
-lsocket
58 $(PROG
): $(OBJS
) $(DERIVED_OBJS
)
59 $(LINK.c
) $(OBJS
) $(DERIVED_OBJS
) -o
$@
$(LDLIBS
)
62 # Rules to rpcgen-erate derived files from the iprop.x spec file
63 iprop.h
: $(KRB5IPROPDIR
)/iprop.x
65 $(RPCGEN
) -h
$(KRB5IPROPDIR
)/iprop.x
> $@
67 iprop_xdr.c
: iprop.h
$(KRB5IPROPDIR
)/iprop.x
69 $(RPCGEN
) -c
$(KRB5IPROPDIR
)/iprop.x |
$(CMD
)
71 # Explicitly state the dependancy on iprop.h
74 $(KRB5LIBPROG
):= FILEMODE
= 0500
76 install: $(KRB5LIBPROG
) $(ROOTSVCMETHOD
) $(ROOTMANIFEST
)
81 $(RM
) $(OBJS
) $(DERIVED_OBJS
) $(ISRC
)
85 include ..
/..
/..
/Makefile.targ
87 $(POFILE
): $(DERIVED_FILES
) .WAIT
$(POFILES
)
89 $(CAT
) $(POFILES
) > $@
93 $(XGETTEXT
) $(XGETFLAGS
) `$(GREP) -l gettext *.[ch]`
94 $(SED
) "/^domain/d" messages.po
> $@