add support for C files that are linked to different names for building.

This commit is contained in:
mrg 2011-06-29 05:18:32 +00:00
parent 3e9b4b1af1
commit 6df884f582
1 changed files with 14 additions and 3 deletions

View File

@ -5,8 +5,17 @@
# $5 = dst
sub(/mpn\//, "", $5)
sub(/.*external\/lgpl3\/gmp\/dist\//, "", $3)
srcname = $3
sub(/.*\//, "", srcname)
if (match($3, /\.c$/)) {
c_list[$5] = $3
if ($5 == srcname) {
c_list[$5] = $3
} else {
c_src_list[$5] = $3
}
} else if (match($3, /\.asm$/)) {
asm_list[$5] = $3
}
@ -14,11 +23,13 @@
END {
printf("SRCS+= \\\n");
# XXX check that the basenames are the same?
# XXX yeah - logops_n.c and popham.c may need this
for (c in c_list) {
printf("\t%s \\\n", c)
}
printf("\nC_SRCS_LIST= \\\n");
for (c in c_src_list) {
printf("\t%s\t\t%s \\\n", c, c_src_list[c])
}
printf("\nASM_SRCS_LIST= \\\n");
for (asm in asm_list) {
printf("\t%s\t\t%s \\\n", asm, asm_list[asm])