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 2007 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #

  25 
  26 LIBRARY= libdb2.a
  27 VERS= .1
  28 
  29 # btree  
  30 BTREE_OBJS= \
  31         bt_close.o \
  32         bt_conv.o \
  33         bt_debug.o \
  34         bt_delete.o \
  35         bt_get.o \
  36         bt_open.o \
  37         bt_overflow.o \
  38         bt_page.o \
  39         bt_put.o \
  40         bt_search.o \
  41         bt_seq.o \
  42         bt_split.o \
  43         bt_utils.o 
  44  


  85 
  86 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
  87 
  88 POFILE = $(LIBRARY:%.a=%.po)
  89 POFILES = generic.po
  90 
  91 #override liblink
  92 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
  93 
  94 CPPFLAGS +=     -DHAVE_CONFIG_H \
  95                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/mpool \
  96                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/db \
  97                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/hash \
  98                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/btree \
  99                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/recno \
 100                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/include \
 101                 -I$(SRC)/lib/gss_mechs/mech_krb5/include  #for db-ndbm.h
 102 
 103 CFLAGS +=       $(CCVERBOSE) -I..
 104 CERRWARN +=     -_gcc=-Wno-uninitialized




 105 LDLIBS +=       -lc
 106 
 107 # Identify that this library is an interposer (on dbm_ routines from libc.so.1).
 108 # This identification insures runtime symbol lookup resolves to this library
 109 # (before libc.so.1) regardless of dependency link order.
 110 DYNFLAGS +=     $(ZINTERPOSE)
 111 
 112 .KEEP_STATE:
 113 
 114 all:    $(LIBS)
 115 
 116 lint:   lintcheck
 117 
 118 # include library targets
 119 include $(SRC)/lib/krb5/Makefile.targ
 120 
 121 pics/%.o: ../btree/%.c
 122         $(COMPILE.c)  -o $@ $<
 123         $(POST_PROCESS_O)
 124 




   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 2007 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY= libdb2.a
  28 VERS= .1
  29 
  30 # btree  
  31 BTREE_OBJS= \
  32         bt_close.o \
  33         bt_conv.o \
  34         bt_debug.o \
  35         bt_delete.o \
  36         bt_get.o \
  37         bt_open.o \
  38         bt_overflow.o \
  39         bt_page.o \
  40         bt_put.o \
  41         bt_search.o \
  42         bt_seq.o \
  43         bt_split.o \
  44         bt_utils.o 
  45  


  86 
  87 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
  88 
  89 POFILE = $(LIBRARY:%.a=%.po)
  90 POFILES = generic.po
  91 
  92 #override liblink
  93 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
  94 
  95 CPPFLAGS +=     -DHAVE_CONFIG_H \
  96                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/mpool \
  97                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/db \
  98                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/hash \
  99                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/btree \
 100                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/recno \
 101                 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/include \
 102                 -I$(SRC)/lib/gss_mechs/mech_krb5/include  #for db-ndbm.h
 103 
 104 CFLAGS +=       $(CCVERBOSE) -I..
 105 CERRWARN +=     -_gcc=-Wno-uninitialized
 106 
 107 # not linted
 108 SMATCH=off
 109 
 110 LDLIBS +=       -lc
 111 
 112 # Identify that this library is an interposer (on dbm_ routines from libc.so.1).
 113 # This identification insures runtime symbol lookup resolves to this library
 114 # (before libc.so.1) regardless of dependency link order.
 115 DYNFLAGS +=     $(ZINTERPOSE)
 116 
 117 .KEEP_STATE:
 118 
 119 all:    $(LIBS)
 120 
 121 lint:   lintcheck
 122 
 123 # include library targets
 124 include $(SRC)/lib/krb5/Makefile.targ
 125 
 126 pics/%.o: ../btree/%.c
 127         $(COMPILE.c)  -o $@ $<
 128         $(POST_PROCESS_O)
 129