File: Makefile.am

package info (click to toggle)
libdiscid 0.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,816 kB
  • sloc: sh: 4,660; ansic: 2,553; makefile: 85
file content (128 lines) | stat: -rw-r--r-- 3,875 bytes parent folder | download | duplicates (2)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#
#  MusicBrainz -- The Internet music metadatabase
#
#  Copyright (C) 2013 Johannes Dewender
#  Copyright (C) 2006 Matthias Friedrich
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Lesser General Public
#  License as published by the Free Software Foundation; either
#  version 2.1 of the License, or (at your option) any later version.
#
#  This library 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
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this library; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
#

EXTRA_DIST = libdiscid.pc.in Doxyfile.in CMakeLists.txt config-cmake.h.in

# not deleted automatically, in contrast to the .lo
CLEANFILES = versioninfo.o

AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include


pcdir = $(libdir)/pkgconfig
pc_DATA = libdiscid.pc

discid_incdir = $(includedir)/discid
discid_inc_HEADERS = include/discid/discid.h
noinst_HEADERS = include/discid/discid_private.h src/base64.h src/sha1.h
noinst_HEADERS += test/test.h src/unix.h src/ntddcdrm.h


if RUN_TESTS
TESTS = test_core test_put test_read test_read_full
endif

# put tests that don't work here (so it shows up as expected failure)
XFAIL =

check_PROGRAMS = test_core test_put test_read test_read_full
noinst_PROGRAMS = discid discisrc

# Tests
test_core_SOURCES = test/test.c test/test_core.c
test_core_LDADD = $(top_builddir)/libdiscid.la
test_put_SOURCES = test/test.c test/test_put.c
test_put_LDADD = $(top_builddir)/libdiscid.la
test_read_SOURCES = test/test.c test/test_read.c
test_read_LDADD = $(top_builddir)/libdiscid.la
test_read_full_SOURCES = test/test.c test/test_read_full.c
test_read_full_LDADD = $(top_builddir)/libdiscid.la

# Examples
discid_SOURCES = examples/discid.c
discid_LDADD = $(top_builddir)/libdiscid.la
discisrc_SOURCES = examples/discisrc.c
discisrc_LDADD = $(top_builddir)/libdiscid.la
if HAVE_MUSICBRAINZ5
noinst_PROGRAMS += disc_metadata
disc_metadata_SOURCES = examples/disc_metadata.c
disc_metadata_LDADD = $(top_builddir)/libdiscid.la -lmusicbrainz5
endif


lib_LTLIBRARIES = libdiscid.la

libdiscid_la_SOURCES = src/base64.c src/sha1.c src/disc.c

# use a (well defined) version number, rather than version-info calculations
libdiscid_la_LDFLAGS = -version-number @libdiscid_VERSION_LT@ -no-undefined
libdiscid_la_LIBADD =

if OS_HAIKU
libdiscid_la_LIBADD += -lbe -lroot
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_haiku.c
endif
if OS_DARWIN
libdiscid_la_LDFLAGS += -framework CoreFoundation -framework IOKit
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_darwin.c
endif
if OS_NETBSD
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_bsd.c
libdiscid_la_LIBADD += -lutil
endif
if OS_FREEBSD
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_bsd.c
endif
if OS_GENERIC
libdiscid_la_SOURCES += src/disc_generic.c
endif
if OS_LINUX
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_linux.c
endif
#if OS_QNX
#libdiscid_la_LIBADD += -lsocket
#endif
if OS_SOLARIS
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_solaris.c
endif
if OS_WIN32
libdiscid_la_SOURCES += src/toc.c src/disc_win32.c versioninfo.rc
endif


# for Windows Resource Files
RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE)

.rc.o:
	$(AM_V_GEN)$(RCCOMPILE) -i "$<" -o "$@"

.rc.lo:
	$(AM_V_GEN)$(LTRCCOMPILE) -i "$<" -o "$@"


docs:
	doxygen

git-clean: maintainer-clean
	rm -rf configure config.h.in Makefile.in
	rm -rf aclocal.m4 build-aux/