+LINT = splint
+BUILT_SOURCES = listobjs
+
MAGIC = $(pkgdatadir)/magic
-lib_LTLIBRARIES = libmagic.la
+AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
+
include_HEADERS = magic.h
+noinst_HEADERS = file.h names.h patchlevel.h readelf.h tar.h
-bin_PROGRAMS = file
-
-AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
+#lib_LTLIBRARIES = libmagic.la
+usrlibdir = $(libdir)@MARK64@
+usrlib_LTLIBRARIES = libmagic.la
libmagic_la_SOURCES = magic.c apprentice.c softmagic.c ascmagic.c \
compress.c is_tar.c readelf.c print.c fsmagic.c \
funcs.c file.h names.h patchlevel.h readelf.h tar.h apptype.c
libmagic_la_LDFLAGS = -version-info 1:0:0
+bin_PROGRAMS = file
file_SOURCES = file.c
file_LDADD = libmagic.la
+
+listobjs:
+ @echo $(libmagic_la_SOURCES:.c=.lo) > $@
+
+.PHONY: lint
+lint:
+ $(LINT) $(DEFS) $(INCLUDES) $(file_SOURCES) $(libmagic_la_SOURCES) $(include_HEADERS) $(noinst_HEADERS)
+
+.PHONY: sources
+sources:
+ @echo $(libmagic_la_SOURCES:%=file/src/%)
+
+++ /dev/null
-/* Autoheader needs me */
-#undef PACKAGE
-
-/* Autoheader needs me */
-#undef VERSION
-
-/* Define if builtin ELF support is enabled. */
-#undef BUILTIN_ELF
-
-/* Define if ELF core file support is enabled. */
-#undef ELFCORE
-
-/* Define if the `long long' type works. */
-#undef HAVE_LONG_LONG
-
-/* Define if we have "tm_zone" in "struct tm". */
-#undef HAVE_TM_ZONE
-
-/* Define if we have a global "char * []" "tzname" variable. */
-#undef HAVE_TZNAME
-
-/* Define if we have "tm_isdst" in "struct tm". */
-#undef HAVE_TM_ISDST
-
-/* Define if we have a global "int" variable "daylight". */
-#undef HAVE_DAYLIGHT
-
-/* Define if we have a mkstemp */
-#undef HAVE_MKSTEMP
-
-/* Define to `unsigned char' if standard headers don't define. */
-#undef uint8_t
-
-/* Define to `unsigned short' if standard headers don't define. */
-#undef uint16_t
-
-/* Define to `unsigned int' if standard headers don't define. */
-#undef uint32_t
-
-/* Define to `unsigned long long', if available, or `unsigned long', if
- standard headers don't define. */
-#undef uint64_t
-
-/* Define to `int' if standard headers don't define. */
-#undef int32_t
-
-/* FIXME: These have to be added manually because autoheader doesn't know
- about AC_CHECK_SIZEOF_INCLUDES. */
-
-/* The number of bytes in a uint8_t. */
-#define SIZEOF_UINT8_T 0
-
-/* The number of bytes in a uint16_t. */
-#define SIZEOF_UINT16_T 0
-
-/* The number of bytes in a uint32_t. */
-#define SIZEOF_UINT32_T 0
-
-/* The number of bytes in a uint64_t. */
-#define SIZEOF_UINT64_T 0