blob: b397045cfabd4e0b25313067bc9b911bed7456b0 [file] [log] [blame]
Doug Zongker37bee622009-06-08 17:35:39 -07001# Copyright 2009 The Android Open Source Project
2
3LOCAL_PATH := $(call my-dir)
4
5edify_src_files := \
Ying Wangc5776602016-01-11 18:14:17 -08006 lexer.ll \
7 parser.yy \
Tao Bao2a5a49d2015-08-20 12:10:46 -07008 expr.cpp
Doug Zongker37bee622009-06-08 17:35:39 -07009
10#
11# Build the host-side command line tool
12#
13include $(CLEAR_VARS)
14
15LOCAL_SRC_FILES := \
16 $(edify_src_files) \
Tao Bao2a5a49d2015-08-20 12:10:46 -070017 main.cpp
Doug Zongker37bee622009-06-08 17:35:39 -070018
Tianjie Xu17e316c2016-09-28 11:42:17 -070019LOCAL_CFLAGS := -Werror
Tao Bao2a5a49d2015-08-20 12:10:46 -070020LOCAL_CPPFLAGS := -g -O0
Doug Zongker37bee622009-06-08 17:35:39 -070021LOCAL_MODULE := edify
22LOCAL_YACCFLAGS := -v
Dan Albertb02e90f2015-08-07 17:24:49 -070023LOCAL_CPPFLAGS += -Wno-unused-parameter
Tao Bao2a5a49d2015-08-20 12:10:46 -070024LOCAL_CPPFLAGS += -Wno-deprecated-register
Tao Bao80e46e02015-06-03 10:49:29 -070025LOCAL_CLANG := true
Tianjie Xu16255832016-04-30 11:49:59 -070026LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
27LOCAL_STATIC_LIBRARIES += libbase
Doug Zongker37bee622009-06-08 17:35:39 -070028
29include $(BUILD_HOST_EXECUTABLE)
30
Doug Zongker9931f7f2009-06-10 14:11:53 -070031#
32# Build the device-side library
33#
34include $(CLEAR_VARS)
Doug Zongker37bee622009-06-08 17:35:39 -070035
Doug Zongker9931f7f2009-06-10 14:11:53 -070036LOCAL_SRC_FILES := $(edify_src_files)
Doug Zongker37bee622009-06-08 17:35:39 -070037
Tianjie Xu17e316c2016-09-28 11:42:17 -070038LOCAL_CFLAGS := -Werror
Tao Bao2a5a49d2015-08-20 12:10:46 -070039LOCAL_CPPFLAGS := -Wno-unused-parameter
40LOCAL_CPPFLAGS += -Wno-deprecated-register
Doug Zongker9931f7f2009-06-10 14:11:53 -070041LOCAL_MODULE := libedify
Tao Bao80e46e02015-06-03 10:49:29 -070042LOCAL_CLANG := true
Tianjie Xu16255832016-04-30 11:49:59 -070043LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
44LOCAL_STATIC_LIBRARIES += libbase
Doug Zongker37bee622009-06-08 17:35:39 -070045
Doug Zongker9931f7f2009-06-10 14:11:53 -070046include $(BUILD_STATIC_LIBRARY)