1 LOCAL_PATH := $(call my-dir) 2 3 include $(CLEAR_VARS) 4 LOCAL_MODULE := foo 5 LOCAL_SRC_FILES := foo/foo.c 6 LOCAL_CFLAGS := -DFOO=2 7 LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/foo 8 LOCAL_EXPORT_CFLAGS := -DFOO=1 9 LOCAL_EXPORT_LDLIBS := -llog 10 include $(BUILD_STATIC_LIBRARY) 11 12 include $(CLEAR_VARS) 13 LOCAL_MODULE := bar 14 LOCAL_SRC_FILES := bar/bar.c 15 LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/bar 16 LOCAL_STATIC_LIBRARIES := foo 17 include $(BUILD_SHARED_LIBRARY) 18 19 include $(CLEAR_VARS) 20 LOCAL_MODULE := zoo 21 LOCAL_SRC_FILES := zoo/zoo.c 22 LOCAL_SHARED_LIBRARIES := bar 23 include $(BUILD_SHARED_LIBRARY) 24