-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
46 lines (34 loc) · 817 Bytes
/
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
40
41
42
43
44
45
46
include configure.mk
PREFIX=/usr
CCTOOLS=build/cctools/cctools
IOSTOOLS=build/iphonesdk-utils-2.0
no-configure:
echo "Please run ./configure before running make"
# Assembler and linker
cctools.stamp:
cd ${CCTOOLS} && \
./autogen.sh; \
./configure --target=${TARGET} --prefix=${PREFIX} && \
make
touch $@
cctools-install.stamp: cctools.stamp
make install -C ${CCTOOLS}
touch $@
cctools-clean:
make clean -C ${CCTOOLS}
rm -f cctools.stamp
# Utilities
ios-tools.stamp:
cd ${IOSTOOLS} && \
./autogen.sh ; \
./configure --prefix=${PREFIX} && \
make
touch $@
ios-tools-install.stamp: ios-tools.stamp
make install -C ${IOSTOOLS}
touch $@
ios-tools-clean:
make clean -C ${IOSTOOLS}
rm -f ios-tools.stamp
clean: cctools-clean ios-tools-clean
.PHONY: clean ios-tools-clean cctools-clean