Remove Nmake build system
[metze/wireshark/wip.git] / writecap / Makefile.am
1 # Makefile.am
2 # Automake file for the "write capture file" routines for Wireshark
3 #
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22 include Makefile.common
23 include $(top_srcdir)/Makefile.am.inc
24
25 AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(GLIB_CFLAGS)
26
27 noinst_LIBRARIES = libwritecap.a
28
29 CLEANFILES = \
30         doxygen-writecap.tag    \
31         libwritecap.a           \
32         *~
33
34 MAINTAINERCLEANFILES = \
35         $(GENERATED_FILES)      \
36         Makefile.in
37
38 EXTRA_DIST = \
39         .editorconfig           \
40         $(GENERATOR_FILES)      \
41         CMakeLists.txt          \
42         doxygen.cfg.in          \
43         Makefile.common
44
45 # All sources that should be put in the source distribution tarball
46 libwritecap_a_SOURCES = \
47         $(WRITECAP_SRC) \
48         $(noinst_HEADERS)
49
50 #
51 # This is used to build dumpcap, and dumpcap is, if possible, built as
52 # a position-independent executable (for address space layout randomization,
53 # as it might be running with extra privileges), so this library needs
54 # to be built that way as well.
55 #
56 libwritecap_a_CFLAGS = $(AM_CFLAGS) $(PIE_CFLAGS)
57
58 libwritecap_a_DEPENDENCIES =
59
60 doxygen:
61 if HAVE_DOXYGEN
62         $(DOXYGEN) doxygen.cfg
63 endif           # HAVE_DOXYGEN
64
65 wsar_html: doxygen.cfg ../doxygen_global.cfg
66 if HAVE_DOXYGEN
67         (umask 022 ; $(DOXYGEN) doxygen.cfg)
68 endif
69
70 checkapi: checkapi-base checkapi-todo
71
72 checkapi-base:
73         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g deprecated-gtk -build \
74         -sourcedir=$(srcdir) \
75         $(WRITECAP_SRC)
76
77 checkapi-todo:
78         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
79         -sourcedir=$(srcdir) \
80         $(WRITECAP_SRC)