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= kadmin kadmin.local
   7 SHFILES= k5srvutil
   8 CLOBBERFILES= $(SHFILES) 
   9 
  10 KRB5SBINSHFILES= $(SHFILES:%=$(KRB5SBIN)/%)
  11 
  12 COMMON_OBJS   = kadmin.o kadmin_ct.o ss_wrapper.o getdate.o keytab.o
  13 RMT_OBJS= $(COMMON_OBJS) kadmin_rmt.o
  14 LOC_OBJS= $(COMMON_OBJS) kadmin_loc.o
  15 OBJS    = $(COMMON_OBJS) $(RMT_OBJS) $(LOC_OBJS)
  16 SRCS    = $(OBJS:.o=.c)
  17 
  18 include ../../../Makefile.cmd
  19 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
  20 
  21 POFILE = generic.po
  22 POFILES = kadmin.po k5srvutil.po
  23 
  24 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIMEB_H=1 \
  25         -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 -DHAVE_TIMEZONE
  26 
  27 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include/ \
  28                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  29                 -I$(SRC)/uts/common/gssapi/include \
  30                 -I$(SRC)/cmd/krb5/iprop \
  31                 -I$(SRC)/lib/krb5 \
  32                 -I$(SRC)/lib/gss_mechs/mech_krb5/include $(DEFS)
  33 
  34 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  35 CERRWARN += -_gcc=-Wno-unused-label
  36 CERRWARN += -_gcc=-Wno-unused-function
  37 CERRWARN += -_gcc=-Wno-parentheses
  38 CERRWARN += -_gcc=-Wno-unused-variable
  39 


  40 COPTFLAG += $(XESS) #-I$(KINCDIR) 
  41 
  42 SHAREDLIBS = -lmech_krb5 -lss
  43 
  44 CLLIBS = $(LDLIBS) $(KRUNPATH) $(KERBRUNPATH) \
  45         -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5clnt
  46 
  47 SRVLIBS = $(LDLIBS) $(KRUNPATH) $(KERBRUNPATH) \
  48         -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5srv
  49 
  50 kadmin.local:=  DEFS += -D_KADMIN_LOCAL_
  51 
  52 .KEEP_STATE:
  53 
  54 all: $(PROG) $(SHFILES)
  55 
  56 kadmin: $(RMT_OBJS)
  57         $(LINK.c) $(RMT_OBJS) -o $@ $(CLLIBS)
  58         $(POST_PROCESS)
  59 


   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= kadmin kadmin.local
   8 SHFILES= k5srvutil
   9 CLOBBERFILES= $(SHFILES) 
  10 
  11 KRB5SBINSHFILES= $(SHFILES:%=$(KRB5SBIN)/%)
  12 
  13 COMMON_OBJS   = kadmin.o kadmin_ct.o ss_wrapper.o getdate.o keytab.o
  14 RMT_OBJS= $(COMMON_OBJS) kadmin_rmt.o
  15 LOC_OBJS= $(COMMON_OBJS) kadmin_loc.o
  16 OBJS    = $(COMMON_OBJS) $(RMT_OBJS) $(LOC_OBJS)
  17 SRCS    = $(OBJS:.o=.c)
  18 
  19 include ../../../Makefile.cmd
  20 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
  21 
  22 POFILE = generic.po
  23 POFILES = kadmin.po k5srvutil.po
  24 
  25 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIMEB_H=1 \
  26         -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 -DHAVE_TIMEZONE
  27 
  28 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include/ \
  29                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  30                 -I$(SRC)/uts/common/gssapi/include \
  31                 -I$(SRC)/cmd/krb5/iprop \
  32                 -I$(SRC)/lib/krb5 \
  33                 -I$(SRC)/lib/gss_mechs/mech_krb5/include $(DEFS)
  34 
  35 CERRWARN += -_gcc=-Wno-implicit-function-declaration
  36 CERRWARN += -_gcc=-Wno-unused-label
  37 CERRWARN += -_gcc=-Wno-unused-function
  38 CERRWARN += -_gcc=-Wno-parentheses
  39 CERRWARN += -_gcc=-Wno-unused-variable
  40 
  41 SMATCH=off
  42 
  43 COPTFLAG += $(XESS) #-I$(KINCDIR) 
  44 
  45 SHAREDLIBS = -lmech_krb5 -lss
  46 
  47 CLLIBS = $(LDLIBS) $(KRUNPATH) $(KERBRUNPATH) \
  48         -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5clnt
  49 
  50 SRVLIBS = $(LDLIBS) $(KRUNPATH) $(KERBRUNPATH) \
  51         -L$(ROOT_KLIBDIR) -L$(KRB5LIB) $(SHAREDLIBS) -lkadm5srv
  52 
  53 kadmin.local:=  DEFS += -D_KADMIN_LOCAL_
  54 
  55 .KEEP_STATE:
  56 
  57 all: $(PROG) $(SHFILES)
  58 
  59 kadmin: $(RMT_OBJS)
  60         $(LINK.c) $(RMT_OBJS) -o $@ $(CLLIBS)
  61         $(POST_PROCESS)
  62