Print this page
10080 smatch Makefile changes for usr/src/cmd
   1 #
   2 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #

   5 
   6 PROG= kinit
   7 
   8 OBJS    = kinit.o
   9 SRCS    = kinit.c
  10 
  11 DEFS =  -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 
  12 
  13 include ../../Makefile.cmd
  14 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
  15 
  16 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  17 CERRWARN += -_gcc=-Wno-unused-function
  18 CERRWARN += -_gcc=-Wno-parentheses
  19 



  20 POFILE = kinit.po
  21 POFILES = generic.po
  22 
  23 DEFS = -DHAVE_PWD_H
  24 
  25 CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
  26                 -I$(SRC)/lib/gss_mechs/mech_krb5 \
  27                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  28                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  29                 $(DEFS)
  30 
  31 LDFLAGS += $(KRUNPATH)
  32 LDLIBS += $(KMECHLIB)
  33 
  34 .KEEP_STATE:
  35 
  36 all: $(PROG)
  37 
  38 $(PROG):       $(OBJS)  
  39         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
   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= kinit
   8 
   9 OBJS    = kinit.o
  10 SRCS    = kinit.c
  11 
  12 DEFS =  -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 
  13 
  14 include ../../Makefile.cmd
  15 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
  16 
  17 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  18 CERRWARN += -_gcc=-Wno-unused-function
  19 CERRWARN += -_gcc=-Wno-parentheses
  20 
  21 # not linted
  22 SMATCH=off
  23 
  24 POFILE = kinit.po
  25 POFILES = generic.po
  26 
  27 DEFS = -DHAVE_PWD_H
  28 
  29 CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
  30                 -I$(SRC)/lib/gss_mechs/mech_krb5 \
  31                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  32                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  33                 $(DEFS)
  34 
  35 LDFLAGS += $(KRUNPATH)
  36 LDLIBS += $(KMECHLIB)
  37 
  38 .KEEP_STATE:
  39 
  40 all: $(PROG)
  41 
  42 $(PROG):       $(OBJS)  
  43         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)