Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


  27 #
  28 # Copyright (c) 2018, Joyent, Inc.
  29 
  30 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
  31 
  32 PROG= awk
  33 XPG4PROG= awk
  34 
  35 OBJ1= awk0.o awk1.o awk2.o awk3.o awk4.o
  36 OBJ2= awk.o
  37 XPG4AWKOBJ= values-xpg4.o
  38 OBJS= $(OBJ2) $(OBJ1) $(XPG4AWKOBJ)
  39 SRCS= $(OBJ1:%.o=%.c)
  40 
  41 include ../Makefile.cmd
  42 
  43 CPPFLAGS += -D_FILE_OFFSET_BITS=64
  44 CFLAGS += $(CCVERBOSE)
  45 CERRWARN += -_gcc=-Wno-unused-label
  46 CERRWARN += -_gcc=-Wno-parentheses
  47 CERRWARN += -_gcc=-Wno-uninitialized
  48 YFLAGS += -d
  49 LDLIBS += -lm
  50 CLEANFILES= awk.c y.tab.h
  51 
  52 # not linted
  53 SMATCH=off
  54 
  55 # for messaging catalog
  56 
  57 POFILE= awk_xpg4.po
  58 POFILES= $(OBJ1:%.o=%.po) $(OBJ2:%.o=%.po)
  59 
  60 .KEEP_STATE:
  61 
  62 .PARALLEL:      $(OBJS)
  63 
  64 all: $(XPG4)
  65 
  66 $(XPG4): $(OBJS)
  67         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)




  27 #
  28 # Copyright (c) 2018, Joyent, Inc.
  29 
  30 # NOTE: this is nawk in usr/src/cmd/awk_xpg4 to reside as /usr/xpg4/bin/awk
  31 
  32 PROG= awk
  33 XPG4PROG= awk
  34 
  35 OBJ1= awk0.o awk1.o awk2.o awk3.o awk4.o
  36 OBJ2= awk.o
  37 XPG4AWKOBJ= values-xpg4.o
  38 OBJS= $(OBJ2) $(OBJ1) $(XPG4AWKOBJ)
  39 SRCS= $(OBJ1:%.o=%.c)
  40 
  41 include ../Makefile.cmd
  42 
  43 CPPFLAGS += -D_FILE_OFFSET_BITS=64
  44 CFLAGS += $(CCVERBOSE)
  45 CERRWARN += -_gcc=-Wno-unused-label
  46 CERRWARN += -_gcc=-Wno-parentheses
  47 CERRWARN += $(CNOWARN_UNINIT)
  48 YFLAGS += -d
  49 LDLIBS += -lm
  50 CLEANFILES= awk.c y.tab.h
  51 
  52 # not linted
  53 SMATCH=off
  54 
  55 # for messaging catalog
  56 
  57 POFILE= awk_xpg4.po
  58 POFILES= $(OBJ1:%.o=%.po) $(OBJ2:%.o=%.po)
  59 
  60 .KEEP_STATE:
  61 
  62 .PARALLEL:      $(OBJS)
  63 
  64 all: $(XPG4)
  65 
  66 $(XPG4): $(OBJS)
  67         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)