Nolen Johnson | 802fd00 | 2019-08-07 23:56:48 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | # build static binary |
| 4 | include $(CLEAR_VARS) |
| 5 | LOCAL_CFLAGS := -Wno-pointer-arith -Wno-unused-result -Wno-sign-compare |
| 6 | LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c loki_unlok.c main.c |
| 7 | LOCAL_MODULE := loki_tool_static |
| 8 | LOCAL_MODULE_STEM := loki_tool |
| 9 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 10 | include $(BUILD_EXECUTABLE) |
| 11 | |
| 12 | # build host binary |
| 13 | include $(CLEAR_VARS) |
| 14 | LOCAL_CFLAGS := -Wno-pointer-arith -Wno-unused-result -Wno-sign-compare |
| 15 | LOCAL_SRC_FILES := loki_flash.c loki_patch.c loki_find.c loki_unlok.c main.c |
| 16 | LOCAL_MODULE := loki_tool |
| 17 | include $(BUILD_HOST_EXECUTABLE) |