1DEBUG_BUILD := true 2 3LOCAL_PATH := $(call my-dir) 4LLVM_ROOT_PATH := external/llvm 5 6mesa_SRC_FILES := \ 7 egl.cpp \ 8 cmain.c \ 9 m_matrix.c \ 10 main.cpp 11 12mesa_C_INCLUDES := \ 13 $(LOCAL_PATH) \ 14 $(LOCAL_PATH)/../include 15 16# Executable for host 17# ======================================================== 18include $(CLEAR_VARS) 19 20LOCAL_MODULE_TAGS := optional 21 22ifeq ($(DEBUG_BUILD),true) 23LOCAL_CFLAGS += -DDEBUG -UNDEBUG -O0 -g 24endif 25 26LOCAL_MODULE := mesa 27LOCAL_SRC_FILES := $(mesa_SRC_FILES) 28LOCAL_STATIC_LIBRARIES := libMesa 29LOCAL_SHARED_LIBRARIES := libbcc 30LOCAL_C_INCLUDES := $(mesa_C_INCLUDES) 31LOCAL_LDLIBS := -lpthread -ldl 32 33include $(LLVM_ROOT_PATH)/llvm-host-build.mk 34include $(BUILD_HOST_EXECUTABLE) 35 36# Executable for target 37# ======================================================== 38include $(CLEAR_VARS) 39 40LOCAL_MODULE_TAGS := optional 41 42ifeq ($(DEBUG_BUILD),true) 43LOCAL_CFLAGS += -DDEBUG -UNDEBUG -O0 -g 44endif 45 46LOCAL_MODULE := mesa 47LOCAL_SRC_FILES := $(mesa_SRC_FILES) 48LOCAL_STATIC_LIBRARIES := libMesa 49LOCAL_SHARED_LIBRARIES := libstlport libcutils libutils libhardware libgui libbcc libdl 50LOCAL_C_INCLUDES := $(mesa_C_INCLUDES) 51 52include $(LLVM_ROOT_PATH)/llvm-device-build.mk 53include $(BUILD_EXECUTABLE) 54