summaryrefslogtreecommitdiffstats
path: root/tinyIPSec/droid-makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tinyIPSec/droid-makefile')
-rw-r--r--tinyIPSec/droid-makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/tinyIPSec/droid-makefile b/tinyIPSec/droid-makefile
new file mode 100644
index 0000000..00d63c9
--- /dev/null
+++ b/tinyIPSec/droid-makefile
@@ -0,0 +1,28 @@
+APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -I../tinySAK/src -I./src
+LDFLAGS := -ltinySAK_$(MARCH) $(LDFLAGS_LIB)
+
+all: $(APP)
+
+OBJS = \
+ src/tipsec.o
+
+
+$(APP): $(OBJS)
+ifeq ($(EXT), a)
+ $(AR) rcs $@ $^
+else
+ $(CC) $(LDFLAGS) -o $@ $^
+endif
+
+%.o: %.c
+ $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb remount
+ $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP)
+ $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP)
+
+clean:
+ @rm -f $(OBJS) $(APP) \ No newline at end of file
OpenPOWER on IntegriCloud