Make use of JAYLINK_LOG_LEVEL_DEBUG_IO
[libjaylink.git] / libjaylink / Makefile.am
blob62c54894d6d12278081951bcd4348a42147836fa
1 ##
2 ## This file is part of the libjaylink project.
3 ##
4 ## Copyright (C) 2014-2015 Marc Schink <jaylink-dev@marcschink.de>
5 ##
6 ## This program is free software: you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, either version 2 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 if SUBPROJECT_BUILD
21 noinst_LTLIBRARIES = libjaylink.la
22 else
23 lib_LTLIBRARIES = libjaylink.la
25 library_includedir = $(includedir)/libjaylink
26 library_include_HEADERS = libjaylink.h
27 nodist_library_include_HEADERS = version.h
28 endif
30 libjaylink_la_SOURCES = \
31         buffer.c \
32         core.c \
33         device.c \
34         discovery.c \
35         discovery_tcp.c \
36         emucom.c \
37         error.c \
38         fileio.c \
39         jtag.c \
40         list.c \
41         log.c \
42         socket.c \
43         strutil.c \
44         swd.c \
45         swo.c \
46         target.c \
47         transport.c \
48         transport_tcp.c \
49         util.c \
50         version.c
52 libjaylink_la_CFLAGS = $(JAYLINK_CFLAGS)
53 libjaylink_la_LDFLAGS = $(JAYLINK_LDFLAGS) -no-undefined
54 libjaylink_la_LIBADD = $(JAYLINK_LIBS)
56 if HAVE_LIBUSB
57 libjaylink_la_SOURCES += discovery_usb.c transport_usb.c
58 libjaylink_la_CFLAGS += $(libusb_CFLAGS)
59 libjaylink_la_LIBADD += $(libusb_LIBS)
60 endif
62 noinst_HEADERS = libjaylink-internal.h