1 # Copyright 2016 The Android Open Source Project 2 3 LOCAL_PATH:= $(call my-dir) 4 5 APF_CFLAGS := -DAPF_FRAME_HEADER_SIZE=14 \ 6 -Wall \ 7 -Werror 8 9 include $(CLEAR_VARS) 10 11 LOCAL_INCLUDES += $(LOCAL_PATH) 12 13 LOCAL_CFLAGS += $(APF_CFLAGS) 14 15 LOCAL_SRC_FILES += apf_interpreter.c 16 17 LOCAL_MODULE:= libapf 18 19 include $(BUILD_STATIC_LIBRARY) 20 21 22 include $(CLEAR_VARS) 23 24 LOCAL_CFLAGS += $(APF_CFLAGS) 25 LOCAL_SRC_FILES += apf_disassembler.c 26 LOCAL_MODULE := apf_disassembler 27 LOCAL_MODULE_TAGS := debug 28 29 include $(BUILD_HOST_EXECUTABLE) 30 31 include $(CLEAR_VARS) 32 33 LOCAL_CFLAGS += $(APF_CFLAGS) 34 LOCAL_SRC_FILES += apf_run.c apf_interpreter.c 35 LOCAL_MODULE := apf_run 36 LOCAL_MODULE_TAGS := debug 37 38 include $(BUILD_HOST_EXECUTABLE) 39