1 #
2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
4 #
5
6 PROG= kpasswd
7
8 OBJS = tty_kpasswd.o kpasswd.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 #
20 # Override $ROOTLIB
21 #
22 KRB5LIBDIR= $(ROOT)$(KERBLIBDIR)
23
24 CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
25 -I$(SRC)/uts/common/gssapi/include/ \
26 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
27 -I$(SRC)/lib/krb5 \
28 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
29 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
30 -DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2
31
32 COPTFLAG += $(XESS) #-I$(KINCDIR)
33
34 CERRWARN += -_gcc=-Wno-parentheses
35 CERRWARN += -_gcc=-Wno-unused-variable
36 CERRWARN += -_gcc=-Wno-unused-function
37
38 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
39 LDLIBS += -L $(KRB5LIBDIR)
40 LDLIBS += $(KMECHLIB) $(KCLNTLIB)
41
42 .KEEP_STATE:
43
44 all: $(PROG)
45
46 $(PROG): $(OBJS)
47 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
48 $(POST_PROCESS)
49
50 install: $(KRB5PROG)
51
52 clean:
53 $(RM) $(OBJS)
54
55 lint: lint_SRCS
56
57 include ../../../Makefile.targ
|
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= kpasswd
8
9 OBJS = tty_kpasswd.o kpasswd.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 #
21 # Override $ROOTLIB
22 #
23 KRB5LIBDIR= $(ROOT)$(KERBLIBDIR)
24
25 CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
26 -I$(SRC)/uts/common/gssapi/include/ \
27 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
28 -I$(SRC)/lib/krb5 \
29 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
30 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
31 -DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2
32
33 COPTFLAG += $(XESS) #-I$(KINCDIR)
34
35 CERRWARN += -_gcc=-Wno-parentheses
36 CERRWARN += -_gcc=-Wno-unused-variable
37 CERRWARN += -_gcc=-Wno-unused-function
38
39 # not linted
40 SMATCH=off
41
42 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
43 LDLIBS += -L $(KRB5LIBDIR)
44 LDLIBS += $(KMECHLIB) $(KCLNTLIB)
45
46 .KEEP_STATE:
47
48 all: $(PROG)
49
50 $(PROG): $(OBJS)
51 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
52 $(POST_PROCESS)
53
54 install: $(KRB5PROG)
55
56 clean:
57 $(RM) $(OBJS)
58
59 lint: lint_SRCS
60
61 include ../../../Makefile.targ
|