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


  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright (c) 2018, Joyent, Inc.
  25 
  26 PROG= expr
  27 XPG4PROG= expr
  28 XPG6PROG= expr
  29 
  30 EXPROBJ= exprobjs/expr.o exprobjs/compile.o
  31 XPG4EXPROBJ= exprobjs.xpg4/expr.o exprobjs.xpg4/compile.o
  32 XPG6EXPROBJ= exprobjs.xpg6/expr.o exprobjs.xpg6/compile.o
  33 
  34 OBJS= $(EXPROBJ) $(XPG4EXPROBJ) $(XPG6EXPROBJ)
  35 SRCS= expr.c compile.c
  36 
  37 include ../Makefile.cmd
  38 
  39 CFLAGS += $(CCVERBOSE)
  40 CERRWARN += -_gcc=-Wno-uninitialized
  41 CERRWARN += -_gcc=-Wno-extra
  42 # "missing type for func"
  43 SMATCH=off
  44 $(XPG4) := CFLAGS += -DXPG4
  45 $(XPG6) := CFLAGS += -DXPG6
  46 
  47 XGETFLAGS += -a -x expr.xcl
  48 
  49 LDLIBS += -lgen
  50 
  51 MAPFILES =      $(MAPFILE.INT) $(MAPFILE.NGB)
  52 LDFLAGS +=      $(MAPFILES:%=-M%)
  53 
  54 .KEEP_STATE:
  55 
  56 all: $(PROG) $(XPG4) $(XPG6)
  57 
  58 install: all $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
  59 
  60 $(PROG): exprobjs $(EXPROBJ) $(MAPFILES)




  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright (c) 2018, Joyent, Inc.
  25 
  26 PROG= expr
  27 XPG4PROG= expr
  28 XPG6PROG= expr
  29 
  30 EXPROBJ= exprobjs/expr.o exprobjs/compile.o
  31 XPG4EXPROBJ= exprobjs.xpg4/expr.o exprobjs.xpg4/compile.o
  32 XPG6EXPROBJ= exprobjs.xpg6/expr.o exprobjs.xpg6/compile.o
  33 
  34 OBJS= $(EXPROBJ) $(XPG4EXPROBJ) $(XPG6EXPROBJ)
  35 SRCS= expr.c compile.c
  36 
  37 include ../Makefile.cmd
  38 
  39 CFLAGS += $(CCVERBOSE)
  40 CERRWARN += $(CNOWARN_UNINIT)
  41 CERRWARN += -_gcc=-Wno-extra
  42 # "missing type for func"
  43 SMATCH=off
  44 $(XPG4) := CFLAGS += -DXPG4
  45 $(XPG6) := CFLAGS += -DXPG6
  46 
  47 XGETFLAGS += -a -x expr.xcl
  48 
  49 LDLIBS += -lgen
  50 
  51 MAPFILES =      $(MAPFILE.INT) $(MAPFILE.NGB)
  52 LDFLAGS +=      $(MAPFILES:%=-M%)
  53 
  54 .KEEP_STATE:
  55 
  56 all: $(PROG) $(XPG4) $(XPG6)
  57 
  58 install: all $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
  59 
  60 $(PROG): exprobjs $(EXPROBJ) $(MAPFILES)