2009-06-09 02:35:39 +02:00
|
|
|
# Copyright 2009 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
edify_src_files := \
|
|
|
|
lexer.l \
|
|
|
|
parser.y \
|
|
|
|
expr.c
|
|
|
|
|
2014-11-20 18:00:46 +01:00
|
|
|
# "-x c" forces the lex/yacc files to be compiled as c the build system
|
|
|
|
# otherwise forces them to be c++. Need to also add an explicit -std because the
|
|
|
|
# build system will soon default C++ to -std=c++11.
|
|
|
|
edify_cflags := -x c -std=gnu89
|
2009-06-09 02:35:39 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build the host-side command line tool
|
|
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
$(edify_src_files) \
|
|
|
|
main.c
|
|
|
|
|
2015-08-08 02:24:49 +02:00
|
|
|
LOCAL_CPPFLAGS := $(edify_cflags) -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-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
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-08 02:24:49 +02:00
|
|
|
LOCAL_CPPFLAGS := $(edify_cflags)
|
|
|
|
LOCAL_CPPFLAGS += -Wno-unused-parameter
|
2009-06-10 23:11:53 +02:00
|
|
|
LOCAL_MODULE := libedify
|
2015-06-03 19:49:29 +02:00
|
|
|
LOCAL_CLANG := true
|
2009-06-09 02:35:39 +02:00
|
|
|
|
2009-06-10 23:11:53 +02:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|