1# 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# ident "%Z%%M% %I% %E% SMI" 6# 7 8PROG= kpasswd 9 10OBJS = tty_kpasswd.o kpasswd.o 11SRCS = $(OBJS:.o=.c) 12 13CLOBBERFILES += $(TESTPROG) 14 15include ../../../Makefile.cmd 16include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 17 18POFILE = $(PROG).po 19POFILES = generic.po 20 21# 22# Override $ROOTLIB 23# 24KRB5LIBDIR= $(ROOT)$(KERBLIBDIR) 25 26CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 27 -I$(SRC)/uts/common/gssapi/include/ \ 28 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 29 -I$(SRC)/lib/krb5 \ 30 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \ 31 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \ 32 -DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2 33 34COPTFLAG += $(XESS) #-I$(KINCDIR) 35 36LDFLAGS += $(KRUNPATH) $(KERBRUNPATH) 37LDLIBS += -L $(KRB5LIBDIR) 38LDLIBS += $(KMECHLIB) $(KCLNTLIB) 39 40.KEEP_STATE: 41 42all: $(PROG) 43 44$(PROG): $(OBJS) 45 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 46 $(POST_PROCESS) 47 48install: $(KRB5PROG) 49 50clean: 51 $(RM) $(OBJS) 52 53lint: lint_SRCS 54 55include ../../../Makefile.targ 56 57$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 58 $(RM) $@ 59 $(CAT) $(POFILES) > $@ 60 $(RM) generic.po 61 62generic.po: 63 $(RM) messages.po 64 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]` 65 $(SED) "/^domain/d" messages.po > $@ 66 $(RM) messages.po 67 68