blob: 9b42c196d29b3e4f414363fbf718e5f56983e7a8 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
include ../Makefile.include
ifneq ($(shell test -f $(NATIVEPREFIX)/share/config.site && echo 1),1)
$(error Error: $(NATIVEPREFIX)/share/config.site is missing. Please reconfigure depends to generate it)
endif
NATIVE= m4-native gettext-native autoconf-native automake-native \
libtool-native pkg-config-native yasm-native cmake-native \
gas-preprocessor-native python26-native zlib-native \
pcre-native swig-native rpl-native libsdl_image-native libsquish-native \
tiff-native libpng-native libjpeg-turbo-native liblzo2-native giflib-native \
libsdl-native distribute-native distutilscross-native JsonSchemaBuilder TexturePacker
ifeq ($(OS),ios)
NATIVE += dpkg-native xz-native tar-native fakeroot-native gen_entitlements-native
endif
ifeq ($(OS),osx)
NATIVE += xz-native tar-native
endif
.PHONY: $(NATIVE) native
all: native
@echo "Dependencies built successfully."
# Dependency layout for parallel builds
autoconf-native: m4-native
automake-native: autoconf-native
libtool-native: automake-native
libpng-native: zlib-native
tiff-native: libjpeg-turbo-native
swig-native: pcre-native
libsdl_image-native: libsdl-native libpng-native libjpeg-turbo-native tiff-native
distribute-native: python26-native
distutilscross-native: python26-native distribute-native
tar-native: xz-native
python26-native: zlib-native
#liblzo2 has stale packaged automake files that cause borked host/build detection
liblzo2-native: automake-native
JsonSchemaBuilder: automake-native
TexturePacker: automake-native pkg-config-native libsquish-native libpng-native liblzo2-native giflib-native libpng-native
native: $(NATIVE)
$(NATIVE):
$(MAKE) -C $@
clean:
for d in $(NATIVE); do $(MAKE) -C $$d clean; done
# Debug target, this will DELETE all data in staging!
test-dependencies:
( for d in $(NATIVE); do \
rm -rf $(NATIVEPREFIX); \
mkdir -p $(NATIVEPREFIX)/include $(NATIVEPREFIX)/share $(NATIVEPREFIX)/bin; \
cp -f config.site $(NATIVEPREFIX)/share/; \
$(MAKE) distclean; \
$(MAKE) $$d; done ) && echo "$@ built successfully"
distclean::
for d in $(NATIVE); do $(MAKE) -C $$d distclean; done
|