2016-12-29 22:06:19 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
2016-09-08 12:59:48 +00:00
|
|
|
|
2017-04-04 19:44:13 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := magisk
|
|
|
|
LOCAL_STATIC_LIBRARIES := libselinux libsepol
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(LOCAL_PATH)/utils \
|
|
|
|
$(LOCAL_PATH)/selinux/libselinux/include \
|
|
|
|
$(LOCAL_PATH)/selinux/libsepol/include
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
main.c \
|
|
|
|
utils/log_monitor.c \
|
|
|
|
utils/vector.c \
|
|
|
|
utils/xwrap.c
|
|
|
|
|
|
|
|
LOCAL_CFLAGS := -static
|
|
|
|
LOCAL_LDLIBS := -llog
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
# Libraries
|
|
|
|
include jni/selinux/libselinux/Android.mk
|
|
|
|
include jni/selinux/libsepol/Android.mk
|
|
|
|
|
|
|
|
# Enable these for seperate binaries
|
|
|
|
# By default, we create a unified binary
|
|
|
|
|
|
|
|
# include jni/magiskboot/Android.mk
|
|
|
|
# include jni/magiskhide/Android.mk
|
|
|
|
# include jni/resetprop/Android.mk
|
|
|
|
# include jni/magiskpolicy/Android.mk
|
|
|
|
# include jni/su/Android.mk
|