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


  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG= ed
  28 XPG4PROG= ed
  29 XPG6PROG= ed
  30 
  31 EDOBJ= ed.o compile.o
  32 XPG4EDOBJ= edobjs.xpg4/ed.o edobjs.xpg4/compile.o  values-xpg4.o
  33 XPG6EDOBJ= edobjs.xpg6/ed.o edobjs.xpg6/compile.o  values-xpg6.o
  34 OBJS= $(EDOBJ) $(XPG4EDOBJ) $(XPG6EDOBJ)
  35 SRCS= ./ed.c ../expr/compile.c 
  36 
  37 POFILES= $(EDOBJ:%.o=%.po)
  38 
  39 include ../Makefile.cmd
  40 
  41 CFLAGS += $(CCVERBOSE)
  42 CERRWARN += -_gcc=-Wno-parentheses
  43 CERRWARN += -_gcc=-Wno-unused-variable
  44 CERRWARN += -_gcc=-Wno-unused-function
  45 CERRWARN += -_gcc=-Wno-uninitialized
  46 
  47 # not linted
  48 SMATCH=off
  49 
  50 $(XPG4) := CFLAGS += -DXPG4  
  51 $(XPG6) := CFLAGS += -DXPG6 -I$(SRC)/lib/libc/inc 
  52 lint := LDLIBS += -lgen -lcrypt
  53 LDLIBS += -lmapmalloc -lgen -lcrypt_i
  54 XGETFLAGS += -a -x ed.xcl
  55 
  56 MAPFILE.INT =   ../expr/mapfile-intf
  57 LDFLAGS +=      $(MAPFILE.INT:%=-M%)
  58 
  59 POFILE= ed_cmd.po
  60 
  61 %.po: ../expr/%.c
  62         $(COMPILE.cpp) $< > $*.c.i
  63         $(XGETTEXT) $(XGETFLAGS) $*.c.i
  64         $(MV) messages.po $@
  65 




  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG= ed
  28 XPG4PROG= ed
  29 XPG6PROG= ed
  30 
  31 EDOBJ= ed.o compile.o
  32 XPG4EDOBJ= edobjs.xpg4/ed.o edobjs.xpg4/compile.o  values-xpg4.o
  33 XPG6EDOBJ= edobjs.xpg6/ed.o edobjs.xpg6/compile.o  values-xpg6.o
  34 OBJS= $(EDOBJ) $(XPG4EDOBJ) $(XPG6EDOBJ)
  35 SRCS= ./ed.c ../expr/compile.c 
  36 
  37 POFILES= $(EDOBJ:%.o=%.po)
  38 
  39 include ../Makefile.cmd
  40 
  41 CFLAGS += $(CCVERBOSE)
  42 CERRWARN += -_gcc=-Wno-parentheses
  43 CERRWARN += -_gcc=-Wno-unused-variable
  44 CERRWARN += -_gcc=-Wno-unused-function
  45 CERRWARN += $(CNOWARN_UNINIT)
  46 
  47 # not linted
  48 SMATCH=off
  49 
  50 $(XPG4) := CFLAGS += -DXPG4  
  51 $(XPG6) := CFLAGS += -DXPG6 -I$(SRC)/lib/libc/inc 
  52 lint := LDLIBS += -lgen -lcrypt
  53 LDLIBS += -lmapmalloc -lgen -lcrypt_i
  54 XGETFLAGS += -a -x ed.xcl
  55 
  56 MAPFILE.INT =   ../expr/mapfile-intf
  57 LDFLAGS +=      $(MAPFILE.INT:%=-M%)
  58 
  59 POFILE= ed_cmd.po
  60 
  61 %.po: ../expr/%.c
  62         $(COMPILE.cpp) $< > $*.c.i
  63         $(XGETTEXT) $(XGETFLAGS) $*.c.i
  64         $(MV) messages.po $@
  65