1 #
   2 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #
   5 
   6 PROG= kdestroy
   7 
   8 OBJS    = kdestroy.o krpc_sys.o
   9 
  10 SRCS    = kdestroy.c krpc_sys.c
  11 
  12 include ../../Makefile.cmd
  13 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
  14 
  15 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  16 CERRWARN += -_gcc=-Wno-parentheses
  17 
  18 POFILE = kdestroy.po 
  19 POFILES = generic.po 
  20 
  21 CPPFLAGS += -I../../../lib/gss_mechs/mech_krb5/include \
  22                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
  23 
  24 
  25 i386_CPPFLAGS =
  26 sparc_CPPFLAGS += -D$(MACH)
  27 
  28 LDFLAGS += $(KRUNPATH)
  29 LDLIBS += $(KMECHLIB)
  30 
  31 .KEEP_STATE:
  32 all: $(PROG)
  33 
  34 krpc_sys.o: krpc_sys.c 
  35         $(COMPILE.c)  -o  $@ krpc_sys.c
  36         $(POST_PROCESS_O)
  37 
  38 $(PROG):       $(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 
  51 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 
  52         $(RM) $@ 
  53         $(CAT) $(POFILES) > $@ 
  54 
  55 generic.po: 
  56         $(RM) messages.po 
  57         $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)` 
  58         $(SED) "/^domain/d" messages.po > $@ 
  59         $(RM) messages.po 
  60