-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
39 lines (29 loc) · 1.1 KB
/
Makefile
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
33
34
35
36
37
38
39
-include ../Makefile.include
SOURCE=../../../../
export PYTHON_VERSION=2.6
export PYTHON_LDFLAGS=-L$(PREFIX)/lib -lpython$(PYTHON_VERSION) -lc -ldl -lm -lexpat -lffi -lintl
export PYTHON_CPPFLAGS=-I$(PREFIX)/include/python$(PYTHON_VERSION)
export PYTHON_SITE_PKG=$(PREFIX)/lib/python$(PYTHON_VERSION)/site-packages
export PYTHON_NOVERSIONCHECK=no-check
export USE_TEXTUREPACKER_NATIVE_ROOT=$(NATIVEPREFIX)
export MYSQL_CONFIG=$(PREFIX)/bin/mysql_config
export LIBS+=-lcrystax
# configuration settings
CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) build-aux/ ;\
./configure --prefix=$(PREFIX) --host=$(HOST) \
--enable-neon --enable-gles --enable-debug \
--disable-sdl --disable-x11 --disable-xrandr \
--disable-optical-drive --disable-joystick --disable-optimizations \
--enable-shared-lib --disable-alsa
all: $(SOURCE)/libxbmc.so
$(SOURCE)/libxbmc.so:
cd $(SOURCE); ./bootstrap
cd $(SOURCE); $(CONFIGURE)
cd $(SOURCE); $(MAKE)
cd $(SOURCE); $(MAKE) apk
../Makefile.include:
$(error Please run edit and run setup-sdk.sh)
clean:
cd $(SOURCE); $(MAKE) clean
distclean:
cd $(SOURCE); $(MAKE) clean