嗯,一种方法就是bin_programs后头加你那个程序
我觉得简单,然后 make make install 到 $(BBSHOME)/bin下面了
或者你就手动 参数写上 -lBBS -lsystem -L../libBBS -L../libsystem,看到那行LDADD了吧。。。:)
【 在 PowerRC (Because I choose to.) 的大作中提到: 】
: 标 题: Re: [求助]菜鸟级的问题
: 发信站: 水木社区 (Thu Sep 13 11:45:37 2007), 转信
:
: 谢谢指点,这个am和生成出来的东西,差异之大简直另人发指。。。
嘿嘿,有兴趣可以了解一下autoconf/automake是干啥的
:
: CC="@LIBTOOL@"
: CCLD="@CC@"
: bin_PROGRAMS = poststat static usage Xhtml Bhtml listonline \
: showBM idx0Ann lazybm fixdir autoundeny statBM gen_title \
: find_rm_lost statguy autoclear showipdeny \
: scanIP scanMODE listMODE ulevel \
: mails genhot bonlinelog uonlinelog dayuserlog alluserlog \
: gennewboard outdaybm process_invalid_mail bmerge rebuild_digest \
: post_brdlog post_buse newpoststat genbplot sync_mailsize
:
: EXTRA_DIST = urlencode.c
: EXTRA_PROGRAMS =
: LDADD=-lBBS -lsystem -L../libBBS -L../libsystem
: AM_CFLAGS= -I$(top_srcdir)/src
: CLEANFILES=@EXTRA_CLEAN@
:
:
:
: 【 在 fancyrabbit (兔兔猫★Initial F★屁股决定大脑) 的大作中提到: 】
: : 看看 post_file 函数
: : 你看看local_utl下的怎么编译的,看看 Makefile.am 就行了
: : 实在不行你就丢到这下头编译
: : ...................
:
: --
: 我们把世界上一切不能以科学来解释的问题归结为 -- 人品问题
:
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 219.133.176.*]
--
FROM 61.149.142.*