Rewrite to use video4linux2 API.
[fmtools.git] / Makefile.am
blobfb9635528e1f09abdf35bdeeaac0097002f5f43c
1 AM_CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes
3 bin_PROGRAMS = fm fmscan
5 fm_SOURCES = fm.c fmlib.c fmlib.h
6 fm_LDADD = -lm
8 fmscan_SOURCES = fmscan.c fmlib.c fmlib.h
9 fmscan_LDADD = -lm
11 #### The rest of this file is just for the testsuite.  It is just
12 #### boilerplate from the Autoconf manual describing how to use
13 #### Autotest.
15 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
16 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
17         :;{ \
18           echo '# Signature of the current package.' && \
19           echo 'm4_define([AT_PACKAGE_NAME],' && \
20           echo '  [@PACKAGE_NAME@])' && \
21           echo 'm4_define([AT_PACKAGE_TARNAME],' && \
22           echo '  [@PACKAGE_TARNAME@])' && \
23           echo 'm4_define([AT_PACKAGE_VERSION],' && \
24           echo '  [@PACKAGE_VERSION@])' && \
25           echo 'm4_define([AT_PACKAGE_STRING],' && \
26           echo '  [@PACKAGE_STRING@])' && \
27           echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \
28           echo '  [@PACKAGE_BUGREPORT@])'; \
29           echo 'm4_define([AT_PACKAGE_URL],' && \
30           echo '  [@PACKAGE_URL@])'; \
31         } >'$(srcdir)/package.m4'
33 EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) atlocal.in
34 DISTCLEANFILES = atconfig
35 TESTSUITE = $(srcdir)/testsuite
36 TESTSUITE_AT = \
37         $(srcdir)/testsuite.at \
38         $(srcdir)/test-fm.at \
39         $(srcdir)/test-fmscan.at \
40         $(srcdir)/package.m4
42 check-local: atconfig atlocal $(TESTSUITE)
43         $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
45 installcheck-local: atconfig atlocal $(TESTSUITE)
46         $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
47           $(TESTSUITEFLAGS)
49 clean-local:
50         test ! -f '$(TESTSUITE)' || \
51          $(SHELL) '$(TESTSUITE)' --clean
53 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
54 AUTOTEST = $(AUTOM4TE) --language=autotest
55 $(TESTSUITE): $(TESTSUITE_AT)
56         $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
57         mv $@.tmp $@