2012-02-27 03:34:38 +00:00
|
|
|
# Included by top-level Android.mk
|
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
SERVALD_SRC_FILES = \
|
2012-05-15 01:39:21 +00:00
|
|
|
serval-dna/main.c \
|
2012-02-27 03:34:38 +00:00
|
|
|
serval-dna/overlay_advertise.c \
|
|
|
|
serval-dna/overlay_buffer.c \
|
|
|
|
serval-dna/overlay_interface.c \
|
2012-08-31 05:28:40 +00:00
|
|
|
serval-dna/overlay_olsr.c \
|
2012-02-27 03:34:38 +00:00
|
|
|
serval-dna/overlay_packetformats.c \
|
|
|
|
serval-dna/overlay_payload.c \
|
|
|
|
serval-dna/overlay_route.c \
|
2012-03-18 22:56:52 +00:00
|
|
|
serval-dna/overlay_mdp.c \
|
2012-10-19 04:24:41 +00:00
|
|
|
serval-dna/crypto.c \
|
2012-09-25 04:01:34 +00:00
|
|
|
serval-dna/cli.c \
|
2012-02-27 03:43:05 +00:00
|
|
|
serval-dna/commandline.c \
|
2012-07-05 06:39:50 +00:00
|
|
|
serval-dna/conf.c \
|
2012-02-27 03:34:38 +00:00
|
|
|
serval-dna/dataformats.c \
|
2012-09-14 02:20:45 +00:00
|
|
|
serval-dna/directory_client.c \
|
2012-08-03 07:14:05 +00:00
|
|
|
serval-dna/xprintf.c \
|
2012-05-14 09:02:10 +00:00
|
|
|
serval-dna/log.c \
|
2012-07-10 07:03:39 +00:00
|
|
|
serval-dna/net.c \
|
2012-09-14 02:17:48 +00:00
|
|
|
serval-dna/mdp_client.c \
|
2012-05-14 09:02:10 +00:00
|
|
|
serval-dna/mkdir.c \
|
2012-05-19 04:32:03 +00:00
|
|
|
serval-dna/strbuf.c \
|
2012-07-11 04:41:59 +00:00
|
|
|
serval-dna/strbuf_helpers.c \
|
2012-02-27 03:34:38 +00:00
|
|
|
serval-dna/gateway.c \
|
|
|
|
serval-dna/overlay.c \
|
2012-08-27 00:34:59 +00:00
|
|
|
serval-dna/overlay_address.c \
|
2012-07-02 03:49:54 +00:00
|
|
|
serval-dna/performance_timing.c \
|
|
|
|
serval-dna/packetformats.c \
|
2012-02-27 03:34:38 +00:00
|
|
|
serval-dna/randombytes.c \
|
|
|
|
serval-dna/rhizome.c \
|
|
|
|
serval-dna/rhizome_bundle.c \
|
|
|
|
serval-dna/rhizome_crypto.c \
|
|
|
|
serval-dna/rhizome_database.c \
|
|
|
|
serval-dna/rhizome_fetch.c \
|
|
|
|
serval-dna/rhizome_http.c \
|
|
|
|
serval-dna/rhizome_packetformats.c \
|
2012-09-14 09:26:40 +00:00
|
|
|
serval-dna/rhizome_direct.c \
|
|
|
|
serval-dna/rhizome_direct_http.c \
|
2012-02-27 03:34:38 +00:00
|
|
|
serval-dna/serval_packetvisualise.c \
|
|
|
|
serval-dna/server.c \
|
|
|
|
serval-dna/sha2.c \
|
2012-04-10 04:20:27 +00:00
|
|
|
serval-dna/srandomdev.c \
|
2012-08-06 02:55:45 +00:00
|
|
|
serval-dna/str.c \
|
2012-04-18 21:44:51 +00:00
|
|
|
serval-dna/keyring.c \
|
2012-04-28 02:55:19 +00:00
|
|
|
serval-dna/vomp.c \
|
2012-09-27 06:57:37 +00:00
|
|
|
serval-dna/vomp_console.c \
|
2012-05-02 18:12:35 +00:00
|
|
|
serval-dna/lsif.c \
|
2012-06-20 22:37:03 +00:00
|
|
|
serval-dna/dna_helper.c \
|
2012-06-21 01:00:08 +00:00
|
|
|
serval-dna/sighandlers.c \
|
2012-06-22 03:55:41 +00:00
|
|
|
serval-dna/fdqueue.c \
|
2012-05-08 05:10:39 +00:00
|
|
|
serval-dna/monitor.c \
|
2012-05-09 18:16:27 +00:00
|
|
|
serval-dna/monitor-cli.c \
|
2012-09-25 04:01:34 +00:00
|
|
|
serval-dna/monitor-client.c \
|
2012-05-09 18:16:27 +00:00
|
|
|
serval-dna/codecs.c \
|
|
|
|
serval-dna/audiodevices.c \
|
2012-05-10 08:59:27 +00:00
|
|
|
serval-dna/audio_msm_g1.c \
|
2012-05-10 22:30:09 +00:00
|
|
|
serval-dna/audio_alsa.c \
|
|
|
|
serval-dna/audio_reflector.c
|
2012-02-27 03:34:38 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
SERVALD_LOCAL_CFLAGS = \
|
2012-05-28 03:29:38 +00:00
|
|
|
-g \
|
2012-02-27 03:34:38 +00:00
|
|
|
-DSHELL -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" \
|
|
|
|
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" \
|
|
|
|
-DHAVE_LIBC=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 \
|
|
|
|
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 \
|
|
|
|
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 \
|
|
|
|
-DHAVE_ERRNO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 \
|
|
|
|
-DHAVE_STRING_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_SYS_SOCKET_H=1 \
|
|
|
|
-DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_POLL_H=1 -DHAVE_NETDB_H=1 \
|
2012-05-16 01:52:10 +00:00
|
|
|
-DHAVE_JNI_H=1 -DHAVE_STRUCT_UCRED=1 -DHAVE_CRYPTO_SIGN_NACL_GE25519_H=1 \
|
2012-05-21 03:29:14 +00:00
|
|
|
-DBYTE_ORDER=_BYTE_ORDER -DHAVE_LINUX_STRUCT_UCRED \
|
2012-02-27 03:34:38 +00:00
|
|
|
-I$(NACL_INC) \
|
|
|
|
-I$(SQLITE3_INC)
|
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
SERVALD_LOCAL_LDLIBS = -L$(SYSROOT)/usr/lib -llog
|
|
|
|
SERVALD_LOCAL_STATIC_LIBRARIES = sqlite3 nacl
|
2012-02-27 03:34:38 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
# Build NACL
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
# Work out where NACL is
|
2012-10-18 06:40:45 +00:00
|
|
|
NACL_BASE=serval-dna/nacl/src
|
|
|
|
NACL_INC=$(LOCAL_PATH)/$(NACL_BASE)/../include
|
2012-05-20 04:35:04 +00:00
|
|
|
# Find sources
|
2012-10-18 06:40:45 +00:00
|
|
|
include $(LOCAL_PATH)/$(NACL_BASE)/nacl.mk
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_MODULE:= nacl
|
|
|
|
LOCAL_SRC_FILES:= $(NACL_SOURCES)
|
|
|
|
LOCAL_CFLAGS += -g -I$(NACL_INC)
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-04-26 07:08:21 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
# Build libservald.so
|
2012-04-26 07:08:21 +00:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 04:35:04 +00:00
|
|
|
# Find SQLITE3 headers
|
|
|
|
SQLITE3_INC=$(LOCAL_PATH)/sqlite3
|
|
|
|
# Get the list of sources
|
2012-10-18 06:40:45 +00:00
|
|
|
include $(LOCAL_PATH)/serval-dna/nacl/src/nacl.mk
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_SRC_FILES:= $(SERVALD_SRC_FILES)
|
2012-10-18 06:40:45 +00:00
|
|
|
LOCAL_CFLAGS += $(SERVALD_LOCAL_CFLAGS) -Iserval-dna/nacl/include
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_LDLIBS := $(SERVALD_LOCAL_LDLIBS)
|
|
|
|
LOCAL_STATIC_LIBRARIES := $(SERVALD_LOCAL_STATIC_LIBRARIES)
|
|
|
|
LOCAL_MODULE:= serval
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2012-04-26 07:08:21 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
# Build libserval.so wrapper
|
|
|
|
include $(CLEAR_VARS)
|
2012-04-26 07:13:12 +00:00
|
|
|
LOCAL_SRC_FILES:= serval-dna/servalwrap.c
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_MODULE:= servald
|
2012-02-27 03:34:38 +00:00
|
|
|
include $(BUILD_EXECUTABLE)
|
2012-05-18 07:38:19 +00:00
|
|
|
|
2012-05-20 04:35:04 +00:00
|
|
|
# Build servald for use with gdb
|
2012-05-18 07:38:19 +00:00
|
|
|
include $(CLEAR_VARS)
|
2012-05-20 04:35:04 +00:00
|
|
|
LOCAL_SRC_FILES:= $(SERVALD_SRC_FILES)
|
|
|
|
LOCAL_CFLAGS += $(SERVALD_LOCAL_CFLAGS)
|
|
|
|
LOCAL_LDLIBS := $(SERVALD_LOCAL_LDLIBS)
|
|
|
|
LOCAL_STATIC_LIBRARIES := $(SERVALD_LOCAL_STATIC_LIBRARIES)
|
2012-05-18 07:38:19 +00:00
|
|
|
LOCAL_MODULE:= servaldsimple
|
|
|
|
include $(BUILD_EXECUTABLE)
|