Home | History | Annotate | Download | only in netperf
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 netperf_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 
     25 netperf_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 
     39 include $(CLEAR_VARS)
     40 LOCAL_MODULE := netperf
     41 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     42 LOCAL_MODULE_TAGS := eng
     43 LOCAL_CFLAGS := $(netperf_CFLAGS)
     44 LOCAL_SRC_FILES := src/netperf.c $(netperf_SRC_FILES)
     45 include $(BUILD_EXECUTABLE)
     46 
     47 include $(CLEAR_VARS)
     48 LOCAL_MODULE := netserver
     49 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
     50 LOCAL_MODULE_TAGS := eng
     51 LOCAL_CFLAGS := $(netperf_CFLAGS)
     52 LOCAL_SRC_FILES := src/netserver.c $(netperf_SRC_FILES)
     53 include $(BUILD_EXECUTABLE)
     54