Until now we faked local variables -- they only worked correctly if there was no overlap between local variables and global variables. Use a symbol table stack instead of a string list. Fix bug with looking up undefined symbols.
33 lines
562 B
Makefile
33 lines
562 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# Executable for host
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE:= acc
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
main.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libacc
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|
|
|
|
# Executable for target
|
|
# ========================================================
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE:= acc
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
main.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libacc
|
|
|
|
LOCAL_CFLAGS := -O0 -g
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
include $(BUILD_EXECUTABLE)
|