|
Packit |
dd8086 |
# Copyright (C) 2005-2006, 2008-2009, 2017 Rocky Bernstein
|
|
Packit |
dd8086 |
# <rocky@gnu.org>
|
|
Packit |
dd8086 |
#
|
|
Packit |
dd8086 |
# This program is free software: you can redistribute it and/or modify
|
|
Packit |
dd8086 |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
dd8086 |
# the Free Software Foundation, either version 3 of the License, or
|
|
Packit |
dd8086 |
# (at your option) any later version.
|
|
Packit |
dd8086 |
#
|
|
Packit |
dd8086 |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
dd8086 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
dd8086 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
dd8086 |
# GNU General Public License for more details.
|
|
Packit |
dd8086 |
#
|
|
Packit |
dd8086 |
# You should have received a copy of the GNU General Public License
|
|
Packit |
dd8086 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
##########################################################
|
|
Packit |
dd8086 |
# Sample C++ programs using libcdio (without OO wrapper)
|
|
Packit |
dd8086 |
#########################################################
|
|
Packit |
dd8086 |
#
|
|
Packit |
dd8086 |
SUBDIRS = OO
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
if BUILD_EXAMPLES
|
|
Packit |
dd8086 |
noinst_PROGRAMS = device eject isofile isofile2 isolist \
|
|
Packit |
dd8086 |
mmc1 mmc2
|
|
Packit |
dd8086 |
endif
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
AM_CPPFLAGS = -I$(top_srcdir) $(LIBCDIO_CFLAGS)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
device_DEPENDENCIES = $(LIBCDIO_DEPS)
|
|
Packit |
dd8086 |
device_SOURCES = device.cpp
|
|
Packit |
dd8086 |
device_LDADD = $(LIBCDIO_LIBS)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
eject_DEPENDENCIES = $(LIBCDIO_DEPS)
|
|
Packit |
dd8086 |
eject_SOURCES = eject.cpp
|
|
Packit |
dd8086 |
eject_LDADD = $(LIBCDIO_LIBS)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
isofile_SOURCES = isofile.cpp
|
|
Packit |
dd8086 |
isofile_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
Packit |
dd8086 |
isofile2_SOURCES = isofile2.cpp
|
|
Packit |
dd8086 |
isofile2_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
Packit |
dd8086 |
isolist_SOURCES = isolist.cpp
|
|
Packit |
dd8086 |
isolist_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LTLIBICONV)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
mmc1_SOURCES = mmc1.cpp
|
|
Packit |
dd8086 |
mmc1_DEPENDENCIES = $(LIBCDIO_DEPS)
|
|
Packit |
dd8086 |
mmc1_LDADD = $(LIBCDIO_LIBS)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
mmc2_SOURCES = mmc2.cpp
|
|
Packit |
dd8086 |
mmc2_DEPENDENCIES = $(LIBCDIO_DEPS)
|
|
Packit |
dd8086 |
mmc2_LDADD = $(LIBCDIO_LIBS)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
check_PROGRAMS = $(noinst_PROGRAMS)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
TESTS = $(check_PROGRAMS)
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
# iso programs create file "copying"
|
|
Packit |
dd8086 |
MOSTLYCLEANFILES = copying *.wav
|
|
Packit |
dd8086 |
|
|
Packit |
dd8086 |
#: run valgrind on C++ programs
|
|
Packit |
dd8086 |
check-leaks: $(check_PROGRAMS)
|
|
Packit |
dd8086 |
for p in $(check_PROGRAMS); do \
|
|
Packit |
dd8086 |
valgrind ./$$p; \
|
|
Packit |
dd8086 |
done
|