1# Makefile for Amanda library. 2 3include $(top_srcdir)/config/automake/vars.am 4include $(top_srcdir)/config/automake/installperms.am 5include $(top_srcdir)/config/automake/precompile.am 6 7INCLUDES = -I$(top_srcdir)/gnulib \ 8 -I$(top_srcdir)/device-src \ 9 -I$(top_srcdir)/common-src 10 11AM_CFLAGS = $(AMANDA_WARNING_CFLAGS) 12AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS) 13 14amlib_LTLIBRARIES = libamxfer.la 15 16LINT=$(AMLINT) 17LINTFLAGS=$(AMLINTFLAGS) 18 19libamxfer_la_SOURCES = \ 20 dest-fd.c \ 21 dest-null.c \ 22 dest-buffer.c \ 23 dest-directtcp-connect.c \ 24 dest-directtcp-listen.c \ 25 element-glue.c \ 26 filter-xor.c \ 27 filter-process.c \ 28 source-random.c \ 29 source-fd.c \ 30 source-pattern.c \ 31 source-directtcp-connect.c \ 32 source-directtcp-listen.c \ 33 xfer-element.c \ 34 xfer.c \ 35 xmsg.c 36 37libamxfer_la_LDFLAGS = -release $(VERSION) $(AS_NEEDED_FLAGS) 38libamxfer_la_LIBADD = \ 39 ../common-src/libamanda.la 40 41noinst_HEADERS = \ 42 amxfer.h \ 43 element-glue.h \ 44 xfer-element.h \ 45 xfer.h \ 46 xmsg.h 47 48# automake-style tests 49 50TESTS = xfer-test 51noinst_PROGRAMS = $(TESTS) 52 53xfer_test_SOURCES = xfer-test.c 54xfer_test_LDADD = \ 55 ../common-src/libtestutils.la \ 56 libamxfer.la 57 58# lint support 59 60lint: 61 @echo $(LINT) $(libamxfer_la_SOURCES) 62 @$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config $(INCLUDES) $(libamxfer_la_SOURCES) 63 @echo $(LINT) $(genversion_SOURCES) 64 @$(LINT) $(LINTFLAGS) $(CPPFLAGS) $(DEFS) -I. -I$(top_builddir)/config $(INCLUDES) $(genversion_SOURCES) 65 66listlibsrc: 67 @ for p in $(libamxfer_la_SOURCES); do \ 68 listlibsrcs="$$listlibsrcs `pwd`/$$p"; \ 69 done; \ 70 echo $$listlibsrcs >listlibsrc.output 71