2009-06-09 02:35:39 +02:00
|
|
|
# Copyright 2009 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
edify_src_files := \
|
2016-01-12 03:14:17 +01:00
|
|
|
lexer.ll \
|
|
|
|
parser.yy \
|
2015-08-20 21:10:46 +02:00
|
|
|
expr.cpp
|
2009-06-09 02:35:39 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build the host-side command line tool
|
|
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
$(edify_src_files) \
|
2015-08-20 21:10:46 +02:00
|
|
|
main.cpp
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2015-08-20 21:10:46 +02:00
|
|
|
LOCAL_CPPFLAGS := -g -O0
|
2009-06-09 02:35:39 +02:00
|
|
|
LOCAL_MODULE := edify
|
|
|
|
LOCAL_YACCFLAGS := -v
|
2015-08-08 02:24:49 +02:00
|
|
|
LOCAL_CPPFLAGS += -Wno-unused-parameter
|
2015-08-20 21:10:46 +02:00
|
|
|
LOCAL_CPPFLAGS += -Wno-deprecated-register
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2016-04-30 20:49:59 +02:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
|
|
|
LOCAL_STATIC_LIBRARIES += libbase
|
2009-06-09 02:35:39 +02:00
|
|
|
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
|
2009-06-10 23:11:53 +02:00
|
|
|
#
|
|
|
|
# Build the device-side library
|
|
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2009-06-10 23:11:53 +02:00
|
|
|
LOCAL_SRC_FILES := $(edify_src_files)
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2015-08-20 21:10:46 +02:00
|
|
|
LOCAL_CPPFLAGS := -Wno-unused-parameter
|
|
|
|
LOCAL_CPPFLAGS += -Wno-deprecated-register
|
2009-06-10 23:11:53 +02:00
|
|
|
LOCAL_MODULE := libedify
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2016-04-30 20:49:59 +02:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
|
|
|
LOCAL_STATIC_LIBRARIES += libbase
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2009-06-10 23:11:53 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|