Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 1 | # Copyright 2009 The Android Open Source Project |
Tao Bao | d770d2e | 2016-10-03 15:26:06 -0700 | [diff] [blame] | 2 | # |
| 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 Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 14 | |
| 15 | LOCAL_PATH := $(call my-dir) |
| 16 | |
| 17 | edify_src_files := \ |
Tao Bao | d770d2e | 2016-10-03 15:26:06 -0700 | [diff] [blame] | 18 | lexer.ll \ |
| 19 | parser.yy \ |
| 20 | expr.cpp |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 21 | |
| 22 | # |
Tao Bao | d770d2e | 2016-10-03 15:26:06 -0700 | [diff] [blame] | 23 | # Build the device-side library (static library) |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 24 | # |
| 25 | include $(CLEAR_VARS) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 26 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 27 | LOCAL_SRC_FILES := $(edify_src_files) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 28 | |
Tianjie Xu | c7cd918 | 2017-08-29 12:06:02 -0700 | [diff] [blame] | 29 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 30 | LOCAL_CPPFLAGS := -Wno-unused-parameter |
| 31 | LOCAL_CPPFLAGS += -Wno-deprecated-register |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 32 | LOCAL_MODULE := libedify |
Tao Bao | 26436d6 | 2017-10-05 17:16:31 +0000 | [diff] [blame] | 33 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. |
| 34 | LOCAL_STATIC_LIBRARIES += libbase |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 35 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 36 | include $(BUILD_STATIC_LIBRARY) |