Print this page
10080 smatch Makefile changes for usr/src/cmd
   1 #
   2 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #

   5 
   6 include         ../../Makefile.cmd
   7 
   8 PROG =          neqn
   9 
  10 CSRCS =         diacrit.c eqnbox.c font.c fromto.c funny.c      \
  11                 glob.c integral.c io.c lex.c lookup.c           \
  12                 mark.c matrix.c move.c over.c paren.c           \
  13                 pile.c shift.c size.c sqrt.c text.c
  14 
  15 SRCS =          $(CSRCS:%=../%)
  16 
  17 YACCSRC =       e.y
  18 
  19 COBJS =         $(CSRCS:%.c=%.o)
  20 OBJS =          $(YACCSRC:%.y=%.o) $(COBJS)
  21 
  22 
  23 CLEANFILES =    y.tab.c y.tab.h $(YACCSRC:%.y=%.c) $(YACCSRC:%.y=%.def)
  24 
  25 YFLAGS =        -d
  26 CPPFLAGS =      -DNEQN -I. -I.. $(CPPFLAGS.master)
  27 LDFLAGS +=      $(MAPFILE.NGB:%=-M%)
  28 
  29 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  30 CERRWARN +=     -_gcc=-Wno-uninitialized
  31 CERRWARN +=     -_gcc=-Wno-unused-label
  32 



  33 #
  34 # for message catalog
  35 #
  36 POFILE= neqn.d.po
  37 POFILES= e.po
  38 
  39 .KEEP_STATE:
  40 
  41 all :           $(PROG)
  42 
  43 $(PROG) :       $(OBJS) $(MAPFILE.NGB)
  44                 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
  45                 $(POST_PROCESS)
  46 
  47 catalog:        $(POFILE)
  48 
  49 $(POFILE):      $(POFILES)
  50          $(RM)  $@
  51          cat     $(POFILES)      > $@
  52 
   1 #
   2 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #
   5 # Copyright (c) 2018, Joyent, Inc.
   6 
   7 include         ../../Makefile.cmd
   8 
   9 PROG =          neqn
  10 
  11 CSRCS =         diacrit.c eqnbox.c font.c fromto.c funny.c      \
  12                 glob.c integral.c io.c lex.c lookup.c           \
  13                 mark.c matrix.c move.c over.c paren.c           \
  14                 pile.c shift.c size.c sqrt.c text.c
  15 
  16 SRCS =          $(CSRCS:%=../%)
  17 
  18 YACCSRC =       e.y
  19 
  20 COBJS =         $(CSRCS:%.c=%.o)
  21 OBJS =          $(YACCSRC:%.y=%.o) $(COBJS)
  22 
  23 
  24 CLEANFILES =    y.tab.c y.tab.h $(YACCSRC:%.y=%.c) $(YACCSRC:%.y=%.def)
  25 
  26 YFLAGS =        -d
  27 CPPFLAGS =      -DNEQN -I. -I.. $(CPPFLAGS.master)
  28 LDFLAGS +=      $(MAPFILE.NGB:%=-M%)
  29 
  30 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  31 CERRWARN +=     -_gcc=-Wno-uninitialized
  32 CERRWARN +=     -_gcc=-Wno-unused-label
  33 
  34 # not linted
  35 SMATCH=off
  36 
  37 #
  38 # for message catalog
  39 #
  40 POFILE= neqn.d.po
  41 POFILES= e.po
  42 
  43 .KEEP_STATE:
  44 
  45 all :           $(PROG)
  46 
  47 $(PROG) :       $(OBJS) $(MAPFILE.NGB)
  48                 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
  49                 $(POST_PROCESS)
  50 
  51 catalog:        $(POFILE)
  52 
  53 $(POFILE):      $(POFILES)
  54          $(RM)  $@
  55          cat     $(POFILES)      > $@
  56