forked from metabrainz/libdiscid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
107 lines (84 loc) · 2.98 KB
/
Makefile.am
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
#
# 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
if RUN_TESTS
TESTS = test_discid
endif
check_PROGRAMS = test_discid
noinst_PROGRAMS = discid discisrc
test_discid_SOURCES = test/test_discid.c
test_discid_LDADD = $(top_builddir)/libdiscid.la
discid_SOURCES = examples/discid.c
discid_LDADD = $(top_builddir)/libdiscid.la
discisrc_SOURCES = examples/discisrc.c
discisrc_LDADD = $(top_builddir)/libdiscid.la
lib_LTLIBRARIES = libdiscid.la
libdiscid_la_SOURCES = src/base64.c src/sha1.c src/disc.c
libdiscid_la_SOURCES += src/base64.h src/sha1.h src/unix.h src/ntddcdrm.h
# 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_BEOS
#libdiscid_la_LIBADD += -lbe -lroot
#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_FREEBSD
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_freebsd.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_NETBSD
libdiscid_la_SOURCES += src/toc.c src/unix.c src/disc_netbsd.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