Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | LOCAL_PATH_SAVED := $(LOCAL_PATH) |
| 3 | |
Alexander Afanasyev | c134b6f | 2015-02-12 17:01:44 -0800 | [diff] [blame] | 4 | NFD_BOOST_LIBS = system filesystem chrono program_options random thread |
Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 5 | |
| 6 | # core |
| 7 | include $(CLEAR_VARS) |
| 8 | LOCAL_MODULE := nfd-core |
| 9 | LOCAL_SHARED_LIBRARIES := cryptopp ndn-cxx $(addsuffix _shared,$(addprefix boost_,$(NFD_BOOST_LIBS))) |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 10 | NFD_CORE_SRC_FILES := \ |
| 11 | core/city-hash.cpp \ |
| 12 | core/config-file.cpp \ |
| 13 | core/global-io.cpp \ |
| 14 | core/network-interface.cpp \ |
| 15 | core/network.cpp \ |
| 16 | core/privilege-helper.cpp \ |
| 17 | core/random.cpp \ |
| 18 | core/scheduler.cpp |
| 19 | LOCAL_SRC_FILES := $(addprefix NFD/,$(NFD_CORE_SRC_FILES)) \ |
| 20 | nfd-android/custom-logger.cpp \ |
| 21 | nfd-android/custom-logger-factory.cpp |
Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 22 | LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/nfd-android -I$(LOCAL_PATH)/NFD -I$(LOCAL_PATH)/NFD/core |
| 23 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/nfd-android $(LOCAL_PATH)/NFD $(LOCAL_PATH)/NFD/core |
| 24 | include $(BUILD_STATIC_LIBRARY) |
| 25 | |
| 26 | # nfd itself |
| 27 | include $(CLEAR_VARS) |
| 28 | LOCAL_MODULE := nfd-daemon |
| 29 | LOCAL_SHARED_LIBRARIES := cryptopp ndn-cxx $(addsuffix _shared,$(addprefix boost_,$(NFD_BOOST_LIBS))) |
| 30 | LOCAL_STATIC_LIBRARIES := nfd-core |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 31 | NFD_DAEMON_SRC_FILES := \ |
| 32 | daemon/face/channel.cpp \ |
| 33 | daemon/face/face.cpp \ |
Alexander Afanasyev | 150c264 | 2015-09-11 01:10:55 -0700 | [diff] [blame^] | 34 | daemon/face/internal-client-face.cpp \ |
| 35 | daemon/face/internal-face.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 36 | daemon/face/multicast-udp-face.cpp \ |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 37 | daemon/face/ndnlp-data.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 38 | daemon/face/ndnlp-partial-message-store.cpp \ |
| 39 | daemon/face/ndnlp-sequence-generator.cpp \ |
| 40 | daemon/face/ndnlp-slicer.cpp \ |
| 41 | daemon/face/null-face.cpp \ |
| 42 | daemon/face/tcp-channel.cpp \ |
| 43 | daemon/face/tcp-face.cpp \ |
| 44 | daemon/face/tcp-factory.cpp \ |
| 45 | daemon/face/udp-channel.cpp \ |
| 46 | daemon/face/udp-face.cpp \ |
| 47 | daemon/face/udp-factory.cpp \ |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 48 | daemon/face/websocket-channel.cpp \ |
| 49 | daemon/face/websocket-face.cpp \ |
| 50 | daemon/face/websocket-factory.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 51 | daemon/fw/access-strategy.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 52 | daemon/fw/best-route-strategy.cpp \ |
| 53 | daemon/fw/best-route-strategy2.cpp \ |
| 54 | daemon/fw/broadcast-strategy.cpp \ |
| 55 | daemon/fw/client-control-strategy.cpp \ |
| 56 | daemon/fw/face-table.cpp \ |
| 57 | daemon/fw/forwarder.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 58 | daemon/fw/multicast-strategy.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 59 | daemon/fw/ncc-strategy.cpp \ |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 60 | daemon/fw/retx-suppression-exponential.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 61 | daemon/fw/retx-suppression-fixed.cpp \ |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 62 | daemon/fw/retx-suppression.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 63 | daemon/fw/rtt-estimator.cpp \ |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 64 | daemon/fw/strategy-registry.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 65 | daemon/fw/strategy.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 66 | daemon/mgmt/command-validator.cpp \ |
| 67 | daemon/mgmt/face-manager.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 68 | daemon/mgmt/fib-manager.cpp \ |
Alexander Afanasyev | 150c264 | 2015-09-11 01:10:55 -0700 | [diff] [blame^] | 69 | daemon/mgmt/forwarder-status-manager.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 70 | daemon/mgmt/general-config-section.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 71 | daemon/mgmt/manager-base.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 72 | daemon/mgmt/strategy-choice-manager.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 73 | daemon/mgmt/tables-config-section.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 74 | daemon/nfd.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 75 | daemon/table/cs-entry-impl.cpp \ |
| 76 | daemon/table/cs-entry.cpp \ |
Alexander Afanasyev | aacd65b | 2015-09-04 14:07:07 -0700 | [diff] [blame] | 77 | daemon/table/cs-policy-lru.cpp \ |
| 78 | daemon/table/cs-policy-priority-fifo.cpp \ |
| 79 | daemon/table/cs-policy.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 80 | daemon/table/cs.cpp \ |
| 81 | daemon/table/dead-nonce-list.cpp \ |
| 82 | daemon/table/fib-entry.cpp \ |
| 83 | daemon/table/fib-nexthop.cpp \ |
| 84 | daemon/table/fib.cpp \ |
| 85 | daemon/table/measurements-accessor.cpp \ |
| 86 | daemon/table/measurements-entry.cpp \ |
| 87 | daemon/table/measurements.cpp \ |
| 88 | daemon/table/name-tree-entry.cpp \ |
| 89 | daemon/table/name-tree.cpp \ |
Alexander Afanasyev | 150c264 | 2015-09-11 01:10:55 -0700 | [diff] [blame^] | 90 | daemon/table/network-region-table.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 91 | daemon/table/pit-entry.cpp \ |
| 92 | daemon/table/pit-face-record.cpp \ |
| 93 | daemon/table/pit-in-record.cpp \ |
| 94 | daemon/table/pit-out-record.cpp \ |
| 95 | daemon/table/pit.cpp \ |
| 96 | daemon/table/strategy-choice-entry.cpp \ |
| 97 | daemon/table/strategy-choice.cpp \ |
| 98 | daemon/table/strategy-info-host.cpp \ |
| 99 | \ |
| 100 | rib/fib-update.cpp \ |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 101 | rib/fib-updater.cpp \ |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 102 | rib/nrd.cpp \ |
| 103 | rib/remote-registrator.cpp \ |
| 104 | rib/rib-entry.cpp \ |
| 105 | rib/rib-manager.cpp \ |
| 106 | rib/rib-status-publisher.cpp \ |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 107 | rib/rib-update-batch.cpp \ |
| 108 | rib/rib-update.cpp \ |
| 109 | rib/rib.cpp \ |
| 110 | rib/route.cpp |
Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 111 | LOCAL_SRC_FILES := $(addprefix NFD/,$(NFD_DAEMON_SRC_FILES)) |
Alexander Afanasyev | edf1e2b | 2015-04-19 19:31:17 -0700 | [diff] [blame] | 112 | LOCAL_CPPFLAGS := -I$(LOCAL_PATH)/NFD/daemon -I$(LOCAL_PATH)/NFD/rib -I$(LOCAL_PATH)/NFD/websocketpp |
Alexander Afanasyev | 216df01 | 2015-02-10 17:35:46 -0800 | [diff] [blame] | 113 | LOCAL_LDLIBS := -llog |
Alexander Afanasyev | 087c7c1 | 2015-02-02 00:21:21 -0800 | [diff] [blame] | 114 | include $(BUILD_SHARED_LIBRARY) |