0
|
1 MAKEFILE = Makefile.embedded
|
|
2 MAKE_CMD = ${MAKE} -f ${MAKEFILE}
|
|
3 all:
|
|
4 cd dynload && ${MAKE_CMD}
|
|
5 cd dyncall && ${MAKE_CMD}
|
|
6 cd dyncallback && ${MAKE_CMD}
|
|
7 tests:
|
|
8 cd test && ${MAKE_CMD}
|
|
9 clean:
|
|
10 cd dynload && ${MAKE_CMD} clean
|
|
11 cd dyncall && ${MAKE_CMD} clean
|
|
12 cd dyncallback && ${MAKE_CMD} clean
|
|
13 cd test && ${MAKE_CMD} clean
|
|
14 install:
|
|
15 cd dynload && ${MAKE_CMD} install
|
|
16 cd dyncall && ${MAKE_CMD} install
|
|
17 cd dyncallback && ${MAKE_CMD} install
|
|
18 bsd:
|
|
19 ${MAKE_CMD} all
|
|
20 linux:
|
|
21 ${MAKE_CMD} all
|
|
22 linux64:
|
|
23 CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all
|
|
24 minix-gcc:
|
|
25 cd dyncall && CC=gcc CFLAGS= ${MAKE_CMD}
|
|
26 cd dyncallback && CC=gcc CFLAGS= ${MAKE_CMD}
|
|
27 mingw32:
|
|
28 ${MAKE_CMD} CC=gcc AS="gcc -c" all
|
|
29 osx:
|
|
30 ${MAKE_CMD} all
|
|
31 osx-universal:
|
|
32 CFLAGS="${CFLAGS} -arch i386 -arch x86_64 -arch ppc" ASFLAGS="${ASFLAGS} -arch i386 -arch x86_64 -arch ppc" AR="libtool" ARFLAGS="-static -o" ${MAKE_CMD} all
|
|
33 osx-template:
|
|
34 CC="${CC} ${OSX_ARCH}" AS="${AS} ${OSX_ARCH}" ${MAKE_CMD}
|
|
35 osx-i386:
|
|
36 OSX_ARCH="-arch i386" ${MAKE_CMD} osx-template
|
|
37 sun:
|
|
38 CFLAGS="${CFLAGS}" ${MAKE_CMD} all
|
|
39 sun-64bit:
|
|
40 CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all
|
|
41
|
|
42 sun-gcc:
|
|
43 CC=gcc CFLAGS="${CFLAGS} -fPIC" ${MAKE_CMD} all
|
|
44 sun-gcc-64bit:
|
|
45 CC=gcc CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all
|
|
46 ios-sdkroot:
|
|
47 \
|
|
48 AS="${CC} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
|
|
49 CC="${CC} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
|
|
50 CXX="${CXX} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
|
|
51 LD="${LD} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
|
|
52 ASFLAGS="-isysroot ${IOS_SDKROOT}"\
|
|
53 CFLAGS="-isysroot ${IOS_SDKROOT}"\
|
|
54 CXXFLAGS="-isysroot ${IOS_SDKROOT}"\
|
|
55 LDFLAGS="-Wl,-syslibroot ${IOS_SDKROOT}"\
|
|
56 ${MAKE_CMD} all
|
|
57 ios:
|
|
58 IOS_SDKROOT="`xcode-select -print-path`/Platforms/iPhone${IOS_PLATFORM}.platform/Developer/SDKs/iPhone${IOS_PLATFORM}${IOS_SDK}.sdk" ${MAKE_CMD} ios-sdkroot
|
|
59 ios-sim:
|
|
60 IOS_PLATFORM="Simulator" ${MAKE_CMD} ios
|
|
61 ios-os:
|
|
62 IOS_PLATFORM="OS" ${MAKE_CMD} ios
|
|
63 # NOTE iOS 6.1 does not support armv6 (has no libs)
|
|
64 ios61-os:
|
|
65 IOS_SDK="6.1" IOS_ARCH="-arch armv7" ${MAKE_CMD} ios-os
|
|
66 ios61-os-no-thumb:
|
|
67 IOS_SDK="6.1" IOS_ARCH="-arch armv7 -mno-thumb" ${MAKE_CMD} ios-os
|
|
68 ios61-sim:
|
|
69 IOS_SDK="6.1" IOS_ARCH="-arch i386" ${MAKE_CMD} ios-sim
|
|
70 ios83-os-universal:
|
|
71 IOS_SDK="8.3" IOS_ARCH="-arch armv7 -arch arm64" ${MAKE_CMD} ios-os
|
|
72 ios83-sim:
|
|
73 IOS_SDK="8.3" IOS_ARCH="-arch i386" ${MAKE_CMD} ios-sim
|
|
74
|
|
75 .PHONY: all tests clean install bsd linux linux64 minix-gcc mingw32 osx osx-universal sun sun-64bit sun-gcc sun-gcc-64bit
|