Hi Pat, On Monday 11 November 2013 13:32:12 Pat Murray wrote: > I created a package using "ptxdist test src-autoconf-proglib" , this > allowed me to create a shared library libtest.so and a binary test. That's > all ok, it created two files libtest.c and test.c and I build it > successfully. > > I then wanted to add another file uart.c , so that it would be built & > linked with the Binary "test". > > I tried the following changes to Makefile.am (highlighted in green), but it > fails to build. > > # > # library > # > Libtest_la_SOURCES = \ > libtest.c > > > # > # binary > # > test_SOURCES = \ > test.c uart.c \
This is the correct way. Just by adding more *.c files to this symbol. After the last source file name you must not add a trailing '\'. > How can a ptxdist package using src-autoconf-proglib have two .c files for > the Binary ( not the shared library .so) How does it fail? Can you show us the error messages? Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list [email protected]
