Mercurial > hg > CbC > CbC_gcc
comparison libgcc/fixed-obj.mk @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
1 # This file is included several times in a row, once for each element of | |
2 # $(iter-items). On each inclusion, we advance $o to the next element. | |
3 # $(iter-labels) and $(iter-from) and $(iter-to) are also advanced. | |
4 | |
5 o := $(firstword $(iter-items)) | |
6 iter-items := $(filter-out $o,$(iter-items)) | |
7 | |
8 $o-label := $(firstword $(iter-labels)) | |
9 iter-labels := $(wordlist 2,$(words $(iter-labels)),$(iter-labels)) | |
10 | |
11 $o-from := $(firstword $(iter-from)) | |
12 iter-from := $(wordlist 2,$(words $(iter-from)),$(iter-from)) | |
13 | |
14 $o-to := $(firstword $(iter-to)) | |
15 iter-to := $(wordlist 2,$(words $(iter-to)),$(iter-to)) | |
16 | |
17 ifeq ($($o-from),$($o-to)) | |
18 $o-opt := -D$($o-from)_MODE | |
19 else | |
20 $o-opt := -DFROM_$($o-from) -DTO_$($o-to) | |
21 endif | |
22 | |
23 #$(info $o$(objext): -DL$($o-label) $($o-opt)) | |
24 | |
25 $o$(objext): %$(objext): $(gcc_srcdir)/config/fixed-bit.c | |
26 $(gcc_compile) -DL$($*-label) $($*-opt) -c $(gcc_srcdir)/config/fixed-bit.c $(vis_hide) | |
27 | |
28 ifeq ($(enable_shared),yes) | |
29 $(o)_s$(objext): %_s$(objext): $(gcc_srcdir)/config/fixed-bit.c | |
30 $(gcc_s_compile) -DL$($*-label) $($*-opt) -c $(gcc_srcdir)/config/fixed-bit.c | |
31 endif |