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= krb5kdc
   7 MANIFEST=       krb5kdc.xml
   8 
   9 OBJS    = \
  10         dispatch.o\
  11         do_as_req.o\
  12         do_tgs_req.o\
  13         extern.o\
  14         kdc_preauth.o\
  15         kdc_util.o\
  16         main.o\
  17         network.o\
  18         policy.o\
  19         replay.o \
  20         sock2p.o
  21 
  22 SRCS    = $(OBJS:.o=.c)
  23 
  24 DEFS =  -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 \


  39 
  40 ROOTMANIFESTDIR=        $(ROOTSVCNETWORKSECURITY)
  41 
  42 CFLAGS += $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
  43 # The SET macros in network.c will be mis-optimized if GCC believes it
  44 # may rely on undefined signed overflow behaviour.
  45 CFLAGS += -_gcc=-fno-strict-overflow
  46 
  47 CPPFLAGS += \
  48         -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  49         -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\
  50         -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  51         -DHAVE_SYSLOG_H=1 
  52 
  53 CERRWARN += -_gcc=-Wno-unused-variable
  54 CERRWARN += -_gcc=-Wno-unused-function
  55 CERRWARN += -_gcc=-Wno-type-limits
  56 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  57 CERRWARN += -_gcc=-Wno-parentheses
  58 



  59 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
  60 LDLIBS += -L$(ROOT_KLIBDIR) -L$(KRB5LIB) \
  61           -lmech_krb5 -lkdb -lkadm5srv -lnsl -lsocket -lbsm -lc
  62 
  63 .KEEP_STATE:
  64 
  65 all: $(PROG) 
  66 
  67 $(PROG):       $(OBJS)  
  68         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  69         $(POST_PROCESS)
  70 
  71 $(KRB5LIBPROG):=        FILEMODE = 500
  72 
  73 install: $(KRB5LIBPROG) $(ROOTSVCMETHOD) $(ROOTMANIFEST)
  74 
  75 check:  $(CHKMANIFEST)
  76 
  77 clean:
  78         $(RM) $(OBJS)
   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= krb5kdc
   8 MANIFEST=       krb5kdc.xml
   9 
  10 OBJS    = \
  11         dispatch.o\
  12         do_as_req.o\
  13         do_tgs_req.o\
  14         extern.o\
  15         kdc_preauth.o\
  16         kdc_util.o\
  17         main.o\
  18         network.o\
  19         policy.o\
  20         replay.o \
  21         sock2p.o
  22 
  23 SRCS    = $(OBJS:.o=.c)
  24 
  25 DEFS =  -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 \


  40 
  41 ROOTMANIFESTDIR=        $(ROOTSVCNETWORKSECURITY)
  42 
  43 CFLAGS += $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
  44 # The SET macros in network.c will be mis-optimized if GCC believes it
  45 # may rely on undefined signed overflow behaviour.
  46 CFLAGS += -_gcc=-fno-strict-overflow
  47 
  48 CPPFLAGS += \
  49         -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  50         -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\
  51         -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  52         -DHAVE_SYSLOG_H=1 
  53 
  54 CERRWARN += -_gcc=-Wno-unused-variable
  55 CERRWARN += -_gcc=-Wno-unused-function
  56 CERRWARN += -_gcc=-Wno-type-limits
  57 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  58 CERRWARN += -_gcc=-Wno-parentheses
  59 
  60 # not linted
  61 SMATCH=off
  62 
  63 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
  64 LDLIBS += -L$(ROOT_KLIBDIR) -L$(KRB5LIB) \
  65           -lmech_krb5 -lkdb -lkadm5srv -lnsl -lsocket -lbsm -lc
  66 
  67 .KEEP_STATE:
  68 
  69 all: $(PROG) 
  70 
  71 $(PROG):       $(OBJS)  
  72         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  73         $(POST_PROCESS)
  74 
  75 $(KRB5LIBPROG):=        FILEMODE = 500
  76 
  77 install: $(KRB5LIBPROG) $(ROOTSVCMETHOD) $(ROOTMANIFEST)
  78 
  79 check:  $(CHKMANIFEST)
  80 
  81 clean:
  82         $(RM) $(OBJS)