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


  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG= file
  28 XPG4PROG= file
  29 MAGIC= magic
  30 
  31 ELFCAP= $(SRC)/common/elfcap
  32 SGSRTCID=       $(SRC)/common/sgsrtcid
  33 
  34 LOBJS=  file.o elf_read32.o elf_read64.o magicutils.o
  35 OBJS=   $(LOBJS) elfcap.o
  36 XPG4OBJS= $(OBJS:%.o=xpg4_%.o)
  37 SRCS=   file.c elf_read.c magicutils.c $(ELFCAP)/elfcap.c
  38 
  39 include ../Makefile.cmd
  40 
  41 CSTD=   $(CSTD_GNU99)
  42 C99LMODE= -Xc99=%all
  43 
  44 CERRWARN += -_gcc=-Wno-uninitialized
  45 CERRWARN += -_gcc=-Wno-type-limits
  46 
  47 POFILE= file_all.po
  48 POFILES= $(SRCS:%.c=%.po)
  49 
  50 # The debug binary can be built using the flags
  51 # SOURCEDEBUG=yes CGLOBALSTATIC=
  52 # This will avoid the multiple symbols definition error
  53 # for static global variables in elf_read32.o and elf_read64.o
  54 
  55 LDLIBS += -lelf
  56 CPPFLAGS += -I$(ELFCAP) -I$(SGSRTCID)
  57 $(XPG4) := CFLAGS += -DXPG4
  58 
  59 ROOTETCMAGIC= $(MAGIC:%=$(ROOTETC)/%)
  60 
  61 $(ROOTETCMAGIC) :=      FILEMODE =      $(LIBFILEMODE)
  62 
  63 .PARALLEL:      $(OBJS) $(XPG4OBJS) $(POFILES)
  64 




  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG= file
  28 XPG4PROG= file
  29 MAGIC= magic
  30 
  31 ELFCAP= $(SRC)/common/elfcap
  32 SGSRTCID=       $(SRC)/common/sgsrtcid
  33 
  34 LOBJS=  file.o elf_read32.o elf_read64.o magicutils.o
  35 OBJS=   $(LOBJS) elfcap.o
  36 XPG4OBJS= $(OBJS:%.o=xpg4_%.o)
  37 SRCS=   file.c elf_read.c magicutils.c $(ELFCAP)/elfcap.c
  38 
  39 include ../Makefile.cmd
  40 
  41 CSTD=   $(CSTD_GNU99)
  42 C99LMODE= -Xc99=%all
  43 
  44 CERRWARN += $(CNOWARN_UNINIT)
  45 CERRWARN += -_gcc=-Wno-type-limits
  46 
  47 POFILE= file_all.po
  48 POFILES= $(SRCS:%.c=%.po)
  49 
  50 # The debug binary can be built using the flags
  51 # SOURCEDEBUG=yes CGLOBALSTATIC=
  52 # This will avoid the multiple symbols definition error
  53 # for static global variables in elf_read32.o and elf_read64.o
  54 
  55 LDLIBS += -lelf
  56 CPPFLAGS += -I$(ELFCAP) -I$(SGSRTCID)
  57 $(XPG4) := CFLAGS += -DXPG4
  58 
  59 ROOTETCMAGIC= $(MAGIC:%=$(ROOTETC)/%)
  60 
  61 $(ROOTETCMAGIC) :=      FILEMODE =      $(LIBFILEMODE)
  62 
  63 .PARALLEL:      $(OBJS) $(XPG4OBJS) $(POFILES)
  64