-
Notifications
You must be signed in to change notification settings - Fork 1
/
Android.mk
40 lines (28 loc) · 942 Bytes
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
cjson.c iperf_api.c iperf_error.c \
iperf_client_api.c iperf_server_api.c iperf_tcp.c \
iperf_udp.c iperf_sctp.c iperf_util.c locale.c net.c \
tcp_info.c tcp_window_size.c timer.c units.c
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/sctp
LOCAL_CFLAGS := -O2 -W -Wall -DHAVE_CONFIG_H
# LOCAL_PRELINK_MODULE := false
LOCAL_MODULE := libiperf
LOCAL_MODULE_TAGS := eng
include $(BUILD_STATIC_LIBRARY)
#########################
# Build the iperf binary
iperf_src_files := \
main.c
iperf_cflags := -O2 -W -Wall \
-DHAVE_CONFIG_H
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(iperf_src_files)
# LOCAL_C_INCLUDES := $(iperf_c_includes)
LOCAL_CFLAGS := $(iperf_cflags)
# LOCAL_SYSTEM_SHARED_LIBRARIES := $(e2fsck_system_shared_libraries)
LOCAL_STATIC_LIBRARIES := libiperf
LOCAL_MODULE := iperf3
LOCAL_MODULE_TAGS := eng
include $(BUILD_EXECUTABLE)