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 host-side command line tool (host executable) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 24 | # |
| 25 | include $(CLEAR_VARS) |
| 26 | |
| 27 | LOCAL_SRC_FILES := \ |
Tao Bao | d770d2e | 2016-10-03 15:26:06 -0700 | [diff] [blame] | 28 | $(edify_src_files) \ |
| 29 | edify_parser.cpp |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 30 | |
Tianjie Xu | c7cd918 | 2017-08-29 12:06:02 -0700 | [diff] [blame] | 31 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 32 | LOCAL_CPPFLAGS := -g -O0 |
Tao Bao | d770d2e | 2016-10-03 15:26:06 -0700 | [diff] [blame] | 33 | LOCAL_MODULE := edify_parser |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 34 | LOCAL_YACCFLAGS := -v |
Dan Albert | b02e90f | 2015-08-07 17:24:49 -0700 | [diff] [blame] | 35 | LOCAL_CPPFLAGS += -Wno-unused-parameter |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 36 | LOCAL_CPPFLAGS += -Wno-deprecated-register |
Tianjie Xu | 1625583 | 2016-04-30 11:49:59 -0700 | [diff] [blame] | 37 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. |
| 38 | LOCAL_STATIC_LIBRARIES += libbase |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 39 | |
| 40 | include $(BUILD_HOST_EXECUTABLE) |
| 41 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 42 | # |
Tao Bao | d770d2e | 2016-10-03 15:26:06 -0700 | [diff] [blame] | 43 | # Build the device-side library (static library) |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 44 | # |
| 45 | include $(CLEAR_VARS) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 46 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 47 | LOCAL_SRC_FILES := $(edify_src_files) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 48 | |
Tianjie Xu | c7cd918 | 2017-08-29 12:06:02 -0700 | [diff] [blame] | 49 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 50 | LOCAL_CPPFLAGS := -Wno-unused-parameter |
| 51 | LOCAL_CPPFLAGS += -Wno-deprecated-register |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 52 | LOCAL_MODULE := libedify |
Tianjie Xu | 1625583 | 2016-04-30 11:49:59 -0700 | [diff] [blame] | 53 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. |
| 54 | LOCAL_STATIC_LIBRARIES += libbase |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 55 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 56 | include $(BUILD_STATIC_LIBRARY) |