]>
Commit | Line | Data |
---|---|---|
e03f789f | 1 | # |
2 | # t-cris | |
3 | # | |
4 | # The Makefile fragment to include when compiling gcc et al for CRIS. | |
5 | # | |
6 | # | |
7 | # The makefile macros etc. are included in the order found in the | |
8 | # section "Target Fragment" in the gcc info-files (or the paper copy) of | |
9 | # "Using and Porting GCC" | |
10 | # | |
11 | # Don't run fixproto | |
12 | STMP_FIXPROTO = | |
13 | ||
14 | LIB2FUNCS_EXTRA = _udivsi3.c _divsi3.c _umodsi3.c _modsi3.c | |
15 | CRIS_LIB1CSRC = $(srcdir)/config/cris/arit.c | |
16 | ||
17 | FPBIT = tmplibgcc_fp_bit.c | |
18 | DPBIT = dp-bit.c | |
19 | ||
20 | dp-bit.c: $(srcdir)/config/fp-bit.c | |
21 | echo '#define FLOAT_BIT_ORDER_MISMATCH' > dp-bit.c | |
22 | cat $(srcdir)/config/fp-bit.c >> dp-bit.c | |
23 | ||
24 | # Use another name to avoid confusing SUN make, if support for | |
25 | # it is reinstated elsewhere. Prefixed with "tmplibgcc" means | |
26 | # "make clean" will wipe it. We define a few L_ thingies | |
27 | # because we can't select them individually through FPBIT_FUNCS; | |
28 | # see above. | |
29 | tmplibgcc_fp_bit.c: $(srcdir)/config/fp-bit.c | |
30 | echo '#define FLOAT_BIT_ORDER_MISMATCH' > $@ | |
31 | echo '#define FLOAT' >> $@ | |
32 | cat $(srcdir)/config/fp-bit.c >> $@ | |
33 | ||
34 | # The fixed-point arithmetic code is in one file, arit.c, | |
35 | # similar to libgcc2.c (or the old libgcc1.c). We need to | |
36 | # "split it up" with one file per define. | |
37 | $(LIB2FUNCS_EXTRA): $(CRIS_LIB1CSRC) | |
38 | name=`echo $@ | sed -e 's,.*/,,' | sed -e 's,.c$$,,'`; \ | |
39 | echo "#define L$$name" > tmp-$@ \ | |
40 | && echo '#include "$<"' >> tmp-$@ \ | |
41 | && mv -f tmp-$@ $@ | |
1f3233d1 | 42 | |
43 | $(out_object_file): gt-cris.h | |
44 | gt-cris.h : s-gtype ; @true |