1 #
2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5
6 PROG= ktutil
7
8 OBJS = ktutil.o ktutil_ct.o ktutil_funcs.o
9 SRCS = $(OBJS:.o=.c)
10
11 CLOBBERFILES += $(TESTPROG)
12
13 include ../../../Makefile.cmd
14 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
15
16 POFILE = $(PROG).po
17 POFILES = generic.po
18
19 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
20 -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
21 -I$(SRC)/uts/common/gssapi/include \
22 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
23 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
24 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
25 -DHAVE_TIMEZONE
26 COPTFLAG += $(XESS) #-I$(KINCDIR)
27
28 CERRWARN += -_gcc=-Wno-implicit-function-declaration
29 CERRWARN += -_gcc=-Wno-unused-function
30
31 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
32 LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so
33
34 .KEEP_STATE:
35
36 all: $(PROG)
37
38 ktutil: $(OBJS)
39 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
40 $(POST_PROCESS)
41
42 install: $(KRB5PROG)
43
44 clean:
45 $(RM) $(OBJS)
46
47 lint: lint_SRCS
48
49 include ../../../Makefile.targ
50
|
1 #
2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5 # Copyright (c) 2018, Joyent, Inc.
6
7 PROG= ktutil
8
9 OBJS = ktutil.o ktutil_ct.o ktutil_funcs.o
10 SRCS = $(OBJS:.o=.c)
11
12 CLOBBERFILES += $(TESTPROG)
13
14 include ../../../Makefile.cmd
15 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
16
17 POFILE = $(PROG).po
18 POFILES = generic.po
19
20 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
21 -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
22 -I$(SRC)/uts/common/gssapi/include \
23 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
24 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
25 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
26 -DHAVE_TIMEZONE
27 COPTFLAG += $(XESS) #-I$(KINCDIR)
28
29 CERRWARN += -_gcc=-Wno-implicit-function-declaration
30 CERRWARN += -_gcc=-Wno-unused-function
31
32 # not linted
33 SMATCH=off
34
35 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
36 LDLIBS += $(KMECHLIB) $(ROOT)$(KERBLIBDIR)/libss.so
37
38 .KEEP_STATE:
39
40 all: $(PROG)
41
42 ktutil: $(OBJS)
43 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
44 $(POST_PROCESS)
45
46 install: $(KRB5PROG)
47
48 clean:
49 $(RM) $(OBJS)
50
51 lint: lint_SRCS
52
53 include ../../../Makefile.targ
54
|