1# Copyright (C) 2008 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17netperf_CFLAGS := \
18  -D_GNU_SOURCE \
19  -DHAVE_CONFIG_H \
20  -include unistd.h \
21  -include sys/sendfile.h \
22  -Wno-sign-compare \
23  -Wno-unused-parameter \
24
25netperf_SRC_FILES := \
26  src/dscp.c \
27  src/netcpu_procstat.c \
28  src/netlib.c \
29  src/netsh.c \
30  src/nettest_bsd.c \
31  src/nettest_dlpi.c \
32  src/nettest_omni.c \
33  src/nettest_unix.c \
34  src/nettest_xti.c \
35  src/nettest_sctp.c \
36  src/nettest_sdp.c \
37  src/net_uuid.c \
38
39include $(CLEAR_VARS)
40LOCAL_MODULE := netperf
41LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
42LOCAL_MODULE_TAGS := eng
43LOCAL_CFLAGS := $(netperf_CFLAGS)
44LOCAL_SRC_FILES := src/netperf.c $(netperf_SRC_FILES)
45include $(BUILD_EXECUTABLE)
46
47include $(CLEAR_VARS)
48LOCAL_MODULE := netserver
49LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
50LOCAL_MODULE_TAGS := eng
51LOCAL_CFLAGS := $(netperf_CFLAGS)
52LOCAL_SRC_FILES := src/netserver.c $(netperf_SRC_FILES)
53include $(BUILD_EXECUTABLE)
54