]> git.gag.com Git - debian/amanda/blob - device-src/Makefile.am
update standards version
[debian/amanda] / device-src / Makefile.am
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 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
12
13 AM_CFLAGS = $(AMANDA_WARNING_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 ## libamdevice.la
28
29 amlib_LTLIBRARIES =     libamdevice.la
30 libamdevice_la_LDFLAGS = -release $(VERSION) $(AS_NEEDED_FLAGS)
31 libamdevice_la_SOURCES = \
32         property.c \
33         device.c \
34         directtcp-connection.c \
35         null-device.c \
36         rait-device.c \
37         vfs-device.c \
38         xfer-source-device.c \
39         xfer-dest-device.c \
40         xfer-dest-taper.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
48
49 if WANT_TAPE_DEVICE
50 libamdevice_la_SOURCES += tape-device.c
51 endif
52
53 if WANT_S3_DEVICE
54 libamdevice_la_SOURCES += s3-device.c s3.c s3-util.c
55 endif
56
57 if WANT_DVDRW_DEVICE
58 libamdevice_la_SOURCES += dvdrw-device.c
59 endif
60
61 if WANT_NDMP_DEVICE
62 libamdevice_la_SOURCES += ndmp-device.c
63 libamdevice_la_LIBADD += ../ndmp-src/libndmlib.la
64 endif
65
66 ## automake-style tests
67
68 TESTS =
69 noinst_PROGRAMS = $(TESTS)
70
71 ## activate-devpay
72
73 if WANT_S3_DEVICE
74 sbin_PROGRAMS += activate-devpay
75 activate_devpay_LDADD = \
76         ../gnulib/libgnu.la
77 activate_devpay_SOURCES = activate-devpay.c
78 endif
79
80 ## headers
81
82 noinst_HEADERS = \
83         device.h \
84         directtcp-connection.h \
85         property.h \
86         s3.h \
87         s3-util.h \
88         xfer-device.h \
89         xfer-dest-taper.h \
90         vfs-device.h
91
92 aminclude_HEADERS =