1 # Makefile for Amanda tape library.
3 include $(top_srcdir)/config/automake/vars.am
4 include $(top_srcdir)/config/automake/scripts.am
5 include $(top_srcdir)/config/automake/precompile.am
7 INCLUDES = -I$(top_builddir)/common-src \
8 -I$(top_srcdir)/common-src \
9 -I$(top_srcdir)/xfer-src \
10 -I$(top_srcdir)/ndmp-src \
11 -I$(top_srcdir)/gnulib
13 AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
15 # ndmp-device.c includes files with old-skool prototypes, so:
16 AM_CFLAGS += -Wno-strict-prototypes
18 AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS)
25 sbin_SCRIPTS = $(SCRIPTS_PERL)
29 amlib_LTLIBRARIES = libamdevice.la
30 libamdevice_la_LDFLAGS = -release $(VERSION) $(AS_NEEDED_FLAGS)
31 libamdevice_la_SOURCES = \
34 directtcp-connection.c \
38 xfer-source-device.c \
41 xfer-dest-taper-cacher.c \
42 xfer-dest-taper-directtcp.c \
43 xfer-dest-taper-splitter.c \
44 xfer-source-recovery.c
45 libamdevice_la_LIBADD = \
46 ../common-src/libamanda.la \
47 ../xfer-src/libamxfer.la
50 libamdevice_la_SOURCES += tape-device.c
54 libamdevice_la_SOURCES += s3-device.c s3.c s3-util.c
58 libamdevice_la_SOURCES += dvdrw-device.c
62 libamdevice_la_SOURCES += ndmp-device.c
63 libamdevice_la_LIBADD += ../ndmp-src/libndmlib.la
66 ## automake-style tests
69 noinst_PROGRAMS = $(TESTS)
74 sbin_PROGRAMS += activate-devpay
75 activate_devpay_LDADD = \
77 activate_devpay_SOURCES = activate-devpay.c
84 directtcp-connection.h \