1# Makefile.am - libtun6/ directory Makefile for miredo
2
3# ***********************************************************************
4# *  Copyright © 2004-2006 Rémi Denis-Courmont.                         *
5# *  This program is free software; you can redistribute and/or modify  *
6# *  it under the terms of the GNU General Public License as published  *
7# *  by the Free Software Foundation; version 2 of the license, or (at  *
8# *  your option) any later version.                                    *
9# *                                                                     *
10# *  This program is distributed in the hope that it will be useful,    *
11# *  but WITHOUT ANY WARRANTY; without even the implied warranty of     *
12# *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               *
13# *  See the GNU General Public License for more details.               *
14# *                                                                     *
15# *  You should have received a copy of the GNU General Public License  *
16# *  along with this program; if not, you can get it from:              *
17# *  http://www.gnu.org/copyleft/gpl.html                               *
18# ***********************************************************************
19
20localedir = @datadir@/locale
21
22AM_CPPFLAGS = -I@top_srcdir@/include -I@top_srcdir@ \
23	-D_REENTRANT -DLOCALEDIR=\"$(localedir)\"
24LIBINTL = @LIBINTL@
25
26lib_LTLIBRARIES = libtun6.la
27check_PROGRAMS = libtun6-diagnose
28TESTS = $(check_PROGRAMS)
29
30include_libtun6dir = $(includedir)/libtun6
31include_libtun6_HEADERS = tun6.h
32
33# libtun6.a
34libtun6_la_SOURCES = tun6.c diag.c
35libtun6_la_LIBADD = @LTLIBINTL@ ../compat/libcompat.la
36libtun6_la_LDFLAGS = -no-undefined -export-symbols-regex tun6_.* \
37	-version-info 1:1:1
38
39# libtun6 versions:
40# 0) First stable shared release (0.8.2)
41# 1) tun_wait_recv() (0.9.x)
42
43# libtun6-diagnose
44libtun6_diagnose_SOURCES = test_diag.c
45libtun6_diagnose_LDADD = libtun6.la
46