blob: 803fba207dac79c931e3a1fe8bb67b9ff35650a0 [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 := \
6 lexer.l \
7 parser.y \
8 expr.c
9
10# "-x c" forces the lex/yacc files to be compiled as c;
11# the build system otherwise forces them to be c++.
12edify_cflags := -x c
13
14#
15# Build the host-side command line tool
16#
17include $(CLEAR_VARS)
18
19LOCAL_SRC_FILES := \
20 $(edify_src_files) \
21 main.c
22
23LOCAL_CFLAGS := $(edify_cflags) -g -O0
24LOCAL_MODULE := edify
25LOCAL_YACCFLAGS := -v
26
27include $(BUILD_HOST_EXECUTABLE)
28
29# #
30# # Build the device-side library
31# #
32# include $(CLEAR_VARS)
33
34# LOCAL_SRC_FILES := $(edify_src_files)
35# LOCAL_SRC_FILES += $(edify_test_files)
36
37# LOCAL_CFLAGS := $(edify_cflags)
38# LOCAL_MODULE := libedify
39
40# include $(BUILD_STATIC_LIBRARY)