blob: 038dec088f72158d79faacad98b82e96e1bc6c15 [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 Wangc8abc4e2016-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
Tao Bao2a5a49d2015-08-20 12:10:46 -070019LOCAL_CPPFLAGS := -g -O0
Doug Zongker37bee622009-06-08 17:35:39 -070020LOCAL_MODULE := edify
21LOCAL_YACCFLAGS := -v
Dan Albertb02e90f2015-08-07 17:24:49 -070022LOCAL_CPPFLAGS += -Wno-unused-parameter
Tao Bao2a5a49d2015-08-20 12:10:46 -070023LOCAL_CPPFLAGS += -Wno-deprecated-register
Tao Bao80e46e02015-06-03 10:49:29 -070024LOCAL_CLANG := true
Doug Zongker37bee622009-06-08 17:35:39 -070025
26include $(BUILD_HOST_EXECUTABLE)
27
Doug Zongker9931f7f2009-06-10 14:11:53 -070028#
29# Build the device-side library
30#
31include $(CLEAR_VARS)
Doug Zongker37bee622009-06-08 17:35:39 -070032
Doug Zongker9931f7f2009-06-10 14:11:53 -070033LOCAL_SRC_FILES := $(edify_src_files)
Doug Zongker37bee622009-06-08 17:35:39 -070034
Tao Bao2a5a49d2015-08-20 12:10:46 -070035LOCAL_CPPFLAGS := -Wno-unused-parameter
36LOCAL_CPPFLAGS += -Wno-deprecated-register
Doug Zongker9931f7f2009-06-10 14:11:53 -070037LOCAL_MODULE := libedify
Tao Bao80e46e02015-06-03 10:49:29 -070038LOCAL_CLANG := true
Doug Zongker37bee622009-06-08 17:35:39 -070039
Doug Zongker9931f7f2009-06-10 14:11:53 -070040include $(BUILD_STATIC_LIBRARY)