# HG changeset patch # User Florian Pose # Date 1348076818 -7200 # Node ID 6a6dec6fc8060b00148db9bb4decba707db073fc # Parent 39a1b82b55354c1bda49df12be4d70542789b62c Avoided use of AM_CFLAGS, which is not used in some situations; fixed warning. diff -r 39a1b82b5535 -r 6a6dec6fc806 examples/dc_user/Makefile.am --- a/examples/dc_user/Makefile.am Tue Sep 11 17:50:56 2012 +0200 +++ b/examples/dc_user/Makefile.am Wed Sep 19 19:46:58 2012 +0200 @@ -27,12 +27,10 @@ # #------------------------------------------------------------------------------ -AM_CFLAGS = -Wall - noinst_PROGRAMS = ec_dc_user_example ec_dc_user_example_SOURCES = main.c -ec_dc_user_example_CFLAGS = -I$(top_srcdir)/include +ec_dc_user_example_CFLAGS = -I$(top_srcdir)/include -Wall ec_dc_user_example_LDFLAGS = -L$(top_builddir)/lib/.libs -lethercat -lrt #------------------------------------------------------------------------------ diff -r 39a1b82b5535 -r 6a6dec6fc806 examples/user/Makefile.am --- a/examples/user/Makefile.am Tue Sep 11 17:50:56 2012 +0200 +++ b/examples/user/Makefile.am Wed Sep 19 19:46:58 2012 +0200 @@ -27,12 +27,10 @@ # #------------------------------------------------------------------------------ -AM_CFLAGS = -Wall - noinst_PROGRAMS = ec_user_example ec_user_example_SOURCES = main.c -ec_user_example_CFLAGS = -I$(top_srcdir)/include +ec_user_example_CFLAGS = -I$(top_srcdir)/include -Wall ec_user_example_LDFLAGS = -L$(top_builddir)/lib/.libs -lethercat #------------------------------------------------------------------------------ diff -r 39a1b82b5535 -r 6a6dec6fc806 examples/user/main.c --- a/examples/user/main.c Tue Sep 11 17:50:56 2012 +0200 +++ b/examples/user/main.c Wed Sep 19 19:46:58 2012 +0200 @@ -255,8 +255,6 @@ void cyclic_task() { - int i; - // receive process data ecrt_master_receive(master); ecrt_domain_process(domain1); diff -r 39a1b82b5535 -r 6a6dec6fc806 lib/Makefile.am --- a/lib/Makefile.am Tue Sep 11 17:50:56 2012 +0200 +++ b/lib/Makefile.am Wed Sep 19 19:46:58 2012 +0200 @@ -28,14 +28,12 @@ # #------------------------------------------------------------------------------ -AM_CFLAGS = -Wall - lib_LTLIBRARIES = libethercat.la #------------------------------------------------------------------------------ +libethercat_la_CFLAGS = -I$(srcdir)/.. -fno-strict-aliasing -Wall libethercat_la_LDFLAGS = -version-info 1:0:0 -libethercat_la_CFLAGS = -I$(srcdir)/.. -fno-strict-aliasing libethercat_la_SOURCES = \ common.c \ domain.c \