Print this page
10476 file(1) could be smatch clean


  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 # not linted
  48 SMATCH=off
  49 
  50 POFILE= file_all.po
  51 POFILES= $(SRCS:%.c=%.po)
  52 
  53 # The debug binary can be built using the flags
  54 # SOURCEDEBUG=yes CGLOBALSTATIC=
  55 # This will avoid the multiple symbols definition error
  56 # for static global variables in elf_read32.o and elf_read64.o
  57 
  58 LDLIBS += -lelf
  59 CPPFLAGS += -I$(ELFCAP) -I$(SGSRTCID)
  60 $(XPG4) := CFLAGS += -DXPG4
  61 
  62 ROOTETCMAGIC= $(MAGIC:%=$(ROOTETC)/%)
  63 
  64 $(ROOTETCMAGIC) :=      FILEMODE =      $(LIBFILEMODE)
  65 
  66 .PARALLEL:      $(OBJS) $(XPG4OBJS) $(POFILES)
  67 
  68 .KEEP_STATE:
  69 




  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 
  65 .KEEP_STATE:
  66