]> sigrok.org Git - libserialport.git/blame - Makefile.am
windows: -no-undefined is required to make a DLL.
[libserialport.git] / Makefile.am
CommitLineData
0662f2bb
ML
1##
2## This file is part of the libserialport project.
3##
4## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
5## Copyright (C) 2013 Martin Ling <martin-libserialport@earth.li>
6##
7## This program is free software: you can redistribute it and/or modify
8## it under the terms of the GNU Lesser General Public License as
9## published by the Free Software Foundation, either version 3 of the
10## License, or (at your option) any later version.
11##
12## This program is distributed in the hope that it will be useful,
13## but WITHOUT ANY WARRANTY; without even the implied warranty of
14## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15## GNU General Public License for more details.
16##
17## You should have received a copy of the GNU Lesser General Public License
18## along with this program. If not, see <http://www.gnu.org/licenses/>.
19##
20
21ACLOCAL_AMFLAGS = -I autostuff
22
23AM_CPPFLAGS = -I$(top_srcdir)
24
25lib_LTLIBRARIES = libserialport.la
26
e33dcf90 27libserialport_la_SOURCES = serialport.c libserialport_internal.h
27e231ff 28if LINUX
e33dcf90
ML
29libserialport_la_SOURCES += linux.c linux_termios.c linux_termios.h
30endif
31if WIN32
32libserialport_la_SOURCES += windows.c
33endif
34if MACOSX
35libserialport_la_SOURCES += macosx.c
27e231ff 36endif
0662f2bb
ML
37
38libserialport_la_LIBADD = $(LIBOBJS)
39
da873019
MT
40libserialport_la_LDFLAGS = $(SP_LIB_LDFLAGS)
41
6692d8c1
MT
42if WIN32
43libserialport_la_LIBADD += -lsetupapi
da873019 44libserialport_la_LDFLAGS += -no-undefined
6692d8c1
MT
45endif
46
0662f2bb 47library_includedir = $(includedir)
f6a1fb65 48library_include_HEADERS = libserialport.h
0662f2bb
ML
49
50pkgconfigdir = $(libdir)/pkgconfig
51pkgconfig_DATA = libserialport.pc
52
8814faa3
UH
53EXTRA_DIST = Doxyfile
54
0662f2bb
ML
55MAINTAINERCLEANFILES = ChangeLog
56
57.PHONY: ChangeLog
58ChangeLog:
59 git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
60
61dist-hook: ChangeLog
cd5f5281 62
104f093d
UH
63doc: $(library_include_HEADERS) $(top_srcdir)/Doxyfile
64 doxygen $(top_srcdir)/Doxyfile