Print this page
10080 smatch Makefile changes for usr/src/cmd


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

  24 
  25 PROG=           syslogd
  26 ROTATESCRIPT=   newsyslog
  27 CONFIGFILE=     syslog.conf
  28 TXTS=           syslog.conf
  29 PRODUCT=        $(PROG) $(ROTATESCRIPT)
  30 OBJS=           syslogd.o queue.o list.o conf.o
  31 SRCS=           $(OBJS:%.o=../%.c)
  32 LLOBJS=         $(OBJS:%.o=%.ll)
  33 
  34 include ../../Makefile.cmd
  35 
  36 $(PROG) lint    := LDLIBS += -lscf -lnsl
  37 CERRWARN        += -_gcc=-Wno-uninitialized




  38 CPPFLAGS        += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
  39 CFLAGS          += -DNDEBUG
  40 
  41 # there's some extra utility code defined but not used.
  42 LINTFLAGS       += -erroff=E_NAME_DEF_NOT_USED2
  43 
  44 VARSYSLOG=      syslog
  45 VARAUTHLOG=     authlog
  46 ROOTVARLOGD=    $(ROOT)/var/log
  47 
  48 ROOTETCCONFIG=  $(CONFIGFILE:%=$(ROOTETC)/%)
  49 ROOTLIBROTATE=  $(ROTATESCRIPT:%=$(ROOTLIB)/%)
  50 ROOTVARSYSLOG=  $(VARSYSLOG:%=$(ROOTVARLOGD)/%)
  51 ROOTVARAUTHLOG= $(VARAUTHLOG:%=$(ROOTVARLOGD)/%)
  52 
  53 $(ROOTUSRSBINPROG)      := FILEMODE = 0555
  54 $(ROOTUSRLIBROTATE)     := FILEMODE = 0555
  55 $(ROOTETCCONFIG)        := FILEMODE = 0644
  56 $(ROOTVARSYSLOG)        := FILEMODE = 0644
  57 $(ROOTVARAUTHLOG)       := FILEMODE = 0600




   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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 # Copyright (c) 2018, Joyent, Inc.
  25 
  26 PROG=           syslogd
  27 ROTATESCRIPT=   newsyslog
  28 CONFIGFILE=     syslog.conf
  29 TXTS=           syslog.conf
  30 PRODUCT=        $(PROG) $(ROTATESCRIPT)
  31 OBJS=           syslogd.o queue.o list.o conf.o
  32 SRCS=           $(OBJS:%.o=../%.c)
  33 LLOBJS=         $(OBJS:%.o=%.ll)
  34 
  35 include ../../Makefile.cmd
  36 
  37 $(PROG) lint    := LDLIBS += -lscf -lnsl
  38 CERRWARN        += -_gcc=-Wno-uninitialized
  39 
  40 # not linted
  41 SMATCH=off
  42 
  43 CPPFLAGS        += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
  44 CFLAGS          += -DNDEBUG
  45 
  46 # there's some extra utility code defined but not used.
  47 LINTFLAGS       += -erroff=E_NAME_DEF_NOT_USED2
  48 
  49 VARSYSLOG=      syslog
  50 VARAUTHLOG=     authlog
  51 ROOTVARLOGD=    $(ROOT)/var/log
  52 
  53 ROOTETCCONFIG=  $(CONFIGFILE:%=$(ROOTETC)/%)
  54 ROOTLIBROTATE=  $(ROTATESCRIPT:%=$(ROOTLIB)/%)
  55 ROOTVARSYSLOG=  $(VARSYSLOG:%=$(ROOTVARLOGD)/%)
  56 ROOTVARAUTHLOG= $(VARAUTHLOG:%=$(ROOTVARLOGD)/%)
  57 
  58 $(ROOTUSRSBINPROG)      := FILEMODE = 0555
  59 $(ROOTUSRLIBROTATE)     := FILEMODE = 0555
  60 $(ROOTETCCONFIG)        := FILEMODE = 0644
  61 $(ROOTVARSYSLOG)        := FILEMODE = 0644
  62 $(ROOTVARAUTHLOG)       := FILEMODE = 0600