Suppose I want to link the foo application with the bar and baz libs. Both support pkg-config and provide .pc files. The bar lib I want to link dynamically and the baz library I want to link statically. How can I achieve this with automake?
My current setup links both of them dinamycally and looks like this:
foo_SOURCES = main.c
foo_LDADD = @BAR_LIBS@ @BAZ_LIBS@
foo_CFLAGS = @BAR_CFLAGS@ @BAZ_CFLAGS@