1# 2# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# ident "%Z%%M% %I% %E% SMI" 6# 7 8PROG= kdestroy 9 10OBJS = kdestroy.o kwarnd_clnt_stubs.o kwarnd_clnt.o kwarnd_handle.o kwarnd_xdr.o krpc_sys.o 11 12SRCS = kdestroy.c krpc_sys.c \ 13 ../kwarn/kwarnd_clnt_stubs.c \ 14 ../kwarn/kwarnd_clnt.c \ 15 ../kwarn/kwarnd_handle.c \ 16 ../kwarn/kwarnd_xdr.c 17 18include ../../Makefile.cmd 19include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 20 21POFILE = kdestroy.po 22POFILES = generic.po 23 24CPPFLAGS += -I../../../lib/gss_mechs/mech_krb5/include \ 25 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 26 -I../kwarn 27 28i386_CPPFLAGS = 29sparc_CPPFLAGS += -D$(MACH) 30 31LDFLAGS += $(KRUNPATH) 32LDLIBS += $(KMECHLIB) -lnsl 33 34.KEEP_STATE: 35all: $(PROG) 36 37krpc_sys.o: krpc_sys.c 38 $(COMPILE.c) -o $@ krpc_sys.c 39 $(POST_PROCESS_O) 40 41%.o: ../kwarn/%.c 42 $(COMPILE.c) -o $@ $< 43 $(POST_PROCESS_O) 44 45$(PROG): $(OBJS) 46 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 47 $(POST_PROCESS) 48 49install: $(KRB5PROG) 50 51clean: 52 $(RM) $(OBJS) 53 54lint: lint_SRCS 55 56include ../../Makefile.targ 57 58$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 59 $(RM) $@ 60 $(CAT) $(POFILES) > $@ 61 62generic.po: 63 $(RM) messages.po 64 $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)` 65 $(SED) "/^domain/d" messages.po > $@ 66 $(RM) messages.po 67 68