1LOCAL_PATH:= $(call my-dir) 2 3common_src_files := \ 4 policy_parse.y \ 5 policy_scan.l \ 6 queue.c \ 7 module_compiler.c \ 8 parse_util.c \ 9 policy_define.c 10 11common_cflags := \ 12 -Wall -Wshadow -O2 \ 13 -pipe -fno-strict-aliasing \ 14 15## 16# checkpolicy 17# 18include $(CLEAR_VARS) 19 20LOCAL_MODULE := checkpolicy 21LOCAL_MODULE_TAGS := optional 22LOCAL_CFLAGS := $(common_cflags) 23LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c 24LOCAL_STATIC_LIBRARIES := libsepol 25LOCAL_YACCFLAGS := -v 26LOCAL_MODULE_CLASS := EXECUTABLES 27 28include $(BUILD_HOST_EXECUTABLE) 29 30 31## 32# checkmodule 33# 34include $(CLEAR_VARS) 35 36LOCAL_MODULE := checkmodule 37LOCAL_MODULE_TAGS := optional 38LOCAL_CFLAGS := $(common_cflags) 39LOCAL_SRC_FILES := $(common_src_files) checkmodule.c 40LOCAL_STATIC_LIBRARIES := libsepol 41LOCAL_YACCFLAGS := -v 42LOCAL_MODULE_CLASS := EXECUTABLES 43 44include $(BUILD_HOST_EXECUTABLE) 45 46## 47# dispol 48# 49include $(CLEAR_VARS) 50 51LOCAL_MODULE := dispol 52LOCAL_MODULE_TAGS := optional 53LOCAL_CFLAGS := $(common_cflags) 54LOCAL_SRC_FILES := test/dispol.c 55LOCAL_STATIC_LIBRARIES := libsepol 56LOCAL_MODULE_CLASS := EXECUTABLES 57 58include $(BUILD_HOST_EXECUTABLE) 59