如何修改binutils 2.29 Makefile.am并重新创建一个新的Makefile?

时间:2017-08-24 16:48:59

标签: automake libtool binutils autoreconf

我在binutils-2.29 / binutils目录中更改了Makefile.am以创建新库。所以我运行以下命令来创建一个新的Makefile

dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ sudo libtoolize && aclocal -I./ && autoreconf && automake

它给了我以下错误:

dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ sudo libtoolize && aclocal -I./ && autoreconf && automake
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autom4te: cannot open autom4te.cache/requests: Permission denied
aclocal: error: echo failed with exit status: 1

但是在Parent目录中没有Makefile.am,子目录中有Makefile.am。 当我搜索Makefile.am时,我得到了这个:

dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ find -iname "Makefile.am" | xargs grep -inr "ACLOCAL_AMFLAGS"
./gas/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./gold/Makefile.am:26:ACLOCAL_AMFLAGS = -I ../bfd -I ../config
./opcodes/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./binutils/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./ld/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./zlib/Makefile.am:5:ACLOCAL_AMFLAGS = -I .. -I ../config
./gprof/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
./bfd/Makefile.am:21:ACLOCAL_AMFLAGS = -I . -I .. -I ../config

我应该在哪个Makefile.am中添加-I m4?

同样在父目录中,有不同扩展名的Makefile

dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ ls Makefile.*
Makefile.def  Makefile.in  Makefile.tpl

0 个答案:

没有答案