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 | src/google/dense_hash_map \
|
---|
14 | src/google/dense_hash_set \
|
---|
15 | src/google/sparse_hash_map \
|
---|
16 | src/google/sparse_hash_set \
|
---|
17 | src/google/sparsetable
|
---|
18 |
|
---|
19 | docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
|
---|
20 | ## This is for HTML and other documentation you want to install.
|
---|
21 | ## Add your documentation files (in doc/) in addition to these boilerplate
|
---|
22 | ## Also add a TODO file if you have one
|
---|
23 | dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
|
---|
24 | doc/dense_hash_map.html \
|
---|
25 | doc/dense_hash_set.html \
|
---|
26 | doc/sparse_hash_map.html \
|
---|
27 | doc/sparse_hash_set.html \
|
---|
28 | doc/sparsetable.html \
|
---|
29 | doc/implementation.html \
|
---|
30 | doc/performance.html
|
---|
31 |
|
---|
32 | ## The libraries (.so's) you want to install
|
---|
33 | lib_LTLIBRARIES =
|
---|
34 |
|
---|
35 | ## unittests you want to run when people type 'make check'.
|
---|
36 | ## TESTS is for binary unittests, check_SCRIPTS for script-based unittests.
|
---|
37 | ## TESTS_ENVIRONMENT sets environment variables for when you run unittest,
|
---|
38 | ## but it only seems to take effect for *binary* unittests (argh!)
|
---|
39 | TESTS = sparsetable_unittest hashtable_unittest
|
---|
40 | check_SCRIPTS =
|
---|
41 | TESTS_ENVIRONMENT =
|
---|
42 |
|
---|
43 | ## This should always include $(TESTS), but may also include other
|
---|
44 | ## binaries that you compile but don't want automatically installed.
|
---|
45 | noinst_PROGRAMS = $(TESTS) time_hash_map
|
---|
46 |
|
---|
47 |
|
---|
48 | ## vvvv RULES TO MAKE THE LIBRARIES, BINARIES, AND UNITTESTS
|
---|
49 |
|
---|
50 | # This doesn't include the config.h file, but everything else we make
|
---|
51 | configure_generated_h_files = \
|
---|
52 | src/google/sparsehash/hash_fun.h \
|
---|
53 | src/hash_map.h
|
---|
54 |
|
---|
55 | sparsehashincludedir = $(googleincludedir)/sparsehash
|
---|
56 | sparsehashinclude_HEADERS = \
|
---|
57 | src/google/sparsehash/hash_fun.h \
|
---|
58 | src/google/sparsehash/densehashtable.h \
|
---|
59 | src/google/sparsehash/sparsehashtable.h \
|
---|
60 | src/google/sparsehash/config.h
|
---|
61 |
|
---|
62 | sparsetable_unittest_SOURCES = \
|
---|
63 | src/sparsetable_unittest.cc \
|
---|
64 | src/google/sparsehash/config.h \
|
---|
65 | src/google/sparsetable \
|
---|
66 | src/sparsetable_unittest.expected
|
---|
67 |
|
---|
68 | hashtable_unittest_SOURCES = \
|
---|
69 | src/hashtable_unittest.cc \
|
---|
70 | $(googleinclude_HEADERS) \
|
---|
71 | $(sparsehashinclude_HEADERS) \
|
---|
72 | src/words
|
---|
73 |
|
---|
74 | time_hash_map_SOURCES = \
|
---|
75 | src/time_hash_map.cc \
|
---|
76 | src/google/sparsehash/config.h \
|
---|
77 | src/hash_map.h \
|
---|
78 | $(googleinclude_HEADERS)
|
---|
79 |
|
---|
80 | ## ^^^^ END OF RULES TO MAKE THE LIBRARIES, BINARIES, AND UNITTESTS
|
---|
81 |
|
---|
82 |
|
---|
83 | rpm: dist-gzip packages/rpm.sh packages/rpm/rpm.spec
|
---|
84 | @cd packages && ./rpm.sh ${PACKAGE} ${VERSION}
|
---|
85 |
|
---|
86 | deb: dist-gzip packages/deb.sh packages/deb/*
|
---|
87 | @cd packages && ./deb.sh ${PACKAGE} ${VERSION}
|
---|
88 |
|
---|
89 | EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec packages/deb.sh packages/deb \
|
---|
90 | src/config.h.include src/windows experimental
|
---|
91 |
|
---|
92 | DISTCLEANFILES = $(configure_generated_h_files)
|
---|