41c5b23d88d06af184a8151a62645e71afd3840a
[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)/gnulib
10
11 AM_CFLAGS = $(AMANDA_WARNING_CFLAGS)
12 AM_LDFLAGS = $(AMANDA_STATIC_LDFLAGS)
13
14 sbin_PROGRAMS =
15
16 CHECK_PERL = amtapetype
17 SCRIPTS_PERL = $(CHECK_PERL)
18 sbin_SCRIPTS = $(SCRIPTS_PERL)
19
20 ## libamdevice.la
21
22 amlib_LTLIBRARIES =     libamdevice.la
23 libamdevice_la_LDFLAGS = -release $(VERSION) 
24 libamdevice_la_SOURCES = property.c device.c device-queueing.c \
25         null-device.c rait-device.c vfs-device.c 
26 libamdevice_la_LIBADD = ../common-src/libamanda.la
27
28 # tape-device has *lots* of conditionals; the first is whether to support
29 # the device at all, and the remainder select a particular kind of OS-specific
30 # backend.
31
32 if WANT_TAPE_DEVICE
33 libamdevice_la_SOURCES += tape-device.c
34
35 if WANT_TAPE_XENIX
36 libamdevice_la_SOURCES += tape-xenix.c
37 endif
38 if WANT_TAPE_AIX
39 libamdevice_la_SOURCES += tape-aix.c
40 endif
41 if WANT_TAPE_UWARE
42 libamdevice_la_SOURCES += tape-uware.c
43 endif
44 if WANT_TAPE_POSIX
45 libamdevice_la_SOURCES += tape-posix.c
46 endif
47
48 endif
49
50 if WANT_S3_DEVICE
51 libamdevice_la_SOURCES += s3-device.c s3.c s3-util.c
52 endif
53
54 ## automake-style tests
55
56 TESTS = vfs-test
57 noinst_PROGRAMS = $(TESTS)
58
59 vfs_test_SOURCES = vfs-test.c
60 vfs_test_LDADD = \
61         ../common-src/libtestutils.la \
62         libamdevice.la
63
64 ## activate-devpay
65
66 if WANT_S3_DEVICE
67 sbin_PROGRAMS += activate-devpay
68 activate_devpay_SOURCES = activate-devpay.c
69 endif
70
71 ## headers
72
73 noinst_HEADERS = \
74         device-queueing.h \
75         device.h \
76         property.h \
77         s3.h \
78         s3-util.h \
79         tape-device.h \
80         tape-ops.h
81         
82 aminclude_HEADERS =