Re: Building both a program and a library from the same sources

2013-05-13 Thread Cojocaru Alexandru
On Mon, 13 May 2013 13:40:37 -0400 Nick Bowler wrote: > On 2013-05-13 14:49 +0200, Cojocaru Alexandru wrote: > > Hi, > > I would like to compile both a program and a library from the same > > source file. This is what I have inside src/Makefile.am: > > > > lib_LTLIBRARIES = libex.la > > libex_la

Re: Building both a program and a library from the same sources

2013-05-13 Thread Nick Bowler
On 2013-05-13 14:49 +0200, Cojocaru Alexandru wrote: > Hi, > I would like to compile both a program and a library from the same > source file. This is what I have inside src/Makefile.am: > > lib_LTLIBRARIES = libex.la > libex_la_SOURCES = src/ex.c > include_HEADERS = src/ex.h > > AM_CPPFLAGS += -