summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2015-05-11 08:58:34 -0700
committerJeff Vander Stoep <jeffv@google.com>2015-05-11 08:58:55 -0700
commit3b0aceb143e2384281a59851711d204a91f2866c (patch)
tree82d4aa370426d242876fa2bce62f3986490d45cc
parent5999eadd2446495f00e529acdabec1f019e4c762 (diff)
downloadcheckpolicy-master.tar.gz
Move to common directory versions of selinux toolsHEADmastermain
Migrate selinux tools to common directory for consistency with the external selinux project. Change-Id: Id1234a5366cc21347d357fcdaaf055aeeffd07be
-rw-r--r--Android.mk80
1 files changed, 2 insertions, 78 deletions
diff --git a/Android.mk b/Android.mk
index f3f3b8f..02f35a9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,78 +1,2 @@
-LOCAL_PATH:= $(call my-dir)
-
-common_src_files := \
- policy_parse.y \
- policy_scan.l \
- queue.c \
- module_compiler.c \
- parse_util.c \
- policy_define.c
-
-common_cflags := \
- -Wall -Wshadow -O2 \
- -pipe -fno-strict-aliasing \
- -Wno-return-type
-
-ifeq ($(HOST_OS),darwin)
-common_cflags += -DDARWIN
-endif
-
-common_includes := \
- $(LOCAL_PATH)/ \
- $(LOCAL_PATH)/../libsepol/include/ \
- $(LOCAL_PATH)/../libsepol/src/ \
-
-##
-# "-x c" forces the lex/yacc files to be compiled as c the build system
-# otherwise forces them to be c++. Need to also add an explicit -std because the
-# build system will soon default C++ to -std=c++11.
-yacc_flags := -x c -std=gnu89
-
-
-##
-# checkpolicy
-#
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := checkpolicy
-LOCAL_MODULE_TAGS := optional
-LOCAL_C_INCLUDES := $(common_includes)
-LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
-LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c
-LOCAL_STATIC_LIBRARIES := libsepol
-LOCAL_YACCFLAGS := -v
-LOCAL_MODULE_CLASS := EXECUTABLES
-
-include $(BUILD_HOST_EXECUTABLE)
-
-
-##
-# checkmodule
-#
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := checkmodule
-LOCAL_MODULE_TAGS := optional
-LOCAL_C_INCLUDES := $(common_includes)
-LOCAL_CFLAGS := $(yacc_flags) $(common_cflags)
-LOCAL_SRC_FILES := $(common_src_files) checkmodule.c
-LOCAL_STATIC_LIBRARIES := libsepol
-LOCAL_YACCFLAGS := -v
-LOCAL_MODULE_CLASS := EXECUTABLES
-
-include $(BUILD_HOST_EXECUTABLE)
-
-##
-# dispol
-#
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := dispol
-LOCAL_MODULE_TAGS := optional
-LOCAL_C_INCLUDES := $(common_includes)
-LOCAL_CFLAGS := $(common_cflags)
-LOCAL_SRC_FILES := test/dispol.c
-LOCAL_STATIC_LIBRARIES := libsepol
-LOCAL_MODULE_CLASS := EXECUTABLES
-
-include $(BUILD_HOST_EXECUTABLE)
+# This empty Android.mk file will prevent the build system
+# from building anything below this point.