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

  25 
  26 LIBRARY=        libcurses.a
  27 VERS=   .1
  28 
  29 # objects are grouped by source directory
  30 # all of the libxcurses source files are in src/libc
  31 OBJECTS= \
  32 $(XCURSES)      $(GEN)          $(I18N)         $(MKS) \
  33 $(STDIO)        $(WIDE)
  34 
  35 # XCURSES source files are in src/libc/xcurses
  36 XCURSES= \
  37 add_wch.o       dupwin.o        longname.o      strname.o       wbrdr.o \
  38 addch.o         echo_wch.o      m_cc.o          termattr.o      wbrdr_st.o \
  39 addchn.o        echochar.o      meta.o          tgetent.o       wchgat.o \
  40 addnstr.o       endwin.o        move.o          tgetflag.o      wclear.o \
  41 addnws.o        flushinp.o      mvcur.o         tgetnum.o       wclrbot.o \
  42 addwchn.o       get_wch.o       mvwin.o         tgetstr.o       wclreol.o \
  43 attr_on.o       getcchar.o      napms.o         tgoto.o         wdelch.o \
  44 attron.o        getch.o         newpad.o        tigetfla.o      wget_wch.o \


 101                 $(I18N:%.o=../src/libc/i18n/%.c) \
 102                 $(MKS:%.o=../src/libc/mks/%.c) \
 103                 $(STDIO:%.o=../src/libc/stdio/%.c) \
 104                 $(WIDE:%.o=../src/libc/wide/%.c)
 105 
 106 LIBS =          $(DYNLIB)
 107 
 108 # definitions for install target
 109 ROOTLIBDIR=     $(ROOT)/usr/xpg4/lib
 110 ROOTLIBDIR64=   $(ROOT)/usr/xpg4/lib/$(MACH64)
 111 ROOTLIBS=       $(LIBS:%=$(ROOTLIBDIR)/%)
 112 
 113 $(LINTLIB):= SRCS=../src/libc/llib-lcurses
 114 $(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED 
 115 
 116 CERRWARN +=     -_gcc=-Wno-uninitialized
 117 CERRWARN +=     -_gcc=-Wno-unused-variable
 118 CERRWARN +=     -_gcc=-Wno-unused-label
 119 CERRWARN +=     -_gcc=-Wno-unused-function
 120 



 121 LINTSRC=        $(LINTLIB:%.ln=%)
 122 
 123 LDLIBS += -lc
 124 
 125 CPPFLAGS = -I../h -I../h/solaris2 -I../src/libc/xcurses $(CPPFLAGS.master)
 126 
 127 #
 128 # If and when somebody gets around to messaging this, CLOBBERFILE should not
 129 # be cleared (so that any .po file will be clobbered.
 130 #
 131 CLOBBERFILES=   libcurses.so libcurses.so$(VERS)
 132 
 133 .KEEP_STATE:
 134 
 135 all: $(LIBS)
 136 
 137 lint: lintcheck
 138 
 139 #
 140 # Include library targets




   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 2006 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY=        libcurses.a
  28 VERS=   .1
  29 
  30 # objects are grouped by source directory
  31 # all of the libxcurses source files are in src/libc
  32 OBJECTS= \
  33 $(XCURSES)      $(GEN)          $(I18N)         $(MKS) \
  34 $(STDIO)        $(WIDE)
  35 
  36 # XCURSES source files are in src/libc/xcurses
  37 XCURSES= \
  38 add_wch.o       dupwin.o        longname.o      strname.o       wbrdr.o \
  39 addch.o         echo_wch.o      m_cc.o          termattr.o      wbrdr_st.o \
  40 addchn.o        echochar.o      meta.o          tgetent.o       wchgat.o \
  41 addnstr.o       endwin.o        move.o          tgetflag.o      wclear.o \
  42 addnws.o        flushinp.o      mvcur.o         tgetnum.o       wclrbot.o \
  43 addwchn.o       get_wch.o       mvwin.o         tgetstr.o       wclreol.o \
  44 attr_on.o       getcchar.o      napms.o         tgoto.o         wdelch.o \
  45 attron.o        getch.o         newpad.o        tigetfla.o      wget_wch.o \


 102                 $(I18N:%.o=../src/libc/i18n/%.c) \
 103                 $(MKS:%.o=../src/libc/mks/%.c) \
 104                 $(STDIO:%.o=../src/libc/stdio/%.c) \
 105                 $(WIDE:%.o=../src/libc/wide/%.c)
 106 
 107 LIBS =          $(DYNLIB)
 108 
 109 # definitions for install target
 110 ROOTLIBDIR=     $(ROOT)/usr/xpg4/lib
 111 ROOTLIBDIR64=   $(ROOT)/usr/xpg4/lib/$(MACH64)
 112 ROOTLIBS=       $(LIBS:%=$(ROOTLIBDIR)/%)
 113 
 114 $(LINTLIB):= SRCS=../src/libc/llib-lcurses
 115 $(LINTLIB):= CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED
 116 
 117 CERRWARN +=     -_gcc=-Wno-uninitialized
 118 CERRWARN +=     -_gcc=-Wno-unused-variable
 119 CERRWARN +=     -_gcc=-Wno-unused-label
 120 CERRWARN +=     -_gcc=-Wno-unused-function
 121 
 122 # not linted
 123 SMATCH=off
 124 
 125 LINTSRC=        $(LINTLIB:%.ln=%)
 126 
 127 LDLIBS += -lc
 128 
 129 CPPFLAGS = -I../h -I../h/solaris2 -I../src/libc/xcurses $(CPPFLAGS.master)
 130 
 131 #
 132 # If and when somebody gets around to messaging this, CLOBBERFILE should not
 133 # be cleared (so that any .po file will be clobbered.
 134 #
 135 CLOBBERFILES=   libcurses.so libcurses.so$(VERS)
 136 
 137 .KEEP_STATE:
 138 
 139 all: $(LIBS)
 140 
 141 lint: lintcheck
 142 
 143 #
 144 # Include library targets