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


   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 2011 Nexenta Systems, Inc.  All rights reserved.
  23 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #

  26 
  27 LIBRARY=        libcurses.a
  28 VERS=   .1
  29 
  30 OBJECTS=        $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6)
  31 
  32 OBJS1=  _addch.o _addchnstr.o _addchstr.o _addnstr.o _addstr.o \
  33         _attroff.o _attron.o _attrset.o _beep.o _bkgd.o \
  34         _bkgdset.o _border.o _box.o _clear.o _clrtobot.o \
  35         _clrtoeol.o _crmode.o _del_curterm.o _delch.o _deleteln.o \
  36         _echo.o _echochar.o _erase.o _fixterm.o _flash.o \
  37         _garbagdlins.o _garbagedwin.o _getch.o _getstr.o \
  38         _halfdelay.o _hline.o _inch.o _inchnstr.o _inchstr.o \
  39         _innstr.o _insch.o _insdelln.o _insertln.o _insnstr.o \
  40         _insstr.o _instr.o _intrflush.o _meta.o _move.o \
  41         _mvaddch.o _mvaddchnstr.o _mvaddchstr.o _mvaddnstr.o \
  42         _mvaddstr.o _mvdelch.o _mvgetch.o _mvgetstr.o _mvhline.o \
  43         _mvinch.o _mvinchnstr.o _mvinchstr.o _mvinnstr.o \
  44         _mvinsch.o _mvinsnstr.o _mvinsstr.o _mvinstr.o _mvvline.o \
  45         _mvwaddch.o _mvwaddchnst.o _mvwaddchstr.o _mvwaddnstr.o \


 135 
 136 SRCDIR =        ../screen
 137 
 138 LIBS =          $(DYNLIB) $(LINTLIB)
 139 
 140 # definitions for lint
 141 
 142 $(LINTLIB):= SRCS=../screen/llib-lcurses
 143 
 144 LINTOUT=        lint.out
 145 LINTSRC=        $(LINTLIB:%.ln=%)
 146 
 147 CLEANFILES +=   $(LINTOUT) $(LINTLIB)
 148 
 149 CFLAGS  +=      $(CCVERBOSE)
 150 
 151 CERRWARN +=     -_gcc=-Wno-char-subscripts
 152 CERRWARN +=     -_gcc=-Wno-uninitialized
 153 CERRWARN +=     -_gcc=-Wno-parentheses
 154 



 155 LDLIBS += -lc
 156 
 157 CPPFLAGS += -I../screen -I../../common/inc
 158 
 159 ED = ed
 160 RM = rm -f
 161 
 162 #
 163 # If and when somebody gets around to messaging this, CLOBBERFILE should not
 164 # be cleared (so that any .po file will be clobbered.
 165 #
 166 CLOBBERFILES=   libcurses.so libcurses.so$(VERS)
 167 
 168 all: $(LIBS)
 169 
 170 lint: lintcheck
 171 
 172 #
 173 # Install rules for libtermlib.so links.
 174 # Augments the rule in Makefile.targ




   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 2011 Nexenta Systems, Inc.  All rights reserved.
  23 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 LIBRARY=        libcurses.a
  29 VERS=   .1
  30 
  31 OBJECTS=        $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6)
  32 
  33 OBJS1=  _addch.o _addchnstr.o _addchstr.o _addnstr.o _addstr.o \
  34         _attroff.o _attron.o _attrset.o _beep.o _bkgd.o \
  35         _bkgdset.o _border.o _box.o _clear.o _clrtobot.o \
  36         _clrtoeol.o _crmode.o _del_curterm.o _delch.o _deleteln.o \
  37         _echo.o _echochar.o _erase.o _fixterm.o _flash.o \
  38         _garbagdlins.o _garbagedwin.o _getch.o _getstr.o \
  39         _halfdelay.o _hline.o _inch.o _inchnstr.o _inchstr.o \
  40         _innstr.o _insch.o _insdelln.o _insertln.o _insnstr.o \
  41         _insstr.o _instr.o _intrflush.o _meta.o _move.o \
  42         _mvaddch.o _mvaddchnstr.o _mvaddchstr.o _mvaddnstr.o \
  43         _mvaddstr.o _mvdelch.o _mvgetch.o _mvgetstr.o _mvhline.o \
  44         _mvinch.o _mvinchnstr.o _mvinchstr.o _mvinnstr.o \
  45         _mvinsch.o _mvinsnstr.o _mvinsstr.o _mvinstr.o _mvvline.o \
  46         _mvwaddch.o _mvwaddchnst.o _mvwaddchstr.o _mvwaddnstr.o \


 136 
 137 SRCDIR =        ../screen
 138 
 139 LIBS =          $(DYNLIB) $(LINTLIB)
 140 
 141 # definitions for lint
 142 
 143 $(LINTLIB):= SRCS=../screen/llib-lcurses
 144 
 145 LINTOUT=        lint.out
 146 LINTSRC=        $(LINTLIB:%.ln=%)
 147 
 148 CLEANFILES +=   $(LINTOUT) $(LINTLIB)
 149 
 150 CFLAGS  +=      $(CCVERBOSE)
 151 
 152 CERRWARN +=     -_gcc=-Wno-char-subscripts
 153 CERRWARN +=     -_gcc=-Wno-uninitialized
 154 CERRWARN +=     -_gcc=-Wno-parentheses
 155 
 156 # not linted
 157 SMATCH=off
 158 
 159 LDLIBS += -lc
 160 
 161 CPPFLAGS += -I../screen -I../../common/inc
 162 
 163 ED = ed
 164 RM = rm -f
 165 
 166 #
 167 # If and when somebody gets around to messaging this, CLOBBERFILE should not
 168 # be cleared (so that any .po file will be clobbered.
 169 #
 170 CLOBBERFILES=   libcurses.so libcurses.so$(VERS)
 171 
 172 all: $(LIBS)
 173 
 174 lint: lintcheck
 175 
 176 #
 177 # Install rules for libtermlib.so links.
 178 # Augments the rule in Makefile.targ