mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-15 17:16:54 +00:00
Since the secilc compiler is independent of libsepol, move secilc out of libsepol. Linke secilc dynamically rather than statically with libsepol. - Move secilc source, test policies, docs, and secilc manpage to secilc directory. - Remove unneeded Makefile from libsepol/cil. To build secilc, run make in the secilc directory. - Add target to install the secilc binary to /usr/bin/. - Create an Android makefile for secilc and move secilc out of libsepol Android makefile. - Add cil_set_mls to libsepol public API as it is needed by secilc. - Remove policy.conf from testing since it is no longer used. Signed-off-by: Yuli Khodorkovskiy <ykhodorkovskiy@tresys.com>
32 lines
604 B
Makefile
32 lines
604 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
common_src_files := secilc.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)/../libsepol/cil/include/ \
|
|
$(LOCAL_PATH)/../libsepol/include/ \
|
|
|
|
##
|
|
# secilc
|
|
#
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := secilc
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_C_INCLUDES := $(common_includes)
|
|
LOCAL_CFLAGS := $(common_cflags)
|
|
LOCAL_SRC_FILES := ./secilc.c
|
|
LOCAL_SHARED_LIRARIES := libsepol
|
|
LOCAL_MODULE_CLASS := EXECUTABLES
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|