OLD | NEW |
---|---|
1 # This Makefile builds onacl version of libgcc.a | 1 # This Makefile builds onacl version of libgcc.a |
2 # | 2 # |
3 # More information on the functions of libgcc can be found at: | 3 # More information on the functions of libgcc can be found at: |
4 # http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html#Libgcc | 4 # http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html#Libgcc |
5 # ../README.txt | 5 # ../README.txt |
6 # | 6 # |
7 # The following variables are expected to be set externally: | 7 # The following variables are expected to be set externally: |
8 | 8 |
9 # SRC_DIR | 9 # SRC_DIR |
10 # CC | 10 # CC |
11 # AR | 11 # AR |
12 # CFLAGS | 12 # CFLAGS |
13 | 13 |
14 # pick up .c files from another dir | 14 # pick up .c files from another dir |
15 vpath %.c ${SRC_DIR} | 15 vpath %.c ${SRC_DIR} |
16 | 16 |
17 | 17 |
18 # TODO(robertm): augment/prune this as we gain a better understanding of llc | 18 # TODO(robertm): augment/prune this as we gain a better understanding of llc |
19 # http://code.google.com/p/nativeclient/issues/detail?id=842 | 19 # http://code.google.com/p/nativeclient/issues/detail?id=842 |
20 # http://code.google.com/p/nativeclient/issues/detail?id=846 | 20 # http://code.google.com/p/nativeclient/issues/detail?id=846 |
21 # http://code.google.com/p/nativeclient/issues/detail?id=821 | 21 # http://code.google.com/p/nativeclient/issues/detail?id=821 |
22 # NOTE: for *division* we only use the pattern: div*i?.c | 22 # |
23 # excludes the float and complex versions | 23 # List of unused files in this directory with explanation: |
24 # (this is still quite incomplete, and there is overlap) | |
25 # | |
26 # complex data type: | |
27 # divdc3.c divsc3.c divxc3.c muldc3.c mulsc3.c mulxc3.c | |
28 # | |
29 # 128 bit data type: | |
30 # fixdfti.c fixxfti.c fixsfti.c | |
31 # fixunsdfti.c fixunssfti.c fixunsxfti.c | |
32 # floattidf.c floattisf.c floattixf.c | |
33 # floatuntidf.c floatuntisf.c floatuntixf.c | |
34 # udivti3.c umodti3.c modti3.c multi3.c divti3.c | |
35 # powitf2.c | |
jvoung - send to chromium...
2011/06/22 21:50:54
powitf2 appears to be in the 80 bit float category
| |
36 # | |
37 # 80 bit float type | |
38 # floatdidf.c floatdixf.c floatdisf.c | |
39 # powixf2.c | |
40 # | |
41 # misc: | |
42 # gcc_personality_v0.c | |
43 # apple_versioning.c | |
44 # trampoline_setup.c | |
45 # enable_execute_stack.c | |
46 # clear_cache.c | |
47 | |
24 SRCS=\ | 48 SRCS=\ |
25 divdi3.c divsi3.c divti3.c\ | 49 divdi3.c divsi3.c \ |
26 divmoddi4.c divmodsi4.c \ | 50 divmoddi4.c divmodsi4.c \ |
27 fixdfdi.c fixdfsi.c fixdfti.c \ | 51 fixdfdi.c fixdfsi.c \ |
28 fixsfdi.c fixsfsi.c fixsfti.c \ | 52 fixsfdi.c fixsfsi.c \ |
29 fixunsdfdi.c fixunsdfsi.c fixunsdfti.c \ | 53 fixunsdfdi.c fixunsdfsi.c \ |
30 fixunssfdi.c fixunssfsi.c fixunssfti.c \ | 54 fixunssfdi.c fixunssfsi.c \ |
31 fixunsxfdi.c fixunsxfsi.c fixunsxfti.c \ | 55 floatdidf.c floatdisf.c \ |
32 floatdidf.c floatdisf.c floatdixf.c \ | |
33 floatsidf.c floatsisf.c \ | 56 floatsidf.c floatsisf.c \ |
34 floattidf.c floattisf.c floattixf.c \ | 57 floatundidf.c floatundisf.c \ |
35 floatundidf.c floatundisf.c floatundixf.c \ | |
36 floatunsidf.c floatunsisf.c \ | 58 floatunsidf.c floatunsisf.c \ |
37 floatuntidf.c floatuntisf.c floatuntixf.c \ | 59 moddi3.c modsi3.c \ |
38 moddi3.c modsi3.c modti3.c \ | |
39 powisf2.c powidf2.c \ | 60 powisf2.c powidf2.c \ |
40 udivdi3.c udivsi3.c udivti3.c \ | 61 udivdi3.c udivsi3.c \ |
41 udivmoddi4.c udivmodsi4.c udivmodti4.c \ | 62 udivmoddi4.c udivmodsi4.c \ |
42 umoddi3.c umodsi3.c umodti3.c | 63 umoddi3.c umodsi3.c |
64 | |
65 | |
66 | |
43 | 67 |
44 # NOTE: we build pic so we can use this for both pic and non-pic nexes | 68 # NOTE: we build pic so we can use this for both pic and non-pic nexes |
45 EXTRA_FLAGS= -I${SRC_DIR} | 69 EXTRA_FLAGS= -I${SRC_DIR} |
46 EXTRA_DEFINES= -D_YUGA_LITTLE_ENDIAN=1 -D_YUGA_BIG_ENDIAN=0 | 70 EXTRA_DEFINES= -D_YUGA_LITTLE_ENDIAN=1 -D_YUGA_BIG_ENDIAN=0 |
47 | 71 |
48 # overwrite default rule to make sure nothig unexpected happens | 72 # overwrite default rule to make sure nothig unexpected happens |
49 %.o : %.c | 73 %.o : %.c |
50 $(CC) -c $(CFLAGS) ${EXTRA_DEFINES} ${EXTRA_FLAGS} $< -o $@ | 74 $(CC) -c $(CFLAGS) ${EXTRA_DEFINES} ${EXTRA_FLAGS} $< -o $@ |
51 | 75 |
52 # The main target of this Makefile | 76 # The main target of this Makefile |
53 libgcc.a: $(SRCS:.c=.o) | 77 libgcc.a: $(SRCS:.c=.o) |
54 $(AR) rc $@ $^ | 78 $(AR) rc $@ $^ |
OLD | NEW |