blob: baf4dd21d4f30dceec9feecf5c40a888477f959b [file] [log] [blame]
Doug Zongker37bee622009-06-08 17:35:39 -07001# Copyright 2009 The Android Open Source Project
Tao Baod770d2e2016-10-03 15:26:06 -07002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Doug Zongker37bee622009-06-08 17:35:39 -070014
15LOCAL_PATH := $(call my-dir)
16
17edify_src_files := \
Tao Baod770d2e2016-10-03 15:26:06 -070018 lexer.ll \
19 parser.yy \
20 expr.cpp
Doug Zongker37bee622009-06-08 17:35:39 -070021
22#
Tao Baod770d2e2016-10-03 15:26:06 -070023# Build the host-side command line tool (host executable)
Doug Zongker37bee622009-06-08 17:35:39 -070024#
25include $(CLEAR_VARS)
26
27LOCAL_SRC_FILES := \
Tao Baod770d2e2016-10-03 15:26:06 -070028 $(edify_src_files) \
29 edify_parser.cpp
Doug Zongker37bee622009-06-08 17:35:39 -070030
Tianjie Xuc7cd9182017-08-29 12:06:02 -070031LOCAL_CFLAGS := -Wall -Werror
Tao Bao2a5a49d2015-08-20 12:10:46 -070032LOCAL_CPPFLAGS := -g -O0
Tao Baod770d2e2016-10-03 15:26:06 -070033LOCAL_MODULE := edify_parser
Doug Zongker37bee622009-06-08 17:35:39 -070034LOCAL_YACCFLAGS := -v
Dan Albertb02e90f2015-08-07 17:24:49 -070035LOCAL_CPPFLAGS += -Wno-unused-parameter
Tao Bao2a5a49d2015-08-20 12:10:46 -070036LOCAL_CPPFLAGS += -Wno-deprecated-register
Tianjie Xu16255832016-04-30 11:49:59 -070037LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
38LOCAL_STATIC_LIBRARIES += libbase
Doug Zongker37bee622009-06-08 17:35:39 -070039
40include $(BUILD_HOST_EXECUTABLE)
41
Doug Zongker9931f7f2009-06-10 14:11:53 -070042#
Tao Baod770d2e2016-10-03 15:26:06 -070043# Build the device-side library (static library)
Doug Zongker9931f7f2009-06-10 14:11:53 -070044#
45include $(CLEAR_VARS)
Doug Zongker37bee622009-06-08 17:35:39 -070046
Doug Zongker9931f7f2009-06-10 14:11:53 -070047LOCAL_SRC_FILES := $(edify_src_files)
Doug Zongker37bee622009-06-08 17:35:39 -070048
Tianjie Xuc7cd9182017-08-29 12:06:02 -070049LOCAL_CFLAGS := -Wall -Werror
Tao Bao2a5a49d2015-08-20 12:10:46 -070050LOCAL_CPPFLAGS := -Wno-unused-parameter
51LOCAL_CPPFLAGS += -Wno-deprecated-register
Doug Zongker9931f7f2009-06-10 14:11:53 -070052LOCAL_MODULE := libedify
Tianjie Xu16255832016-04-30 11:49:59 -070053LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
54LOCAL_STATIC_LIBRARIES += libbase
Doug Zongker37bee622009-06-08 17:35:39 -070055
Doug Zongker9931f7f2009-06-10 14:11:53 -070056include $(BUILD_STATIC_LIBRARY)