1 AUTOMAKE_OPTIONS = foreign 1.11 no-dist-gzip dist-bzip2 subdir-objects 2 ACLOCAL_AMFLAGS = -I m4 3 4 INCLUDES = -I$(top_srcdir)/include -I. -I$(top_srcdir)/halloc 5 AM_CFLAGS = -ansi -pedantic -Wall -Wextra -Wno-long-long -O0 -g 6 7 SUBDIRS = docs 8 9 EXTRA_DIST = \ 10 AUTHORS README LICENSE \ 11 nestegg-uninstalled.pc.in \ 12 m4/as-ac-expand.m4 \ 13 m4/pkg.m4 \ 14 m4/ax_create_stdint_h.m4 \ 15 halloc/src/halloc.c \ 16 halloc/halloc.h \ 17 halloc/src/align.h \ 18 halloc/src/hlist.h \ 19 halloc/src/macros.h 20 21 pkgconfigdir = $(libdir)/pkgconfig 22 pkgconfig_DATA = nestegg.pc 23 24 nesteggincludedir = $(includedir)/nestegg 25 nestegginclude_HEADERS = include/nestegg/nestegg.h include/nestegg/nestegg-stdint.h 26 27 lib_LTLIBRARIES = src/libnestegg.la 28 29 src_libnestegg_la_SOURCES = \ 30 src/nestegg.c \ 31 halloc/src/halloc.c \ 32 halloc/halloc.h \ 33 halloc/src/align.h \ 34 halloc/src/hlist.h \ 35 halloc/src/macros.h 36 37 check_PROGRAMS = test/test 38 39 test_test_SOURCES = test/test.c 40 test_test_LDADD = src/libnestegg.la 41 42 DISTCLEANFILES = include/nestegg/nestegg-stdint.h 43 44 dist-hook: 45 find $(distdir) -type d -name '.git' | xargs rm -rf 46 47 debug: 48 $(MAKE) all CFLAGS="@DEBUG@" 49 50 profile: 51 $(MAKE) all CFLAGS="@PROFILE@" 52