AUTOMAKE_OPTIONS 在makefile.am开头可以定义automake的特性,多个设置用空格分开 AUTOMAKE_OPTIONS=xxx xxx xxx AUTOMAKE_OPTIONS=foreign 定义生成的makefile尽可能通用,放弃一些gun的特性,一般用作跨平台编译 AUTOMAKE_OPTIONS=subdir-objects 如果有多个子目录,会把编
1. With automake >=1.14, ./autogen.sh fails This is due to a change in the way automake sets subdir-objects as the default: See https:///sugarlabs/automake/blob/master/PLANS/subdir-objects.txt === automake: warnings are treated as errors third_party/Makefile.am:81: warning: source fi...
Makefile.am文件内容: 登录后复制AUTOMAKE_OPTIONS=foreign #指定协议规范 bin_PROGRAMS=app #生成的可执行文件 #AUTOMAKE_OPTIONS = subdir-objects app_SOURCES=main.c $(top_srcdir)/src/my_du.c $(top_srcdir)/src/my_cat.c $(top_srcdir)/src/my_cp.c AM_CPPFLAGS=-Iinclude #指定头文件...
使用automake 1.14,发现老项目在编译过程中会报警告: source/Makefile.am:45: warning:sourcefile'zz/xx.cpp'isina subdirectory,source/Makefile.am:45: but option'subdir-objects'is disabled 解决方法 在configure.ac中添加如下内容: AM_INIT_AUTOMAKE([subdir-objects])...
使用automake 1.14,发现老项目在编译过程中会报警告: source/Makefile.am:45: warning: source file 'zz/xx.cpp' is in a subdirectory, source/Makefile.am:45: but option 'subdir-objects' is disabled 1. 2. 解决方法 在configure.ac中添加如下内容: ...
AUTOMAKE_OPTIONS = foreign subdir-objects AM_CPPFLAGS = $(INCLUDEDIR)//编译器的-I参数 bin_PROGRAMS = zdmsd zdmsd_SOURCES = zdmsd.c ../device/device.c zdmsd_LDADD = -llog -L$(BUILD_DIR)/zjlog/ \ -ludp -L$(BUILD_DIR)/3rd/hardware/device/udp/ \ ...
automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s...
AUTOMAKE_OPTIONS=subdir-objects AM_CPPFLAGS = $(GLIB_CFLAGS) lib_LTLIBRARIES = liblcm.la 2 changes: 1 addition & 1 deletion 2 lcmgen/Makefile.am @@ -1,4 +1,4 @@ INCLUDES = $(GLIB_CFLAGS) AM_CPPFLAGS = $(GLIB_CFLAGS) bin_PROGRAMS = lcm-gen 2 changes: 1 addition & 1 deleti...
AUTOMAKE_OPTIONS = subdir-objects foo_SOURCES = $(srcdir)/foo.c $(srcdir)/s/bar.c $(top_srcdir)/baz.c then "make all" will create 'foo.o' and 's/bar.o' in $(builddir) rather than in $(srcdir), and will create 'baz.o' in $(top_builddir) rather than in $(top...
AUTOMAKE_OPTIONS = foreign //设置automake的选项,automake提供了三种软件等级:foreign、gnu和gnits,当当前库文件编译所需源文件不在当前目录时要设置参数subdir-objects 目标1:bin目录可执行程序 bin_PROGRAMS =XXX YYY #编译并安装, 生成的目标“可执行应用程序”名称,如果有多个,用空格隔开,与configure.ac中AC_IN...