blob: 57ac38d0246612f0986f0d8d11a0f703859fad2b [file] [log] [blame]
Jeff Thompsonca45e552013-06-26 17:40:06 -07001include aminclude.am
2
Jeff Thompsonff092f52013-06-19 13:38:12 -07003## Place generated object files (.o) into the same directory as their source
4## files, in order to avoid collisions when non-recursive make is used.
5AUTOMAKE_OPTIONS = subdir-objects
6
7## Additional flags to pass to aclocal when it is invoked automatically at
8## make time. The ${ACLOCAL_FLAGS} variable is picked up from the environment
9## to provide a way for the user to supply additional arguments.
Jeff Thompson23cb7422013-10-09 16:11:47 -070010ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
Jeff Thompsonff092f52013-06-19 13:38:12 -070011
Jeff Thompson4f031642013-08-05 11:03:16 -070012lib_LTLIBRARIES = libndn-c.la libndn-cpp.la
Jeff Thompson36174062013-06-21 16:03:44 -070013
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080014# "make install" will also install the include headers.
Alexander Afanasyevfad679c2014-01-06 18:09:26 -080015SUBDIRS = include .
16
17if COMPILE_TESTS
18 SUBDIRS += tests
19if HAVE_BOOST_UNIT_TEST_FRAMEWORK
20 SUBDIRS += tests_boost
21endif
22endif
Jeff Thompson25b4e612013-10-10 16:03:24 -070023
Jeff Thompson2bf5cdf2013-10-02 16:55:23 -070024# Just the C code.
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080025## To regenerate:
26## for i in `find src/c -name '*.c' -or -name '*.h'`; do echo " $i \\"; done
27##
28## Note that public header files do not need to be included here (handled by include/Makefile.am)
29libndn_c_la_SOURCES = \
Jeff Thompson2db60372013-10-22 13:38:20 -070030 src/c/data.h \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080031 src/c/encoding/binary-xml-data.c \
32 src/c/encoding/binary-xml-data.h \
33 src/c/encoding/binary-xml-decoder.c \
34 src/c/encoding/binary-xml-decoder.h \
35 src/c/encoding/binary-xml-element-reader.c \
36 src/c/encoding/binary-xml-element-reader.h \
37 src/c/encoding/binary-xml-encoder.c \
38 src/c/encoding/binary-xml-encoder.h \
39 src/c/encoding/binary-xml-forwarding-entry.c \
40 src/c/encoding/binary-xml-forwarding-entry.h \
41 src/c/encoding/binary-xml-interest.c \
42 src/c/encoding/binary-xml-interest.h \
43 src/c/encoding/binary-xml-key.c \
44 src/c/encoding/binary-xml-key.h \
45 src/c/encoding/binary-xml-name.c \
46 src/c/encoding/binary-xml-name.h \
47 src/c/encoding/binary-xml-publisher-public-key-digest.c \
48 src/c/encoding/binary-xml-publisher-public-key-digest.h \
49 src/c/encoding/binary-xml-structure-decoder.c \
50 src/c/encoding/binary-xml-structure-decoder.h \
51 src/c/encoding/binary-xml.h \
52 src/c/errors.c \
53 src/c/errors.h \
Jeff Thompson2db60372013-10-22 13:38:20 -070054 src/c/forwarding-entry.h \
55 src/c/forwarding-flags.c \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080056 src/c/interest.c \
57 src/c/interest.h \
Jeff Thompson98ec85a2013-12-17 11:57:56 -080058 src/c/key-locator.h \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080059 src/c/name.c \
60 src/c/name.h \
Jeff Thompson2db60372013-10-22 13:38:20 -070061 src/c/publisher-public-key-digest.h \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080062 src/c/transport/socket-transport.c \
63 src/c/transport/socket-transport.h \
Jeff Thompson2db60372013-10-22 13:38:20 -070064 src/c/transport/tcp-transport.h \
65 src/c/transport/udp-transport.h \
66 src/c/util/blob.h \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080067 src/c/util/crypto.c \
68 src/c/util/crypto.h \
69 src/c/util/dynamic-uint8-array.c \
70 src/c/util/dynamic-uint8-array.h \
71 src/c/util/ndn_memory.c \
72 src/c/util/ndn_memory.h \
73 src/c/util/ndn_realloc.c \
74 src/c/util/ndn_realloc.h \
75 src/c/util/time.c \
76 src/c/util/time.h
Jeff Thompsonff092f52013-06-19 13:38:12 -070077
Alexander Afanasyev0d3671a2014-01-02 20:09:59 -080078libndn_c_la_LIBADD = @OPENSSL_LIBS@
79libndn_c_la_LDFLAGS = @OPENSSL_LDFLAGS@
80libndn_c_la_CFLAGS = @OPENSSL_INCLUDES@
81
Jeff Thompson2bf5cdf2013-10-02 16:55:23 -070082# C++ code and also the C code.
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080083## To regenerate:
84## for i in `find src -name '*.cpp' -or -name '*.hpp' -or -name '*.h' -and -not -path 'src/c/*'`; do echo " $i \\"; done
85libndn_cpp_la_SOURCES = $(libndn_c_la_SOURCES) \
Jeff Thompson2db60372013-10-22 13:38:20 -070086 src/common.cpp \
87 src/data.cpp \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080088 src/encoding/binary-xml-decoder.hpp \
89 src/encoding/binary-xml-encoder.hpp \
90 src/encoding/binary-xml-structure-decoder.hpp \
Alexander Afanasyev85480842014-01-06 14:46:54 -080091 src/encoding/binary-xml-wire-format.cpp \
Alexander Afanasyev13bb51a2014-01-02 19:13:26 -080092 src/encoding/block.cpp \
Alexander Afanasyev0ea6e082013-12-26 15:16:37 -080093 src/encoding/cryptopp/asn_ext.cpp \
94 src/encoding/cryptopp/asn_ext.hpp \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -080095 src/encoding/element-listener.cpp \
96 src/encoding/oid.cpp \
97 src/encoding/wire-format.cpp \
Alexander Afanasyevb3a6af42014-01-03 13:08:28 -080098 src/exclude.cpp \
Jeff Thompson2db60372013-10-22 13:38:20 -070099 src/face.cpp \
Jeff Thompson2db60372013-10-22 13:38:20 -0700100 src/interest.cpp \
Jeff Thompson2db60372013-10-22 13:38:20 -0700101 src/name.cpp \
102 src/node.cpp \
Jeff Thompson2db60372013-10-22 13:38:20 -0700103 src/security/certificate/certificate-extension.cpp \
104 src/security/certificate/certificate-subject-description.cpp \
105 src/security/certificate/certificate.cpp \
106 src/security/certificate/identity-certificate.cpp \
107 src/security/certificate/public-key.cpp \
108 src/security/identity/basic-identity-storage.cpp \
109 src/security/identity/identity-manager.cpp \
Jeff Thompson22285ec2013-10-22 17:43:02 -0700110 src/security/identity/identity-storage.cpp \
Jeff Thompson2db60372013-10-22 13:38:20 -0700111 src/security/identity/memory-identity-storage.cpp \
112 src/security/identity/memory-private-key-storage.cpp \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -0800113 src/security/key-chain.cpp \
Jeff Thompson2db60372013-10-22 13:38:20 -0700114 src/security/policy/no-verify-policy-manager.cpp \
Jeff Thompson3a2eb2f2013-12-11 11:00:27 -0800115 src/security/policy/self-verify-policy-manager.cpp \
Alexander Afanasyevfe3b1502013-12-18 16:45:03 -0800116 src/transport/unix-transport.cpp \
Jeff Thompson2db60372013-10-22 13:38:20 -0700117 src/util/blob-stream.hpp \
118 src/util/blob.cpp \
Alexander Afanasyev7eb64f12014-01-02 18:39:49 -0800119 src/util/changed-event.cpp \
120 src/util/changed-event.hpp \
121 src/util/dynamic-uint8-vector.cpp \
122 src/util/dynamic-uint8-vector.hpp \
123 src/util/logging.cpp \
Alexander Afanasyevaf283d82014-01-03 13:23:34 -0800124 src/util/logging.hpp \
Alexander Afanasyeve2e0d752014-01-03 13:30:30 -0800125 src/util/ndnd-id-fetcher.hpp \
Alexander Afanasyeve2e3ca52014-01-03 13:59:07 -0800126 src/util/string-helper.hpp \
127 src/util/time.hpp
Jeff Thompsoncf624b92013-08-23 20:51:06 -0700128
Alexander Afanasyevd155da42014-01-06 16:03:47 -0800129if HAVE_OSX_SECURITY
130 libndn_cpp_la_SOURCES += src/security/identity/osx-private-key-storage.cpp
131else
132 EXTRA_DIST = src/security/identity/osx-private-key-storage.cpp
133endif
134
Alexander Afanasyev636e9f12014-01-07 12:01:03 -0800135libndn_cpp_la_LIBADD = @OPENSSL_LIBS@ @CRYPTOPP_LIBS@ @OSX_SECURITY_LIBS@ @BOOST_SYSTEM_LIB@
136libndn_cpp_la_LDFLAGS = @OPENSSL_LDFLAGS@ @CRYPTOPP_LDFLAGS@ @SQLITE3_LDFLAGS@ @BOOST_LDFLAGS@
137libndn_cpp_la_CFLAGS = @OPENSSL_INCLUDES@ @CRYPTOPP_INCLUDES@ @SQLITE3_CFLAGS@ @BOOST_CPPFLAGS@
Alexander Afanasyev0d3671a2014-01-02 20:09:59 -0800138
Jeff Thompsonff092f52013-06-19 13:38:12 -0700139dist_noinst_SCRIPTS = autogen.sh