From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?iso-8859-15?q?J=FCrgen_Beisert?= Date: Mon, 11 Nov 2013 14:05:08 +0100 References: <4ECD7F7A0B03E64BA50DA3C6FC2464FD075B0FA4@KRUSTY.ddisplay.com> In-Reply-To: <4ECD7F7A0B03E64BA50DA3C6FC2464FD075B0FA4@KRUSTY.ddisplay.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201311111405.08130.jbe@pengutronix.de> Subject: Re: [ptxdist] additional c file in a src-autoconf-proglib package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Pat Murray 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 =3D \ > libtest.c > > > # > # binary > # > test_SOURCES =3D \ > test.c uart.c \ This is the correct way. Just by adding more *.c files to this symbol. Afte= r = 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. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de