75177d7d738cccb2b64b4336014e223c7e1df39e
[debian/amanda] / device-src / Makefile.am
1 # Makefile for Amanda tape library.
2
3 SUBDIRS = . tests
4
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 ## libamdevice.la
17
18 amlib_LTLIBRARIES =     libamdevice.la
19 libamdevice_la_LDFLAGS = -release $(VERSION) 
20 libamdevice_la_SOURCES = property.c device.c queueing.c semaphore.c \
21         null-device.c rait-device.c vfs-device.c 
22 libamdevice_la_LIBADD = ../common-src/libamanda.la
23
24 # tape-device has *lots* of conditionals; the first is whether to support
25 # the device at all, and the remainder select a particular kind of OS-specific
26 # backend.
27
28 if WANT_TAPE_DEVICE
29 libamdevice_la_SOURCES += tape-device.c
30
31 if WANT_TAPE_XENIX
32 libamdevice_la_SOURCES += tape-xenix.c
33 endif
34 if WANT_TAPE_AIX
35 libamdevice_la_SOURCES += tape-aix.c
36 endif
37 if WANT_TAPE_UWARE
38 libamdevice_la_SOURCES += tape-uware.c
39 endif
40 if WANT_TAPE_POSIX
41 libamdevice_la_SOURCES += tape-posix.c
42 endif
43
44 endif
45
46 if WANT_S3_DEVICE
47 libamdevice_la_SOURCES += s3-device.c s3.c
48 endif
49
50 ## activate-devpay
51
52 if WANT_DEVPAY
53 sbin_PROGRAMS += activate-devpay
54 activate_devpay_SOURCES = activate-devpay.c
55 endif
56
57 ## headers
58
59 noinst_HEADERS = null-device.h semaphore.h \
60         tape-ops.h property.h rait-device.h s3.h \
61         s3-device.h tape-device.h vfs-device.h \
62         device.h queueing.h
63         
64 aminclude_HEADERS =