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]
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # Copyright (c) 2018, Joyent, Inc.
31 MANIFEST
= ktkt_warn.xml
33 KWARNDOBJS
= kwarnd.o kwarnd_svc.o kwarnd_proc.o kwarnd_generic.o kwarnd_send.o
34 KWARNTOBJS
= kwarndtest.o
38 OBJS
= $(KWARNDOBJS
) $(KWARNTOBJS
) $(G_OBJS
)
40 RSRC
= kwarnd_xdr.c kwarnd_svc.c kwarnd.h
42 CLOBBERFILES
+= $(TESTPROG
)
44 include ..
/..
/Makefile.cmd
45 include $(SRC
)/lib
/gss_mechs
/mech_krb5
/Makefile.mech_krb5
47 ROOTMANIFESTDIR
= $(ROOTSVCNETWORKSECURITY
)
52 COPTFLAG
+= #-I$(KINCDIR)
54 CERRWARN
+= -Wno-unused-variable
55 CERRWARN
+= -Wno-unused-function
56 CERRWARN
+= -Wno-implicit-function-declaration
57 CERRWARN
+= -Wno-parentheses
62 CPPFLAGS
+= -I..
/..
/lib
/gss_mechs
/mech_krb5
/include \
63 -I
$(SRC
)/lib
/gss_mechs
/mech_krb5 \
64 -I
$(SRC
)/lib
/gss_mechs
/mech_krb5
/include \
65 -I
$(SRC
)/uts
/common
/gssapi
/mechs
/krb5
/include
67 ktkt_warnd
:= MAPFILES
= $(MAPFILE.INT
) $(MAPFILE.NGB
)
68 ktkt_warnd
:= LDFLAGS
+= $(KRUNPATH
) $(MAPFILES
:%=-Wl
,-M
%)
70 LDFLAGS
+= $(KRUNPATH
)
75 all: $(PROG
) $(TESTPROG
)
77 $(PROG
): $(G_OBJS
) $(KWARNDOBJS
) $$(MAPFILES
)
78 $(LINK.c
) $(KWARNDOBJS
) $(G_OBJS
) -o
$@
$(LDLIBS
)
81 # the client entry points (kwarn_*_warning) are now avail in mech_krb5.so
82 $(TESTPROG
): $(KWARNTOBJS
)
83 $(LINK.c
) $(KWARNTOBJS
) -o
$@
$(LDLIBS
)
86 # Rules to generate derived rpcgen files from kwarnd.x spec file.
90 $(RPCGEN
) -M
-h kwarnd.x
> $@
92 kwarnd_svc.c
: kwarnd.x
94 $(RPCGEN
) -M
-m kwarnd.x
> $@
96 kwarnd_xdr.c
: kwarnd.x
98 $(RPCGEN
) -M
-c kwarnd.x
> $@
102 # note that nightly depends on having all of the derived
103 # .c files built here on 'make install', even though this
104 # module doesn't use all of those files.
105 install: $(KRB5LIBPROG
) $(RSRC
) $(ROOTMANIFEST
)
107 check: $(CHKMANIFEST
)
110 $(RM
) $(OBJS
) $(RSRC
)
113 include ..
/..
/Makefile.targ
115 #additional dependencies
122 $(POFILE
): $(DERIVED_FILES
) .WAIT
$(POFILES
)
124 $(CAT
) $(POFILES
) > $@
128 $(XGETTEXT
) $(XGETFLAGS
) `$(GREP) -l gettext *.[ch]`
129 $(SED
) "/^domain/d" messages.po
> $@