| 1 |
# Makefile for Amanda tape library. |
| 2 |
|
| 3 |
include $(top_srcdir)/config/automake/vars.am |
| 4 |
include $(top_srcdir)/config/automake/scripts.am |
| 5 |
include $(top_srcdir)/config/automake/precompile.am |
| 6 |
|
| 7 |
AM_CPPFLAGS = -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 |
| 12 |
|
| 13 |
AM_CFLAGS = $(AMANDA_WARNING_CFLAGS) $(AMANDA_FILE_CFLAGS) |
| 14 |
if GCC_COMPILER |
| 15 |
# ndmp-device.c includes files with old-skool prototypes, so: |
| 16 |
AM_CFLAGS += -Wno-strict-prototypes |
| 17 |
endif |
| 18 |
AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS) $(AS_NEEDED_FLAGS) |
| 19 |
|
| 20 |
sbin_PROGRAMS = |
| 21 |
|
| 22 |
SCRIPTS_PERL = \ |
| 23 |
amdevcheck \ |
| 24 |
amtapetype |
| 25 |
sbin_SCRIPTS = $(SCRIPTS_PERL) |
| 26 |
|
| 27 |
CLEANFILES += $(SCRIPTS_PERL) config.log |
| 28 |
|
| 29 |
## libamdevice.la |
| 30 |
|
| 31 |
amlib_LTLIBRARIES = libamdevice.la |
| 32 |
libamdevice_la_LDFLAGS = -release $(VERSION) $(AS_NEEDED_FLAGS) ${LIBDL} |
| 33 |
libamdevice_la_SOURCES = \ |
| 34 |
property.c \ |
| 35 |
device.c \ |
| 36 |
directtcp-connection.c \ |
| 37 |
diskflat-device.c \ |
| 38 |
null-device.c \ |
| 39 |
rait-device.c \ |
| 40 |
vfs-device.c \ |
| 41 |
xfer-source-device.c \ |
| 42 |
xfer-dest-device.c \ |
| 43 |
xfer-dest-taper.c \ |
| 44 |
xfer-dest-taper-cacher.c \ |
| 45 |
xfer-dest-taper-directtcp.c \ |
| 46 |
xfer-dest-taper-splitter.c \ |
| 47 |
xfer-source-recovery.c |
| 48 |
libamdevice_la_LIBADD = \ |
| 49 |
../common-src/libamanda.la \ |
| 50 |
../xfer-src/libamxfer.la |
| 51 |
|
| 52 |
if WANT_TAPE_DEVICE |
| 53 |
libamdevice_la_SOURCES += tape-device.c |
| 54 |
endif |
| 55 |
|
| 56 |
if WANT_S3_DEVICE |
| 57 |
libamdevice_la_SOURCES += s3-device.c s3.c s3-util.c |
| 58 |
endif |
| 59 |
|
| 60 |
if WANT_DVDRW_DEVICE |
| 61 |
libamdevice_la_SOURCES += dvdrw-device.c |
| 62 |
endif |
| 63 |
|
| 64 |
if WANT_NDMP_DEVICE |
| 65 |
AM_CPPFLAGS += ${TIRPC_CFLAGS} |
| 66 |
libamdevice_la_SOURCES += ndmp-device.c |
| 67 |
libamdevice_la_LIBADD += ../ndmp-src/libndmlib.la |
| 68 |
libamdevice_la_LDFLAGS += ${TIRPC_LDFLAGS} |
| 69 |
endif |
| 70 |
|
| 71 |
## automake-style tests |
| 72 |
|
| 73 |
TESTS = |
| 74 |
noinst_PROGRAMS = $(TESTS) |
| 75 |
|
| 76 |
## activate-devpay |
| 77 |
|
| 78 |
if WANT_S3_DEVICE |
| 79 |
sbin_PROGRAMS += activate-devpay |
| 80 |
activate_devpay_LDADD = \ |
| 81 |
../gnulib/libgnu.la |
| 82 |
activate_devpay_SOURCES = activate-devpay.c |
| 83 |
endif |
| 84 |
|
| 85 |
## headers |
| 86 |
|
| 87 |
noinst_HEADERS = \ |
| 88 |
device.h \ |
| 89 |
directtcp-connection.h \ |
| 90 |
diskflat-device.h \ |
| 91 |
property.h \ |
| 92 |
s3.h \ |
| 93 |
s3-device.h \ |
| 94 |
s3-util.h \ |
| 95 |
xfer-device.h \ |
| 96 |
xfer-dest-taper.h \ |
| 97 |
vfs-device.h |
| 98 |
|
| 99 |
aminclude_HEADERS = |
| 100 |
|
| 101 |
install-build-dependencies: install-data-am |
| 102 |
${SED} -e 's@ ${amlibdir}/libam@ ${DESTDIR}${amlibdir}/libam@g' -i ${DESTDIR}/${amlibdir}/libamdevice.la |
| 103 |
${SED} -e 's@ ${amlibdir}/libndmlib@ ${DESTDIR}${amlibdir}/libndmlib@g' -i ${DESTDIR}/${amlibdir}/libamdevice.la |