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


   4 # The contents of this file are subject to the terms of the
   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 (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #

  24 
  25 LIBRARY =       libbsm.a
  26 VERS =          .1
  27 OBJECTS=        adr.o \
  28                 adrf.o \
  29                 adrm.o \
  30                 adt.o \
  31                 adt_token.o \
  32                 adt_xlate.o \
  33                 au_open.o \
  34                 au_preselect.o \
  35                 au_to.o \
  36                 au_usermask.o \
  37                 audit_allocate.o \
  38                 audit_class.o \
  39                 audit_cron.o \
  40                 audit_crontab.o \
  41                 audit_at.o \
  42                 audit_event.o \
  43                 audit_ftpd.o \


  71 # install this library in the root filesystem
  72 include ../../Makefile.rootfs
  73 
  74 SRCDIR =        ../common
  75 
  76 LIBS =          $(DYNLIB) $(LINTLIB)
  77 
  78 LINTSRC= $(LINTLIB:%.ln=%)
  79 $(LINTLIB) :=   SRCS = ../common/$(LINTSRC)
  80 ROOTLINTDIR=    $(ROOTLIBDIR)
  81 ROOTLINT=       $(LINTSRC:%=$(ROOTLINTDIR)/%)
  82 
  83 CLEANFILES +=   $(LINTOUT) $(LINTLIB)
  84 
  85 CFLAGS  +=      $(CCVERBOSE)
  86 LDLIBS +=       -lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil -lscf
  87 
  88 CERRWARN +=     -_gcc=-Wno-parentheses
  89 CERRWARN +=     -_gcc=-Wno-uninitialized
  90 



  91 COMDIR=         ../common
  92 AUDITD=         $(SRC)/cmd/auditd
  93 
  94 CPPFLAGS += -I$(COMDIR) -I$(AUDITD)
  95 CPPFLAGS += -D_REENTRANT
  96 
  97 #
  98 # message catalogue file
  99 #
 100 TEXT_DOMAIN= SUNW_OST_OSLIB
 101 
 102 .KEEP_STATE:
 103 
 104 all: $(LIBS)
 105 
 106 lint: lintcheck
 107 
 108 # Include library targets
 109 #
 110 include ../../Makefile.targ


   4 # The contents of this file are subject to the terms of the
   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 (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright (c) 2018, Joyent, Inc.
  25 
  26 LIBRARY =       libbsm.a
  27 VERS =          .1
  28 OBJECTS=        adr.o \
  29                 adrf.o \
  30                 adrm.o \
  31                 adt.o \
  32                 adt_token.o \
  33                 adt_xlate.o \
  34                 au_open.o \
  35                 au_preselect.o \
  36                 au_to.o \
  37                 au_usermask.o \
  38                 audit_allocate.o \
  39                 audit_class.o \
  40                 audit_cron.o \
  41                 audit_crontab.o \
  42                 audit_at.o \
  43                 audit_event.o \
  44                 audit_ftpd.o \


  72 # install this library in the root filesystem
  73 include ../../Makefile.rootfs
  74 
  75 SRCDIR =        ../common
  76 
  77 LIBS =          $(DYNLIB) $(LINTLIB)
  78 
  79 LINTSRC= $(LINTLIB:%.ln=%)
  80 $(LINTLIB) :=   SRCS = ../common/$(LINTSRC)
  81 ROOTLINTDIR=    $(ROOTLIBDIR)
  82 ROOTLINT=       $(LINTSRC:%=$(ROOTLINTDIR)/%)
  83 
  84 CLEANFILES +=   $(LINTOUT) $(LINTLIB)
  85 
  86 CFLAGS  +=      $(CCVERBOSE)
  87 LDLIBS +=       -lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil -lscf
  88 
  89 CERRWARN +=     -_gcc=-Wno-parentheses
  90 CERRWARN +=     -_gcc=-Wno-uninitialized
  91 
  92 # not linted
  93 SMATCH=off
  94 
  95 COMDIR=         ../common
  96 AUDITD=         $(SRC)/cmd/auditd
  97 
  98 CPPFLAGS += -I$(COMDIR) -I$(AUDITD)
  99 CPPFLAGS += -D_REENTRANT
 100 
 101 #
 102 # message catalogue file
 103 #
 104 TEXT_DOMAIN= SUNW_OST_OSLIB
 105 
 106 .KEEP_STATE:
 107 
 108 all: $(LIBS)
 109 
 110 lint: lintcheck
 111 
 112 # Include library targets
 113 #
 114 include ../../Makefile.targ