-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.embedded
71 lines (69 loc) · 2.39 KB
/
Makefile.embedded
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
64
65
66
67
68
69
70
71
MAKEFILE = Makefile.embedded
MAKE_CMD = ${MAKE} -f ${MAKEFILE}
all:
cd dynload && ${MAKE_CMD}
cd dyncall && ${MAKE_CMD}
cd dyncallback && ${MAKE_CMD}
tests:
cd test && ${MAKE_CMD}
clean:
cd dynload && ${MAKE_CMD} clean
cd dyncall && ${MAKE_CMD} clean
cd dyncallback && ${MAKE_CMD} clean
cd test && ${MAKE_CMD} clean
install:
cd dynload && ${MAKE_CMD} install
cd dyncall && ${MAKE_CMD} install
cd dyncallback && ${MAKE_CMD} install
bsd:
${MAKE_CMD} all
linux:
${MAKE_CMD} all
linux64:
CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all
minix-gcc:
cd dyncall && CC=gcc CFLAGS= ${MAKE_CMD}
cd dyncallback && CC=gcc CFLAGS= ${MAKE_CMD}
mingw32:
${MAKE_CMD} CC=gcc AS="gcc -c" all
osx:
${MAKE_CMD} all
osx-universal:
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
osx-template:
CC="${CC} ${OSX_ARCH}" AS="${AS} ${OSX_ARCH}" ${MAKE_CMD}
osx-i386:
OSX_ARCH="-arch i386" ${MAKE_CMD} osx-template
sun:
CFLAGS="${CFLAGS}" ${MAKE_CMD} all
sun-64bit:
CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all
sun-gcc:
CC=gcc CFLAGS="${CFLAGS} -fPIC" ${MAKE_CMD} all
sun-gcc-64bit:
CC=gcc CFLAGS="${CFLAGS} -m64" ASFLAGS="${ASFLAGS} -m64" ${MAKE_CMD} all
ios-sdkroot:
\
AS="${CC} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
CC="${CC} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
CXX="${CXX} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
LD="${LD} ${IOS_ARCH} -miphoneos-version-min=${IOS_SDK}"\
ASFLAGS="-isysroot ${IOS_SDKROOT}"\
CFLAGS="-isysroot ${IOS_SDKROOT}"\
CXXFLAGS="-isysroot ${IOS_SDKROOT}"\
LDFLAGS="-Wl,-syslibroot ${IOS_SDKROOT}"\
${MAKE_CMD} all
ios:
IOS_SDKROOT="`xcode-select -print-path`/Platforms/iPhone${IOS_PLATFORM}.platform/Developer/SDKs/iPhone${IOS_PLATFORM}${IOS_SDK}.sdk" ${MAKE_CMD} ios-sdkroot
ios-sim:
IOS_PLATFORM="Simulator" ${MAKE_CMD} ios
ios-os:
IOS_PLATFORM="OS" ${MAKE_CMD} ios
# NOTE iOS 6.1 does not support armv6 (has no libs)
ios61-os:
IOS_SDK="6.1" IOS_ARCH="-arch armv7" ${MAKE_CMD} ios-os
ios61-os-no-thumb:
IOS_SDK="6.1" IOS_ARCH="-arch armv7 -mno-thumb" ${MAKE_CMD} ios-os
ios61-sim:
IOS_SDK="6.1" IOS_ARCH="-arch i386" ${MAKE_CMD} ios-sim
.PHONY: all tests clean install bsd linux linux64 minix-gcc mingw32 osx osx-universal sun sun-64bit sun-gcc sun-gcc-64bit