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


  22 #
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 PROG= lofiadm
  29 OBJS= main.o utils.o
  30 LZMAOBJS= LzmaEnc.o LzFind.o
  31 
  32 SRCS= $(OBJS:%.o=%.c)
  33 
  34 POFILES= $(OBJS:%.o=%.po)
  35 
  36 include ../Makefile.cmd
  37 
  38 CPPFLAGS += -I $(SRC)/common/crypto -I $(SRC)/common/lzma
  39 LDLIBS += -ldevinfo -lpkcs11 -lcryptoutil
  40 
  41 CERRWARN += -_gcc=-Wno-parentheses
  42 CERRWARN += -_gcc=-Wno-uninitialized
  43 
  44 # not linted
  45 SMATCH=off
  46 
  47 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
  48 
  49 .KEEP_STATE:
  50 
  51 all: $(LZMAOBJS) $(PROG) $(POFILE)
  52 
  53 LzmaEnc.o:      $(SRC)/common/lzma/LzmaEnc.c
  54         $(COMPILE.c) -o $@ $(SRC)/common/lzma/LzmaEnc.c
  55         $(POST_PROCESS)
  56 
  57 LzFind.o:       $(SRC)/common/lzma/LzFind.c
  58         $(COMPILE.c) -o $@ $(SRC)/common/lzma/LzFind.c
  59         $(POST_PROCESS)
  60 
  61 $(PROG): $(OBJS)
  62         $(LINK.c) -o $@ $(OBJS) $(LZMAOBJS) $(LDLIBS)


  22 #
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 PROG= lofiadm
  29 OBJS= main.o utils.o
  30 LZMAOBJS= LzmaEnc.o LzFind.o
  31 
  32 SRCS= $(OBJS:%.o=%.c)
  33 
  34 POFILES= $(OBJS:%.o=%.po)
  35 
  36 include ../Makefile.cmd
  37 
  38 CPPFLAGS += -I $(SRC)/common/crypto -I $(SRC)/common/lzma
  39 LDLIBS += -ldevinfo -lpkcs11 -lcryptoutil
  40 
  41 CERRWARN += -_gcc=-Wno-parentheses
  42 CERRWARN += $(CNOWARN_UNINIT)
  43 
  44 # not linted
  45 SMATCH=off
  46 
  47 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
  48 
  49 .KEEP_STATE:
  50 
  51 all: $(LZMAOBJS) $(PROG) $(POFILE)
  52 
  53 LzmaEnc.o:      $(SRC)/common/lzma/LzmaEnc.c
  54         $(COMPILE.c) -o $@ $(SRC)/common/lzma/LzmaEnc.c
  55         $(POST_PROCESS)
  56 
  57 LzFind.o:       $(SRC)/common/lzma/LzFind.c
  58         $(COMPILE.c) -o $@ $(SRC)/common/lzma/LzFind.c
  59         $(POST_PROCESS)
  60 
  61 $(PROG): $(OBJS)
  62         $(LINK.c) -o $@ $(OBJS) $(LZMAOBJS) $(LDLIBS)