Home | History | Annotate | Download | only in checkpolicy
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 common_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 
     11 common_cflags := \
     12 	-Wall -Wshadow -O2 \
     13 	-pipe -fno-strict-aliasing \
     14 
     15 ifeq ($(HOST_OS),darwin)
     16 common_cflags += -DDARWIN
     17 endif
     18 
     19 common_includes := \
     20 	$(LOCAL_PATH)/ \
     21 	$(LOCAL_PATH)/../libsepol/include/ \
     22 	$(LOCAL_PATH)/../libsepol/src/ \
     23 
     24 ##
     25 # checkpolicy
     26 #
     27 include $(CLEAR_VARS)
     28 
     29 LOCAL_MODULE := checkpolicy
     30 LOCAL_MODULE_TAGS := optional
     31 LOCAL_C_INCLUDES := $(common_includes) 
     32 LOCAL_CFLAGS := $(common_cflags)
     33 LOCAL_SRC_FILES := $(common_src_files) checkpolicy.c
     34 LOCAL_STATIC_LIBRARIES := libsepol
     35 LOCAL_YACCFLAGS := -v
     36 LOCAL_MODULE_CLASS := EXECUTABLES
     37 
     38 include $(BUILD_HOST_EXECUTABLE)
     39 
     40 
     41 ##
     42 # checkmodule
     43 #
     44 include $(CLEAR_VARS)
     45 
     46 LOCAL_MODULE := checkmodule
     47 LOCAL_MODULE_TAGS := optional
     48 LOCAL_C_INCLUDES := $(common_includes) 
     49 LOCAL_CFLAGS := $(common_cflags)
     50 LOCAL_SRC_FILES := $(common_src_files) checkmodule.c
     51 LOCAL_STATIC_LIBRARIES := libsepol
     52 LOCAL_YACCFLAGS := -v
     53 LOCAL_MODULE_CLASS := EXECUTABLES
     54 
     55 include $(BUILD_HOST_EXECUTABLE)
     56 
     57 ##
     58 # dispol
     59 #
     60 include $(CLEAR_VARS)
     61 
     62 LOCAL_MODULE := dispol
     63 LOCAL_MODULE_TAGS := optional
     64 LOCAL_C_INCLUDES := $(common_includes)
     65 LOCAL_CFLAGS := $(common_cflags)
     66 LOCAL_SRC_FILES := test/dispol.c
     67 LOCAL_STATIC_LIBRARIES := libsepol
     68 LOCAL_MODULE_CLASS := EXECUTABLES
     69 
     70 include $(BUILD_HOST_EXECUTABLE)
     71