ChinaUnix.net
相关文章推荐:

makefile 参数

makefile.in文件中,有许多如下面的参数 @SET_MAKE@ SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ libexecdir = @libexecdir@ datadir = @datadir@ sysconfdir = @sysconfdir@ sharedstatedir = @sharedstatedir@ localstatedir = @localstatedir@ libdir = @libdir@ infodir = @infodir@ mandir = ...

by gp101224 - C/C++ - 2005-03-05 13:48:44 阅读(625) 回复(3)

相关讨论

[code]MAINTAINERCLEANFILES = makefile.in SUBDIRS= doc . data configs src GPROF_FLAG = -pg -g AM_CXXFLAGS = -DFOR_CXX ${GPROF_FLAG} EXTRA_DIST = autogen.sh UPGRADING[/code] 我想给一个程序加上-pg选项编译,上面的是makefile.am,第3.4行是我添加的。 但是结果运行make,g++运行时还是没有-pg选项,请问该怎么才能让他有-pg呢 [ 本帖最后由 ayaa 于 2009-6-16 16:58 编辑 ]

by ayaa - C/C++ - 2009-06-16 22:09:24 阅读(1079) 回复(2)

rt,makefile中就这一句: gcc -g a.c b.c ../public/public.c -o a -lsqlite -ltest -ltstlog -I../public -Wall 使用GDB的时候,说没有调试符号: (no debugging symbols found)...

by lovebible - C/C++ - 2008-03-25 12:05:14 阅读(2171) 回复(2)

我想实现这样的功能: 输入:make mv ../../exeDir 自动将可执行文件移动到../../exeDir下 也就是makefile中大致是这样: mv:: mv $(myExe) $2 也就是说将目标目录作为参数传入makefile 不知道能不能实现,反正我本人目前为止没看到这么用的 有达人解答吗?

by larters - C/C++ - 2005-07-11 18:43:16 阅读(1552) 回复(9)

i use man command to find the -lm parameter,but i did get it,but when i use it ,the makefile can pass this.....why?:P thanks

by 小笨狐狸 - C/C++ - 2004-10-15 10:43:23 阅读(2571) 回复(9)

今天看以前别人传给我的一段makefile代码时,发现一个参数“--depend”,查遍了资料不知道该如何解释它 是一个gcc的参数?还是一个以depend命名的makefile文件?还是其他的? 代码如下: #**************************************************************************** # C Source File General Compile Rule #**************************************************************************** $(OBJ_DIR)/%.o: %.c #$(CFG_F...

by bonewolf110 - C/C++ - 2009-05-08 15:30:54 阅读(801) 回复(4)

$perl makefile.PL Checking if your kit is complete... Looks good Can't install directory 'etc/sdist.conf' unless overwrite=1 请问应该怎样加overwrite参数呢?

by hgneng - Perl - 2007-03-01 23:22:26 阅读(1088) 回复(0)

示例如下: OFLAGS = -o -D_POXIX_C_SOURCE -lpthread -L$(ORACLE_HOME)/lib32 -lclntsh -Wl,+s ...... sysReport_db: sysReport_db.o g++ $(OFLAGS) sysReport_db.o -o sysReport_db 加入参数Wl,+s的目的是为了使编译后的可执行程序在不同的主机上执行,不受ORACLE安装目录不固定的影响,但是我不知道参数Wl,+s的具体含义是什么?请大侠赐教,另外这个参数在LINUX上却会报错,如果在linux上想实现同样的效果,该如何...

by alizh - C/C++ - 2005-11-02 16:07:51 阅读(3107) 回复(7)

本人刚从事linux开发,在做程序编译的时候,经常遇到如下类型的错误: 1./usr/bin/ld: cannot find -lclntsh 2./lib/libpthread.so.0: undefined reference to `__sysctl@GLIBC_2.2' /lib/libpthread.so.0: undefined reference to `_IO_list_unlock@GLIBC_2.2' /lib/libpthread.so.0: undefined reference to `_IO_iter_file@GLIBC_2.2' /lib/libpthread.so.0: undefined reference to `getrlimit@GLIBC_2.2' /lib/libpthread.so....

by yyw_jx - C/C++ - 2004-03-05 17:46:37 阅读(4826) 回复(6)
by wolfza - 其他UNIX - 2004-07-13 20:18:48 阅读(705) 回复(1)

请教各位大侠,我的makefile执行的很怪, 做CC ... objects -o $@ $(LIB) 就可以编译过去,但是 CC ... $(LIB) objects -o $@就不行 请问,这是怎么回事,谢谢! PS:为了简化描述,"..."表示中间的其他东西略过,objects代表那些编译好的.o文件,LIB定义了一些链接库,例如 -lm等等。

by rinai - C/C++ - 2007-02-01 14:53:36 阅读(2141) 回复(6)