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 PROG1=kprop
   7 PROG2=kpropd
   8 PROG3=kprop_script
   9 PROG=$(PROG1) $(PROG2) $(PROG3)
  10 MANIFEST=       krb5_prop.xml
  11 
  12 OBJS    = \
  13         kprop.o\
  14         utils.o\
  15         kpropd.o \
  16         kpropd_rpc.o \
  17         iprop_xdr.o
  18 
  19 COMMONOBJS= utils.o
  20 COMMONSRCS= utils.c
  21 CLIENTOBJS= kprop.o
  22 CLIENTSRCS= kprop.c
  23 SERVEROBJS= kpropd.o kpropd_rpc.o
  24 SERVERSRCS= kpropd.c kpropd_rpc.c


  46 POFILE = kprop.po
  47 POFILES = generic.po
  48 
  49 CFLAGS += $(XESS) $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
  50 CPPFLAGS +=     -I. \
  51                 -I$(KRB5IPROPDIR) \
  52                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  53                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\
  54                 -I$(SRC)/lib/krb5 \
  55                 -I$(SRC)/lib/krb5/kadm5 \
  56                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
  57 
  58 CERRWARN +=     -_gcc=-Wno-unused-variable
  59 CERRWARN +=     -_gcc=-Wno-unused-function
  60 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  61 CERRWARN +=     -_gcc=-Wno-parentheses
  62 CERRWARN +=     -_gcc=-Wno-uninitialized
  63 CERRWARN +=     -_gcc=-Wno-unused-value
  64 CERRWARN +=     -_gcc=-Wno-address
  65 



  66 LDFLAGS +=      $(KRUNPATH) $(KERBRUNPATH)
  67 LDLIBS +=       -lmech_krb5 -lsocket
  68 $(PROG1) :=     LDLIBS += -L$(KRB5LIB) -lkadm5srv
  69 $(PROG2) :=     LDLIBS += -L$(KRB5LIB) -lnsl -lkdb -lkadm5clnt
  70 
  71 .KEEP_STATE:
  72 
  73 all: $(PROG)
  74 
  75 $(PROG1): $(CLIENTOBJS) $(COMMONOBJS)
  76         $(LINK.c) $(CLIENTOBJS) $(COMMONOBJS) -o $@ $(DEPLIBS) $(LDFLAGS) $(LDARGS) $(LDLIBS)
  77         $(POST_PROCESS)
  78 
  79 $(PROG2): $(SERVEROBJS) $(DERIVED_OBJS) $(COMMONOBJS) $(DEPLIBS)
  80         $(LINK.c) $(SERVEROBJS) $(DERIVED_OBJS) $(COMMONOBJS) -o $@ $(DEPLIBS) $(LDFLAGS) $(LDARGS) $(LDLIBS)
  81         $(POST_PROCESS)
  82 
  83 # Rules to rpcgen-erate derived files from the iprop.x spec file
  84 iprop.h:        $(KRB5IPROPDIR)/iprop.x
  85         $(RM) $@


   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 PROG1=kprop
   8 PROG2=kpropd
   9 PROG3=kprop_script
  10 PROG=$(PROG1) $(PROG2) $(PROG3)
  11 MANIFEST=       krb5_prop.xml
  12 
  13 OBJS    = \
  14         kprop.o\
  15         utils.o\
  16         kpropd.o \
  17         kpropd_rpc.o \
  18         iprop_xdr.o
  19 
  20 COMMONOBJS= utils.o
  21 COMMONSRCS= utils.c
  22 CLIENTOBJS= kprop.o
  23 CLIENTSRCS= kprop.c
  24 SERVEROBJS= kpropd.o kpropd_rpc.o
  25 SERVERSRCS= kpropd.c kpropd_rpc.c


  47 POFILE = kprop.po
  48 POFILES = generic.po
  49 
  50 CFLAGS += $(XESS) $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
  51 CPPFLAGS +=     -I. \
  52                 -I$(KRB5IPROPDIR) \
  53                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  54                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\
  55                 -I$(SRC)/lib/krb5 \
  56                 -I$(SRC)/lib/krb5/kadm5 \
  57                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
  58 
  59 CERRWARN +=     -_gcc=-Wno-unused-variable
  60 CERRWARN +=     -_gcc=-Wno-unused-function
  61 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  62 CERRWARN +=     -_gcc=-Wno-parentheses
  63 CERRWARN +=     -_gcc=-Wno-uninitialized
  64 CERRWARN +=     -_gcc=-Wno-unused-value
  65 CERRWARN +=     -_gcc=-Wno-address
  66 
  67 # not linted
  68 SMATCH=off
  69 
  70 LDFLAGS +=      $(KRUNPATH) $(KERBRUNPATH)
  71 LDLIBS +=       -lmech_krb5 -lsocket
  72 $(PROG1) :=     LDLIBS += -L$(KRB5LIB) -lkadm5srv
  73 $(PROG2) :=     LDLIBS += -L$(KRB5LIB) -lnsl -lkdb -lkadm5clnt
  74 
  75 .KEEP_STATE:
  76 
  77 all: $(PROG)
  78 
  79 $(PROG1): $(CLIENTOBJS) $(COMMONOBJS)
  80         $(LINK.c) $(CLIENTOBJS) $(COMMONOBJS) -o $@ $(DEPLIBS) $(LDFLAGS) $(LDARGS) $(LDLIBS)
  81         $(POST_PROCESS)
  82 
  83 $(PROG2): $(SERVEROBJS) $(DERIVED_OBJS) $(COMMONOBJS) $(DEPLIBS)
  84         $(LINK.c) $(SERVEROBJS) $(DERIVED_OBJS) $(COMMONOBJS) -o $@ $(DEPLIBS) $(LDFLAGS) $(LDARGS) $(LDLIBS)
  85         $(POST_PROCESS)
  86 
  87 # Rules to rpcgen-erate derived files from the iprop.x spec file
  88 iprop.h:        $(KRB5IPROPDIR)/iprop.x
  89         $(RM) $@