1
2Description := Target for Darwin using an Apple-style build.
3
4Configs := Debug Release Profile
5
6# We override this with RC_ARCHS because B&I may want to build on an ARCH we
7# haven't explicitly defined support for. If all goes well, this will just work
8# and the resulting lib will just have generic versions for anything unknown.
9UniversalArchs := $(RC_ARCHS)
10
11
12CFLAGS := -Wall -O3 -fomit-frame-pointer
13
14
15FUNCTIONS := absvdi2 absvsi2 addvdi3 addvsi3 ashldi3 ashrdi3 \
16             clzdi2 clzsi2 cmpdi2 ctzdi2 ctzsi2 \
17             divdc3 divdi3 divsc3 ffsdi2 \
18             fixdfdi fixsfdi fixunsdfdi fixunsdfsi fixunssfdi \
19             fixunssfsi floatdidf floatdisf floatundidf floatundisf \
20             gcc_personality_v0 lshrdi3 moddi3 muldc3 muldi3 \
21             mulsc3 mulvdi3 mulvsi3 negdi2 negvdi2 negvsi2 \
22             paritydi2 paritysi2 popcountdi2 popcountsi2 powidf2 \
23             powisf2 subvdi3 subvsi3 ucmpdi2 udivdi3 \
24             udivmoddi4 umoddi3 apple_versioning eprintf
25
26FUNCTIONS.i386 := $(FUNCTIONS) \
27                divxc3 fixunsxfdi fixunsxfsi fixxfdi floatdixf \
28                floatundixf mulxc3 powixf2 clear_cache \
29                enable_execute_stack
30FUNCTIONS.ppc := $(FUNCTIONS) \
31                divtc3 fixtfdi fixunstfdi floatditf floatunditf \
32                gcc_qadd gcc_qdiv gcc_qmul gcc_qsub multc3 \
33                powitf2 restFP saveFP trampoline_setup \
34                clear_cache enable_execute_stack
35FUNCTIONS.x86_64 := $(FUNCTIONS) \
36                absvti2 addvti3 ashlti3 ashrti3 clzti2 cmpti2 \
37                ctzti2 divti3 divxc3 ffsti2 fixdfti fixsfti \
38                fixunsdfti fixunssfti fixunsxfdi fixunsxfsi \
39                fixunsxfti fixxfdi fixxfti floatdixf floattidf \
40                floattisf floattixf floatundixf floatuntidf \
41                floatuntisf floatuntixf lshrti3 modti3 multi3 \
42                mulvti3 mulxc3 negti2 negvti2 parityti2 \
43                popcountti2 powixf2 subvti3 ucmpti2 udivmodti4 \
44                udivti3 umodti3 clear_cache enable_execute_stack
45FUNCTIONS.armv6 := $(FUNCTIONS) \
46                adddf3vfp addsf3vfp bswapdi2 bswapsi2 divdf3vfp \
47                divsf3vfp eqdf2vfp eqsf2vfp extendsfdf2vfp \
48                fixdfsivfp fixsfsivfp fixunsdfsivfp fixunssfsivfp \
49                floatsidfvfp floatsisfvfp floatunssidfvfp floatunssisfvfp \
50                gedf2vfp gesf2vfp gtdf2vfp gtsf2vfp \
51                ledf2vfp lesf2vfp ltdf2vfp ltsf2vfp \
52                muldf3vfp mulsf3vfp \
53                nedf2vfp negdf2vfp negsf2vfp nesf2vfp \
54                subdf3vfp subsf3vfp truncdfsf2vfp unorddf2vfp unordsf2vfp \
55                modsi3 umodsi3 udivsi3 divsi3 \
56				switch8 switchu8 switch16 switch32 \
57				restore_vfp_d8_d15_regs save_vfp_d8_d15_regs \
58				sync_synchronize 
59
60VISIBILITY_HIDDEN := 0
61