# A brief demonstration of inter-library dependencies # AUTOMAKE_OPTIONS = no-dependencies foreign lib_LTLIBRARIES = libl1.la libl2.la libl3.la libl4.la libl1_la_SOURCES = l1.c l1.h sysdep.h libl2_la_SOURCES = l2.c l2.h sysdep.h libl2_la_LIBADD = libl1.la libl3_la_SOURCES = l3.c l3.h sysdep.h libl3_la_LIBADD = libl1.la libl2.la libl4_la_SOURCES = l4.c l4.h sysdep.h libl4_la_LIBADD = libl3.la $(LIBADD_M) bin_PROGRAMS = depdemo depdemo.static depdemo_SOURCES = main.c depdemo_LDADD = libl1.la libl2.la libl4.la \ libl3.la # remove this! depdemo_DEPENDENCIES = libl1.la libl2.la libl4.la depdemo_static_SOURCES = main.c depdemo_static_LDADD = libl1.la libl2.la libl4.la \ libl3.la # remove this! depdemo_static_DEPENDENCIES = libl1.la libl2.la libl4.la depdemo_static_LDFLAGS = -static