Print this page
10078 smatch fixes for UCB


   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=        libucb.a
  26 VERS=           .1
  27 
  28 PORTSYSOBJS=            \
  29         flock.o         \
  30         getdtblsize.o   \
  31         gethostid.o     \
  32         gethostname.o   \
  33         getpagesize.o   \
  34         gettimeofday.o  \
  35         killpg.o        \
  36         mctl.o          \
  37         reboot.o        \
  38         setpgrp.o       \
  39         wait3.o         \
  40         wait4.o
  41 
  42 PORTSTDIOOBJS=          \
  43         doprnt.o        \


  81 MAPFILES =      ../port/mapfile-vers
  82 
  83 SRCS=           $(PORTGENOBJS:%.o=../port/gen/%.c) \
  84                 $(PORTSTDIOOBJS:%.o=../port/stdio/%.c) \
  85                 $(PORTSYSOBJS:%.o=../port/sys/%.c)
  86 
  87 LIBS = $(DYNLIB)
  88 
  89 CFLAGS  +=      $(CCVERBOSE)
  90 CFLAGS64 +=     $(CCVERBOSE)
  91 LDLIBS +=       -lelf -lc
  92 
  93 CPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \
  94                 -I../../../lib/libc/inc $(CPPFLAGS.master)
  95 
  96 CERRWARN +=     -_gcc=-Wno-unused-variable
  97 CERRWARN +=     -_gcc=-Wno-parentheses
  98 CERRWARN +=     -_gcc=-Wno-char-subscripts
  99 CERRWARN +=     -_gcc=-Wno-uninitialized
 100 



 101 ASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
 102 
 103 pics/%.o:= ASFLAGS += $(AS_PICFLAGS)
 104 
 105 # libc method of building an archive, using AT&T ordering
 106 BUILD.AR= $(RM) $@ ; \
 107         $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
 108 
 109 .KEEP_STATE:
 110 
 111 all: $(LIBS)
 112 
 113 lint: lintcheck
 114 
 115 pics/%.o: ../port/gen/%.c
 116         $(COMPILE.c) -o $@ $<
 117         $(POST_PROCESS_O)
 118 pics/%.o: ../port/stdio/%.c
 119         $(COMPILE.c) -o $@ $<
 120         $(POST_PROCESS_O)


   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=        libucb.a
  27 VERS=           .1
  28 
  29 PORTSYSOBJS=            \
  30         flock.o         \
  31         getdtblsize.o   \
  32         gethostid.o     \
  33         gethostname.o   \
  34         getpagesize.o   \
  35         gettimeofday.o  \
  36         killpg.o        \
  37         mctl.o          \
  38         reboot.o        \
  39         setpgrp.o       \
  40         wait3.o         \
  41         wait4.o
  42 
  43 PORTSTDIOOBJS=          \
  44         doprnt.o        \


  82 MAPFILES =      ../port/mapfile-vers
  83 
  84 SRCS=           $(PORTGENOBJS:%.o=../port/gen/%.c) \
  85                 $(PORTSTDIOOBJS:%.o=../port/stdio/%.c) \
  86                 $(PORTSYSOBJS:%.o=../port/sys/%.c)
  87 
  88 LIBS = $(DYNLIB)
  89 
  90 CFLAGS  +=      $(CCVERBOSE)
  91 CFLAGS64 +=     $(CCVERBOSE)
  92 LDLIBS +=       -lelf -lc
  93 
  94 CPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \
  95                 -I../../../lib/libc/inc $(CPPFLAGS.master)
  96 
  97 CERRWARN +=     -_gcc=-Wno-unused-variable
  98 CERRWARN +=     -_gcc=-Wno-parentheses
  99 CERRWARN +=     -_gcc=-Wno-char-subscripts
 100 CERRWARN +=     -_gcc=-Wno-uninitialized
 101 
 102 # not linted
 103 SMATCH=off
 104 
 105 ASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
 106 
 107 pics/%.o:= ASFLAGS += $(AS_PICFLAGS)
 108 
 109 # libc method of building an archive, using AT&T ordering
 110 BUILD.AR= $(RM) $@ ; \
 111         $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
 112 
 113 .KEEP_STATE:
 114 
 115 all: $(LIBS)
 116 
 117 lint: lintcheck
 118 
 119 pics/%.o: ../port/gen/%.c
 120         $(COMPILE.c) -o $@ $<
 121         $(POST_PROCESS_O)
 122 pics/%.o: ../port/stdio/%.c
 123         $(COMPILE.c) -o $@ $<
 124         $(POST_PROCESS_O)