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


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 1990-2003 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # ident "%Z%%M% %I%     %E% SMI"
  27 #
  28 # cmd/lp/lib/oam/Makefile
  29 #
  30 include         ../../Makefile.lp
  31 
  32 LIBRARY =               liblpoam.a
  33 
  34 TEXTOBJS =              e_adm__msgs.o   \
  35                         e_can__msgs.o   \
  36                         e_cmb__msgs.o   \
  37                         e_fl__msgs.o    \
  38                         e_for__msgs.o   \
  39                         e_lp__msgs.o    \
  40                         e_lpp__msgs.o   \
  41                         e_lpu__msgs.o   \
  42                         e_mov__msgs.o   \
  43                         e_sht__msgs.o   \
  44                         e_stat__msgs.o  \
  45                         e_sys__msgs.o
  46 
  47 OBJECTS =               agettxt.o       \
  48                         buffers.o       \
  49                         fmtmsg.o        \


  54 TEXTSRCS =              $(TEXTOBJS:%.o=%.c)
  55 TEXTTARG =              $(TEXTSRCS:%=+ %)
  56 
  57 TFILES =                msg.source gen-defs gen-text
  58 
  59 TXTFILES=               $(TFILES)
  60 
  61 LPINC =                 ../../include
  62 OAMDEF_H =              $(LPINC)/oam_def.h
  63 
  64 CLEANFILES =            $(TEXTSRCS) $(OAMDEF_H) xx??
  65 
  66 include                 ../../../../lib/Makefile.lib
  67 
  68 # Specifically request the construction of a static library.
  69 # This library is not installed in the proto area.
  70 LIBS = $(LIBRARY)
  71 
  72 CPPFLAGS =              -I$(LPINC) $(CPPFLAGS.master)
  73 



  74 .KEEP_STATE:
  75 
  76 all install :           $(TXTFILES) $(LIBS)
  77 
  78 # derived source files
  79 # and their dependencies
  80 #
  81 # beware of the hidden ordering requirement in the target source
  82 # macros.  TEXTTARG contains '+' signs to tell make that this is a
  83 # target group.  Without this syntax, an infinite build loop occurs.
  84 #
  85 $(OAMDEF_H) $(TEXTTARG) :$(TFILES)
  86                         sh gen-defs > $(OAMDEF_H)
  87                         sh gen-text
  88 
  89 # dependencies slightly overstated but necessarily explicit
  90 $(OBJS) $(PICS) :       $(OAMDEF_H) $$(@F:.o=.c)
  91 
  92 include                 ../../../../lib/Makefile.targ
  93 


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 1990-2003 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 


  28 include         ../../Makefile.lp
  29 
  30 LIBRARY =               liblpoam.a
  31 
  32 TEXTOBJS =              e_adm__msgs.o   \
  33                         e_can__msgs.o   \
  34                         e_cmb__msgs.o   \
  35                         e_fl__msgs.o    \
  36                         e_for__msgs.o   \
  37                         e_lp__msgs.o    \
  38                         e_lpp__msgs.o   \
  39                         e_lpu__msgs.o   \
  40                         e_mov__msgs.o   \
  41                         e_sht__msgs.o   \
  42                         e_stat__msgs.o  \
  43                         e_sys__msgs.o
  44 
  45 OBJECTS =               agettxt.o       \
  46                         buffers.o       \
  47                         fmtmsg.o        \


  52 TEXTSRCS =              $(TEXTOBJS:%.o=%.c)
  53 TEXTTARG =              $(TEXTSRCS:%=+ %)
  54 
  55 TFILES =                msg.source gen-defs gen-text
  56 
  57 TXTFILES=               $(TFILES)
  58 
  59 LPINC =                 ../../include
  60 OAMDEF_H =              $(LPINC)/oam_def.h
  61 
  62 CLEANFILES =            $(TEXTSRCS) $(OAMDEF_H) xx??
  63 
  64 include                 ../../../../lib/Makefile.lib
  65 
  66 # Specifically request the construction of a static library.
  67 # This library is not installed in the proto area.
  68 LIBS = $(LIBRARY)
  69 
  70 CPPFLAGS =              -I$(LPINC) $(CPPFLAGS.master)
  71 
  72 # not linted
  73 SMATCH=off
  74 
  75 .KEEP_STATE:
  76 
  77 all install :           $(TXTFILES) $(LIBS)
  78 
  79 # derived source files
  80 # and their dependencies
  81 #
  82 # beware of the hidden ordering requirement in the target source
  83 # macros.  TEXTTARG contains '+' signs to tell make that this is a
  84 # target group.  Without this syntax, an infinite build loop occurs.
  85 #
  86 $(OAMDEF_H) $(TEXTTARG) :$(TFILES)
  87                         sh gen-defs > $(OAMDEF_H)
  88                         sh gen-text
  89 
  90 # dependencies slightly overstated but necessarily explicit
  91 $(OBJS) $(PICS) :       $(OAMDEF_H) $$(@F:.o=.c)
  92 
  93 include                 ../../../../lib/Makefile.targ
  94