Print this page
10079 smatch Makefile changes for usr/src/lib


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #

  25 
  26 LIBRARY= libkadm5srv.a
  27 VERS= .1
  28 
  29 SRV_OBJS = svr_policy.o \
  30         svr_principal.o \
  31         server_acl.o \
  32         server_kdb.o \
  33         server_misc.o \
  34         server_init.o \
  35         server_dict.o \
  36         svr_iters.o \
  37         svr_chpass_util.o \
  38         adb_xdr.o \
  39         xdr_alloc.o \
  40         logger.o \
  41         chgpwd.o
  42 
  43 SHARED_OBJS =  \
  44         misc_free.o \


  76         -I$(SRC)/uts/common/gssapi/ \
  77         -I$(SRC)/uts/common/gssapi/include/ \
  78         -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  79         -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  80         -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
  81         -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
  82         -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
  83         -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
  84         -DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
  85         -DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 \
  86         -DUSE_KADM5_API_VERSION=2
  87 
  88 CFLAGS +=       $(CCVERBOSE) -I..
  89 
  90 CERRWARN +=     -_gcc=-Wno-unused-function
  91 CERRWARN +=     -_gcc=-Wno-unused-variable
  92 CERRWARN +=     -_gcc=-Wno-parentheses
  93 CERRWARN +=     -_gcc=-Wno-type-limits
  94 CERRWARN +=     -_gcc=-Wno-uninitialized
  95 


  96 .KEEP_STATE:
  97 
  98 all:    $(LIBS)
  99 
 100 lint:   lintcheck
 101 
 102 # include library targets
 103 include ../../../Makefile.targ
 104 
 105 pics/%.o: ../../%.c
 106         $(COMPILE.c) -o $@ $<
 107         $(POST_PROCESS_O)
 108 
 109 FRC:
 110 
 111 generic.po: FRC
 112         $(RM) messages.po
 113         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
 114         $(SED) "/^domain/d" messages.po > $@
 115         $(RM) messages.po


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY= libkadm5srv.a
  28 VERS= .1
  29 
  30 SRV_OBJS = svr_policy.o \
  31         svr_principal.o \
  32         server_acl.o \
  33         server_kdb.o \
  34         server_misc.o \
  35         server_init.o \
  36         server_dict.o \
  37         svr_iters.o \
  38         svr_chpass_util.o \
  39         adb_xdr.o \
  40         xdr_alloc.o \
  41         logger.o \
  42         chgpwd.o
  43 
  44 SHARED_OBJS =  \
  45         misc_free.o \


  77         -I$(SRC)/uts/common/gssapi/ \
  78         -I$(SRC)/uts/common/gssapi/include/ \
  79         -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  80         -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
  81         -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
  82         -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
  83         -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
  84         -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
  85         -DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
  86         -DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 \
  87         -DUSE_KADM5_API_VERSION=2
  88 
  89 CFLAGS +=       $(CCVERBOSE) -I..
  90 
  91 CERRWARN +=     -_gcc=-Wno-unused-function
  92 CERRWARN +=     -_gcc=-Wno-unused-variable
  93 CERRWARN +=     -_gcc=-Wno-parentheses
  94 CERRWARN +=     -_gcc=-Wno-type-limits
  95 CERRWARN +=     -_gcc=-Wno-uninitialized
  96 
  97 SMOFF += all_func_returns,indenting
  98 
  99 .KEEP_STATE:
 100 
 101 all:    $(LIBS)
 102 
 103 lint:   lintcheck
 104 
 105 # include library targets
 106 include ../../../Makefile.targ
 107 
 108 pics/%.o: ../../%.c
 109         $(COMPILE.c) -o $@ $<
 110         $(POST_PROCESS_O)
 111 
 112 FRC:
 113 
 114 generic.po: FRC
 115         $(RM) messages.po
 116         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
 117         $(SED) "/^domain/d" messages.po > $@
 118         $(RM) messages.po