2004-12-22 10:04:46 +00:00
|
|
|
# $Id: Makefile.am,v 1.29 2004/12/22 10:04:46 rocky Exp $
|
2003-03-24 19:01:09 +00:00
|
|
|
#
|
2004-09-11 13:02:36 +00:00
|
|
|
# Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
2003-03-24 19:01:09 +00:00
|
|
|
#
|
|
|
|
|
# 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 2 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, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
#
|
|
|
|
|
####################################################
|
|
|
|
|
# Things to make the sample/test programs
|
|
|
|
|
####################################################
|
2004-12-22 10:04:46 +00:00
|
|
|
|
|
|
|
|
if BUILD_CD_PARANOIA
|
2004-12-18 17:29:32 +00:00
|
|
|
SUBDIRS = cd-paranoia
|
2004-12-22 10:04:46 +00:00
|
|
|
endif
|
2004-12-18 17:29:32 +00:00
|
|
|
|
2003-06-01 21:05:45 +00:00
|
|
|
CDDB_LIBS=@CDDB_LIBS@
|
2003-04-14 04:29:45 +00:00
|
|
|
|
2003-11-18 03:35:19 +00:00
|
|
|
if MAINTAINER_MODE
|
|
|
|
|
MAINTAINERCLEANFILES = $(man_MANS)
|
2004-04-25 00:46:34 +00:00
|
|
|
man_MANS = cd-drive.1 cd-info.1 cd-read.1 iso-read.1 iso-info.1
|
2003-11-18 03:35:19 +00:00
|
|
|
$(man_MANS): %.1: %
|
|
|
|
|
-$(HELP2MAN) --output=$@ ./$<
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CDINFO
|
2003-09-21 04:21:39 +00:00
|
|
|
cd_info_SOURCES = cd-info.c util.c util.h
|
2004-10-26 08:32:28 +00:00
|
|
|
cd_info_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LIBPOPT_LIBS) $(CDDB_LIBS) $(VCDINFO_LIBS) $(LIBICONV)
|
2004-12-18 21:24:25 +00:00
|
|
|
endif
|
2003-08-16 13:25:13 +00:00
|
|
|
|
2004-12-18 21:24:25 +00:00
|
|
|
if BUILD_CD_DRIVE
|
2004-04-25 00:46:34 +00:00
|
|
|
cd_drive_SOURCES = cd-drive.c util.c util.h
|
2004-10-26 08:32:28 +00:00
|
|
|
cd_drive_LDADD = $(LIBCDIO_LIBS) $(LIBPOPT_LIBS) $(LIBICONV)
|
2004-12-18 21:24:25 +00:00
|
|
|
endif
|
2004-04-25 00:46:34 +00:00
|
|
|
|
2004-12-18 21:24:25 +00:00
|
|
|
if BUILD_CD_READ
|
2003-09-21 04:21:39 +00:00
|
|
|
cd_read_SOURCES = cd-read.c util.c util.h
|
2004-10-26 08:32:28 +00:00
|
|
|
cd_read_LDADD = $(LIBCDIO_LIBS) $(LIBPOPT_LIBS) $(LIBICONV)
|
2004-12-18 21:24:25 +00:00
|
|
|
endif
|
2003-09-17 12:13:07 +00:00
|
|
|
|
2004-12-18 21:24:25 +00:00
|
|
|
if BUILD_ISO_INFO
|
2004-01-10 03:03:08 +00:00
|
|
|
iso_info_SOURCES = iso-info.c util.c util.h
|
2004-10-26 08:32:28 +00:00
|
|
|
iso_info_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LIBPOPT_LIBS) $(LIBICONV)
|
2004-12-18 21:24:25 +00:00
|
|
|
endif
|
2004-01-10 03:03:08 +00:00
|
|
|
|
2004-12-18 21:24:25 +00:00
|
|
|
if BUILD_ISO_READ
|
2004-02-25 10:04:06 +00:00
|
|
|
iso_read_SOURCES = iso-read.c util.c util.h
|
2004-10-26 08:32:28 +00:00
|
|
|
iso_read_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS) $(LIBPOPT_LIBS) $(LIBICONV)
|
2004-12-18 21:24:25 +00:00
|
|
|
endif
|
2004-02-25 10:04:06 +00:00
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
if BUILD_CDINFO_LINUX
|
|
|
|
|
cdinfo_linux_SOURCES = cdinfo-linux.c
|
2003-03-30 01:11:56 +00:00
|
|
|
cdinfo_linux_LDADD = $(LIBCDIO_LIBS) $(LIBPOPT_LIBS)
|
2004-04-25 00:46:34 +00:00
|
|
|
bin_PROGRAMS = cd-drive cd-info cd-read cdinfo-linux iso-info iso-read
|
2003-03-24 19:01:09 +00:00
|
|
|
else
|
2004-04-25 00:46:34 +00:00
|
|
|
bin_PROGRAMS = cd-drive cd-info cd-read iso-info iso-read
|
2003-09-22 01:00:10 +00:00
|
|
|
EXTRA_DIST = cdinfo-linux.c $(man_MANS)
|
2003-03-24 19:01:09 +00:00
|
|
|
endif
|
|
|
|
|
|
2004-05-27 02:46:17 +00:00
|
|
|
# Put LIBPOPT_CFLAGS after local include in case LIBPOPT has headers common
|
|
|
|
|
# to those in LIBCDIO_CFLAGS
|
2004-09-11 13:02:36 +00:00
|
|
|
INCLUDES = -I$(top_srcdir) $(LIBCDIO_CFLAGS) $(VCDINFO_CFLAGS) $(CDDB_CFLAGS) $(LIBPOPT_CFLAGS)
|