Makefile.am 899 B

123456789101112131415161718192021222324252627282930
  1. MAGIC = $(pkgdatadir)/magic
  2. lib_LTLIBRARIES = libmagic.la
  3. nodist_include_HEADERS = magic.h
  4. bin_PROGRAMS = file
  5. AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
  6. AM_CFLAGS = $(CFLAG_VISIBILITY) @WARNINGS@
  7. libmagic_la_SOURCES = buffer.c magic.c apprentice.c softmagic.c ascmagic.c \
  8. encoding.c compress.c is_csv.c is_json.c is_tar.c readelf.c print.c \
  9. fsmagic.c funcs.c file.h readelf.h tar.h apptype.c der.c der.h \
  10. file_opts.h elfclass.h mygetopt.h cdf.c cdf_time.c readcdf.c cdf.h
  11. libmagic_la_LDFLAGS = -no-undefined -version-info 1:0:0
  12. if MINGW
  13. MINGWLIBS = -lgnurx -lshlwapi
  14. else
  15. MINGWLIBS =
  16. endif
  17. libmagic_la_LIBADD = $(LTLIBOBJS) $(MINGWLIBS)
  18. file_SOURCES = file.c seccomp.c
  19. file_LDADD = libmagic.la
  20. CLEANFILES = magic.h
  21. EXTRA_DIST = magic.h.in cdf.mk BNF memtest.c
  22. HDR= $(top_srcdir)/src/magic.h.in
  23. BUILT_SOURCES = magic.h
  24. magic.h: ${HDR}
  25. sed -e "s/X.YY/$$(echo @VERSION@ | tr -d .)/" < ${HDR} > $@