我正在将现有库(libtcod)直接转换为 Autotools(为了 OS X 的快乐)。不幸的是,当我将我Makefile.am
的lib_LIBRARIES
规则切换到lib_LTLIBRARIES
时,构建会从成功变为 un。摘自以下输出:
Making all in .
make[1]: Nothing to be done for `all-am'.
Making all in src
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -MT bresenham_c.lo -MD -MP -MF .deps/bresenham_c.Tpo -c -o bresenham_c.lo bresenham_c.c
mv -f .deps/bresenham_c.Tpo .deps/bresenham_c.Plo
mv: rename .deps/bresenham_c.Tpo to .deps/bresenham_c.Plo: No such file or directory
make[1]: *** [bresenham_c.lo] Error 1
make: *** [all-recursive] Error 1
src/Makefile.am
看起来像这样:
lib_LTLIBRARIES = libtcod.la
libtcod_la_SOURCES = bresenham_c.c bresenham3_c.c bsp_c.c color_c.c ...
src/.deps
包含:
$ ls src/.deps/
bresenham_c.Plo bresenham_c.Po ...
我在这里犯了一个明显的错误,还是应该这样做?