bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame^] | 1 | ## Process this file with automake to produce Makefile.in |
| 2 | |
| 3 | # Make sure that when we re-make ./configure, we get the macros we need |
| 4 | ACLOCAL_AMFLAGS = -I `pwd`/../autoconf |
| 5 | |
| 6 | # This is so we can #include <google/foo> |
| 7 | AM_CPPFLAGS = -I$(top_srcdir)/src |
| 8 | |
| 9 | googleincludedir = $(includedir)/google |
| 10 | ## The .h files you want to install (that is, .h files that people |
| 11 | ## who install this package can include in their own applications.) |
| 12 | googleinclude_HEADERS = |
| 13 | |
| 14 | docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) |
| 15 | ## This is for HTML and other documentation you want to install. |
| 16 | ## Add your documentation files (in doc/) in addition to these |
| 17 | ## top-level boilerplate files. Also add a TODO file if you have one. |
| 18 | dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README |
| 19 | |
| 20 | ## The libraries (.so's) you want to install |
| 21 | lib_LTLIBRARIES = libairbag.la |
| 22 | |
| 23 | ## unittests you want to run when people type 'make check'. |
| 24 | ## TESTS is for binary unittests, check_SCRIPTS for script-based unittests. |
| 25 | ## TESTS_ENVIRONMENT sets environment variables for when you run unittest, |
| 26 | ## but it only seems to take effect for *binary* unittests (argh!) |
| 27 | TESTS = source_line_resolver_unittest |
| 28 | TESTS_ENVIRONMENT = |
| 29 | check_SCRIPTS = |
| 30 | # Every time you add a unittest to check_SCRIPTS, add it here too |
| 31 | noinst_SCRIPTS = |
| 32 | |
| 33 | ## vvvv RULES TO MAKE THE LIBRARIES, BINARIES, AND UNITTESTS |
| 34 | |
| 35 | libairbag_la_SOURCES = \ |
| 36 | src/processor/source_line_resolver.cc \ |
| 37 | src/processor/source_line_resolver.h |
| 38 | |
| 39 | source_line_resolver_unittest_SOURCES = \ |
| 40 | src/processor/source_line_resolver_unittest.cc \ |
| 41 | src/processor/source_line_resolver.h |
| 42 | source_line_resolver_unittest_LDADD = source_line_resolver.lo |
| 43 | |
| 44 | ## ^^^^ END OF RULES TO MAKE THE LIBRARIES, BINARIES, AND UNITTESTS |
| 45 | |
| 46 | |
| 47 | ## This should always include $(TESTS), but may also include other |
| 48 | ## binaries that you compile but don't want automatically installed. |
| 49 | noinst_PROGRAMS = $(TESTS) |
| 50 | |
| 51 | rpm: dist-gzip packages/rpm.sh packages/rpm/rpm.spec |
| 52 | @cd packages && ./rpm.sh ${PACKAGE} ${VERSION} |
| 53 | |
| 54 | deb: dist-gzip packages/deb.sh packages/deb/* |
| 55 | @cd packages && ./deb.sh ${PACKAGE} ${VERSION} |
| 56 | |
| 57 | libtool: $(LIBTOOL_DEPS) |
| 58 | $(SHELL) ./config.status --recheck |
| 59 | EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec packages/deb.sh packages/deb \ |
| 60 | $(SCRIPTS) libtool |
| 61 | |
| 62 | ## If you create hash_map.h, hash_set.h, and/or hash_fun.h via the |
| 63 | ## ACC_CXX_MAKE_*_H configure.ac macros, add those files here. |
| 64 | DISTCLEANFILES = |