Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6497c1e5f5
Fetching contributors…

Cannot retrieve contributors at this time

104 lines (65 sloc) 3.774 kb
#
# To select what platform the FINS source should be built for, uncomment the appropriate line below
# ONLY ONE MAY BE UNCOMMENTED AT ONCE!
#
#BUILD_FOR_ANDROID_ARM = "If uncommented, the FINS source will build for android arch-ARM."
#BUILD_FOR_ANDROID_X86 = "If uncommented, the FINS source will build for android arch-x86"
BUILD_FOR_LINUX = "If uncommented, the FINS source will build for linux"
###### build for android (arch arm) ######
ifdef BUILD_FOR_ANDROID_ARM
FOLDER_LIST = trunk examples tests #prototypes #?
PROJECT_LIST = common capturer core
TARGET_PLATFORM = "Android arch-ARM"
CC =/home/bucknell/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/bucknell/android-ndk/platforms/android-8/arch-arm
LD = $(CC)
CCOPTS = -DBUILD_FOR_ANDROID #-nostdinc
INCLS = -I/home/bucknell/android/external/libpcap -I/home/bucknell/android/external/libconfig-1.4.7/lib -I/home/bucknell/android/external/libpcap/pcap -I/home/bucknell/android/bionic/libc/include -I/home/bucknell/android/bionic/libc/arch-arm/include -I/home/bucknell/android/bionic/libc/ -I/home/bucknell/android/bionic/libc/kernel/common -I/home/bucknell/android/bionic/libc/kernel/arch-arm
LIBS = -lconfig -lpcap -lm -ldl -lc
LIBPATHS = -L/home/bucknell/android/out/target/product/crespo/system/lib
LDOPTS = #-nostdlib
endif
###### build for android x86 ######
ifdef BUILD_FOR_ANDROID_X86
FOLDER_LIST = trunk examples tests #prototypes #?
PROJECT_LIST = common capturer core
TARGET_PLATFORM = "Android arch-x86"
CC = /home/bucknell/android-ndk-r6/toolchains/x86-4.4.3/prebuilt/linux-x86/bin/i686-android-linux-gcc --sysroot=/home/bucknell/android-ndk-r6/platforms/android-9/arch-x86
LD = $(CC)
CCOPTS = -DBUILD_FOR_ANDROID #-nostdinc
INCLS = -I/home/bucknell/android-x86/external/libpcap -I/home/bucknell/android-x86/external/libconfig-1.4.7/lib -I/home/bucknell/android-x86/external/libpcap/pcap -I/home/bucknell/android-x86/bionic/libc/include -I/home/bucknell/android-x86/bionic/libc/arch-x86/include -I/home/bucknell/android-x86/bionic/libc/kernel/common -I/home/bucknell/android-x86/bionic/libc/kernel/arch-x86
LIBS = -lconfig -lpcap -lm -ldl -lc
LIBPATHS = -L/home/bucknell/android-x86/out/target/product/generic_x86/system/lib #-L/home/bucknell/android-ndk-r6/platforms/android-9/arch-x86/usr/lib
LDOPTS = #-nostdlib
endif
###### build for linux ######
ifdef BUILD_FOR_LINUX
FOLDER_LIST = trunk examples tests #prototypes #?
PROJECT_LIST = common capturer core wedge
#interceptor #is deprecated
TARGET_PLATFORM = "Linux x86"
CC = gcc
LD = gcc
CCOPTS = -g -O0 #flags for valgrind
INCLS =
LDOPTS = -g -O0 #flags for valgrind
LIBPATHS =
LIBS = -lpthread -lconfig -lpcap -lc -ldl -lm
endif
CFLAGS = $(CCOPTS) $(INCLS)
LDFLAGS = $(LDOPTS) $(LIBPATHS) $(LIBS)
#Include the 'common' objects
COMMON_OBJS = $(hide)$(shell cat $(FINS_ROOT_DIR)/trunk/common/OBJS.finsmk)
####### FINS CORE MODULES #######
# Add/remove module directory names to this space-separated list
CORE_MODULE_LIST = data_structure icmp ipv4 daemon rtm switch tcp udp arp
####### EXTRA INCLUDES FOR EACH PROJECT #######
#These are includes specifically for the Capturer
CAPTURER_INC = -I. -I$(FINS_ROOT_DIR)/trunk/common
#These are includes specifically for the FINS core module itself
FINS_CORE_INC = -I. $(foreach module, $(CORE_MODULE_LIST), $(addprefix -I, $(module))) -I$(FINS_ROOT_DIR)/trunk/common
#These are includes specifically for each module in the FINS core
CORE_MODULES_INC = -I. -I.. -I../data_structure -I$(FINS_ROOT_DIR)/trunk/common
#These are includes specifically for the Kernel Wedge
WEDGE_INC =
#These are includes specifically for the Socket Interceptor
#INTERCEPTOR_INC = -I. -I$(FINS_ROOT_DIR)/trunk/common
Jump to Line
Something went wrong with that request. Please try again.