summaryrefslogtreecommitdiff
path: root/Android.mk
blob: fb33af9d0d06554080b97467a3b2f149bc35896e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

WOCKY_BUILT_SOURCES := \
	wocky/Android.mk

wocky-configure-real:
	cd $(WOCKY_TOP) ; \
	CC="$(CONFIGURE_CC)" \
	CFLAGS="$(CONFIGURE_CFLAGS)" \
	LD=$(TARGET_LD) \
	LDFLAGS="$(CONFIGURE_LDFLAGS)" \
	CPP=$(CONFIGURE_CPP) \
	CPPFLAGS="$(CONFIGURE_CPPFLAGS) -I$(GCRYPT_TOP)/src -I$(GPG_ERROR_TOP)/src" \
	PKG_CONFIG_LIBDIR="$(CONFIGURE_PKG_CONFIG_LIBDIR)" \
	PKG_CONFIG_TOP_BUILD_DIR=$(PKG_CONFIG_TOP_BUILD_DIR) \
	$(WOCKY_TOP)/$(CONFIGURE) --host=arm-linux-androideabi \
		--disable-Werror && \
	for file in $(WOCKY_BUILT_SOURCES); do \
		rm -f $$file && \
		make -C $$(dirname $$file) $$(basename $$file) ; \
	done

wocky-configure: wocky-configure-real

.PHONY: wocky-configure

CONFIGURE_TARGETS += wocky-configure

#include all the subdirs...
-include $(WOCKY_TOP)/wocky/Android.mk