2012-08-09 04:18:45 +04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2012-08-03 01:40:03 +04:00
|
|
|
# CFLAGS := \
|
|
|
|
# -fPIC -mandroid -DANDROID \
|
|
|
|
# -DOS_ANDROID -fno-short-enums -fno-exceptions -lstdc++
|
2012-08-02 22:32:54 +04:00
|
|
|
CFLAGS := \
|
2012-08-03 01:40:03 +04:00
|
|
|
--sysroot=$(TOOLCH)/sysroot\
|
|
|
|
-I$(TOOLCH)/lib/gcc/arm-linux-androideabi/4.6.x-google/include\
|
|
|
|
-I$(TOOLCH)/lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed\
|
|
|
|
-I$(TOOLCH)/arm-linux-androideabi/include/c++/4.6\
|
|
|
|
-I$(TOOLCH)/arm-linux-androideabi/include/c++/4.6/arm-linux-androideabi\
|
2012-08-09 04:20:29 +04:00
|
|
|
-I$(TOOLCH)/sysroot/usr/include\
|
|
|
|
$(shell nspr-config --cflags)\
|
|
|
|
-Llibs\
|
2012-08-08 23:05:49 +04:00
|
|
|
-lstdc++ -lnspr4
|
2012-08-10 02:37:55 +04:00
|
|
|
FILES := \
|
2012-08-10 21:31:41 +04:00
|
|
|
src/SUTAgent.cpp src/misc.cpp\
|
|
|
|
src/SessionEventHandler.cpp\
|
|
|
|
src/CommandEventHandler.cpp
|
2012-08-03 01:40:03 +04:00
|
|
|
CC=arm-linux-androideabi-g++
|
2012-08-02 22:13:53 +04:00
|
|
|
|
|
|
|
agent:
|
2012-08-03 01:40:03 +04:00
|
|
|
$(CC) $(CFLAGS) $(FILES) -o agent
|