DCERPC: factor out proto_tree_add_dcerpc_drep()
[wireshark-wip.git] / wsutil / Makefile.am
blob8077de8dc0ef66b5c7adb9ef9eb4bd689bcaf199
1 # Makefile.am
3 # $Id$
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 ACLOCAL_AMFLAGS = `../aclocal-flags`
25 # Optional objects that I know how to build. These will be
26 # linked into libwsutil.
27 wsutil_optional_objects =
29 if NEED_GETOPT_LO
30 wsutil_optional_objects += @GETOPT_LO@
31 endif
33 if NEED_INET_ATON_LO
34 wsutil_optional_objects += @INET_ATON_LO@
35 endif
37 if NEED_INET_NTOP_LO
38 wsutil_optional_objects += @INET_NTOP_LO@
39 endif
41 if NEED_INET_PTON_LO
42 wsutil_optional_objects += @INET_PTON_LO@
43 endif
45 if NEED_STRNCASECMP_LO
46 wsutil_optional_objects += @STRNCASECMP_LO@
47 endif
49 if NEED_STRPTIME_LO
50 wsutil_optional_objects += @STRPTIME_LO@
51 endif
53 include ../Makefile.am.inc
55 include Makefile.common
57 AM_CFLAGS =-DWS_BUILD_DLL
59 if HAVE_WARNINGS_AS_ERRORS
60 AM_CFLAGS += -Werror
61 endif
63 lib_LTLIBRARIES = libwsutil.la
64 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
65 libwsutil_la_LDFLAGS = -version-info 0:0:0 @LDFLAGS_SHAREDLIB@
67 AM_CPPFLAGS = -I$(srcdir)/.. \
68         $(LIBGCRYPT_CFLAGS)
70 libwsutil_la_SOURCES =          \
71         $(LIBWSUTIL_SRC)        \
72         $(LIBWSUTIL_INCLUDES)
74 EXTRA_libwsutil_la_SOURCES=     \
75         inet_aton.c             \
76         inet_aton.h             \
77         inet_ntop.c             \
78         inet_pton.c             \
79         inet_v6defs.h           \
80         strncasecmp.c           \
81         strptime.c              \
82         strptime.h              \
83         wsgetopt.c              \
84         wsgetopt.h              \
85         wsgetopt_int.h
87 libwsutil_la_DEPENDENCIES=      \
88         $(wsutil_optional_objects)
90 libwsutil_la_LIBADD =           \
91         @GLIB_LIBS@             \
92         @LIBGCRYPT_LIBS@        \
93         $(wsutil_optional_objects)
95 EXTRA_DIST =            \
96         CMakeLists.txt  \
97         Makefile.common \
98         Makefile.nmake  \
99         file_util.c     \
100         file_util.h     \
101         unicode-utils.c \
102         unicode-utils.h \
103         wsgcrypt.h
105 CLEANFILES = \
106         libwsutil.a     \
107         libwsutil.la    \
108         *~
110 MAINTAINERCLEANFILES = \
111         Makefile.in
113 # ABI compliance checker can be obtained from
114 # http://ispras.linux-foundation.org/index.php/ABI_compliance_checker
115 # Checked using version 1.21.12
116 dumpabi-libwsutil: all abi-descriptor.xml
117         rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz
118         mkdir abi-check-headers
119         cp ../config.h ../ws_symbol_export.h *.h abi-check-headers/
120         abi-compliance-checker -l libwsutil -v1 `readlink .libs/libwsutil.so | sed 's/.*\.so\.//'` \
121                 -relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
122                 cat logs/libwsutil/[0-9]*/log.txt
123         cp -f abi_dumps/libwsutil/libwsutil_* .libs/
124         cd .libs && ln -sf libwsutil_*.abi.tar.gz libwsutil.abi.tar.gz
126 checkapi:
127         $(PERL) ../tools/checkAPIs.pl -g termoutput -build \
128         $(LIBWSUTIL_SRC)
130 #       $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput \
131 #       file_util.c unicode-utils.c