Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | common_SRC_FILES := \ |
| 4 | src/booleans.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 5 | src/canonicalize_context.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 6 | src/disable.c \ |
| 7 | src/enabled.c \ |
| 8 | src/fgetfilecon.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 9 | src/fsetfilecon.c \ |
| 10 | src/getenforce.c \ |
| 11 | src/getfilecon.c \ |
| 12 | src/getpeercon.c \ |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 13 | src/lgetfilecon.c \ |
| 14 | src/load_policy.c \ |
| 15 | src/lsetfilecon.c \ |
| 16 | src/policyvers.c \ |
| 17 | src/procattr.c \ |
| 18 | src/setenforce.c \ |
| 19 | src/setfilecon.c \ |
| 20 | src/context.c \ |
| 21 | src/mapping.c \ |
| 22 | src/stringrep.c \ |
| 23 | src/compute_create.c \ |
| 24 | src/compute_av.c \ |
| 25 | src/avc.c \ |
| 26 | src/avc_internal.c \ |
| 27 | src/avc_sidtab.c \ |
| 28 | src/get_initial_context.c \ |
| 29 | src/checkAccess.c |
| 30 | |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 31 | common_HOST_FILES := \ |
| 32 | src/callbacks.c \ |
| 33 | src/check_context.c \ |
| 34 | src/freecon.c \ |
| 35 | src/init.c \ |
| 36 | src/label.c \ |
| 37 | src/label_file.c |
| 38 | |
| 39 | |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 40 | common_COPY_HEADERS_TO := selinux |
| 41 | common_COPY_HEADERS := include/selinux/selinux.h include/selinux/label.h include/selinux/context.h include/selinux/avc.h include/selinux/android.h |
| 42 | |
| 43 | include $(CLEAR_VARS) |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 44 | LOCAL_SRC_FILES := $(common_SRC_FILES) $(common_HOST_FILES) src/android.c |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 45 | LOCAL_MODULE:= libselinux |
| 46 | LOCAL_MODULE_TAGS := eng |
| 47 | include $(BUILD_STATIC_LIBRARY) |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | LOCAL_CFLAGS := -DHOST |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 51 | |
| 52 | ifeq ($(HOST_OS),darwin) |
| 53 | LOCAL_CFLAGS += -DDARWIN |
| 54 | endif |
| 55 | |
| 56 | LOCAL_SRC_FILES := $(common_HOST_FILES) |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 57 | LOCAL_MODULE:= libselinux |
| 58 | LOCAL_MODULE_TAGS := eng |
| 59 | LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO) |
Stephen Smalley | d409de2 | 2012-01-24 10:56:26 -0500 | [diff] [blame^] | 60 | LOCAL_COPY_HEADERS := $(common_COPY_HEADERS) |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 61 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 62 | |
| 63 | include $(CLEAR_VARS) |
Stephen Smalley | cc3d76d | 2012-01-24 08:33:20 -0500 | [diff] [blame] | 64 | LOCAL_SRC_FILES := $(common_SRC_FILES) $(common_HOST_FILES) src/android.c |
Stephen Smalley | f074036 | 2012-01-04 12:30:47 -0500 | [diff] [blame] | 65 | LOCAL_MODULE:= libselinux |
| 66 | LOCAL_MODULE_TAGS := eng |
| 67 | LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO) |
| 68 | LOCAL_COPY_HEADERS := $(common_COPY_HEADERS) |
| 69 | LOCAL_PRELINK_MODULE := false |
| 70 | include $(BUILD_SHARED_LIBRARY) |