summaryrefslogtreecommitdiff
path: root/test/driver/Makefile.am
blob: 6f8b12c02f561c66c6dfaef8c1b19fda17472c90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#   Copyright (C) 2009, 2010, 2012 Rocky Bernstein <rocky@gnu.org>
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.

INCLUDES = $(LIBCDIO_CFLAGS) $(LIBISO9660_CFLAGS)
DATA_DIR = $(abs_top_srcdir)/test/data

abs_path_SOURCES   = abs_path.c
abs_path_LDADD     = $(LIBCDIO_LIBS) $(LTLIBICONV)
abs_path_CFLAGS    = -DDATA_DIR=\"$(DATA_DIR)\"

bincue_SOURCES   = helper.c bincue.c
bincue_LDADD     = $(LIBCDIO_LIBS) $(LTLIBICONV)
bincue_CFLAGS    = -DDATA_DIR=\"$(DATA_DIR)\"

cdrdao_SOURCES   = helper.c cdrdao.c
cdrdao_LDADD     = $(LIBCDIO_LIBS) $(LTLIBICONV)
cdrdao_CFLAGS    = -DDATA_DIR=\"$(DATA_DIR)\"

freebsd_LDADD    = $(LIBCDIO_LIBS) $(LTLIBICONV)
freebsd_CFLAGS   = -DDATA_DIR=\"$(DATA_DIR)\"

realpath_LDADD   = $(LIBCDIO_LIBS) $(LTLIBICONV)
realpath_CFLAGS  = -DDATA_DIR=\"$(DATA_DIR)\"

gnu_linux_SOURCES= helper.c gnu_linux.c
gnu_linux_LDADD  = $(LIBCDIO_LIBS) $(LTLIBICONV)
gnu_linux_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"

mmc_read_LDADD   = $(LIBCDIO_LIBS) $(LTLIBICONV)
mmc_read_CFLAGS  = -DDATA_DIR=\"$(DATA_DIR)\"

mmc_write_LDADD  = $(LIBCDIO_LIBS) $(LTLIBICONV)
mmc_write_CFLAGS = -DDATA_DIR=\"$(DATA_DIR)\"

nrg_SOURCES      = helper.c nrg.c 
nrg_LDADD        = $(LIBCDIO_LIBS) $(LTLIBICONV)
nrg_CFLAGS       = -DDATA_DIR=\"$(DATA_DIR)\"

osx_LDADD        = $(LIBCDIO_LIBS) $(LTLIBICONV)
osx_CFLAGS       = -DDATA_DIR=\"$(DATA_DIR)\"

solaris_LDADD    = $(LIBCDIO_LIBS) $(LTLIBICONV)
solaris_CFLAGS   = -DDATA_DIR=\"$(DATA_DIR)\"

win32_LDADD      = $(LIBCDIO_LIBS) $(LTLIBICONV)
win32_CFLAGS     = -DDATA_DIR=\"$(DATA_DIR)\"

check_PROGRAMS   = \
	abs_path bincue cdrdao freebsd gnu_linux \
	mmc_read mmc_write nrg \
	osx realpath solaris win32

TESTS = $(check_PROGRAMS)

EXTRA_DIST = \
	bincue.c.in \
	helper.c    \
	helper.h    \
	cdrdao.c.in \
	nrg.c.in

MOSTLYCLEANFILES = \
	$(check_PROGRAMS) \
	core core.* *.dump cdda-orig.wav cdda-try.wav *.raw

test: check-am