#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
include ../Makefile.am.inc
noinst_LTLIBRARIES = libwiretap_generated.la
lib_LTLIBRARIES = libwiretap.la
-libwiretap_la_LDFLAGS = -version-info 0:1:0 @LDFLAGS_SHAREDLIB@
+# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
+libwiretap_la_LDFLAGS = -version-info 0:3:0 @LDFLAGS_SHAREDLIB@
+
+AM_NON_GENERATED_CFLAGS =-DWS_BUILD_DLL
if HAVE_WARNINGS_AS_ERRORS
-AM_NON_GENERATED_CFLAGS = -Werror
+AM_NON_GENERATED_CFLAGS += -Werror
endif
-INCLUDES = -I$(srcdir)/..
+AM_CPPFLAGS = -I$(srcdir)/..
CLEANFILES = \
libwiretap.a \
$(GENERATED_C_FILES)
EXTRA_DIST = \
+ README.airmagnet \
README.developer \
Makefile.common \
Makefile.nmake \
- wtap.def \
+ libwiretap.vcproj \
$(GENERATOR_FILES) \
$(GENERATED_FILES)
-libwiretap_la_LIBADD = libwiretap_generated.la $(GLIB_LIBS) ${top_builddir}/wsutil/libwsutil.la
+libwiretap_la_LIBADD = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la $(GLIB_LIBS)
+libwiretap_la_DEPENDENCIES = libwiretap_generated.la ${top_builddir}/wsutil/libwsutil.la
RUNLEX = $(top_srcdir)/tools/runlex.sh
+k12text_lex.h : k12text.c
+
ascend_scanner_lex.h : ascend_scanner.c
-k12text_lex.h : k12text.c
+ascend_scanner.c: ascend.h
+
+ascend.h: ascend.c
-ascend.c ascend.h: ascend.y
+ascend.c: ascend.y
@if [ -z "$(YACC)" ]; then \
echo "Neither bison nor byacc has been found"; \
exit 1; \
fi
$(YACC) -d -p ascend -o ascend.c $(srcdir)/ascend.y
+# ABI compliance checker can be obtained from
+# http://ispras.linux-foundation.org/index.php/ABI_compliance_checker
+# Checked using version 1.21.12
+dumpabi-libwiretap: all abi-descriptor.xml
+ rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz
+ mkdir abi-check-headers
+ cp *.h ../ws_symbol_export.h abi-check-headers/
+ abi-compliance-checker -l libwiretap -v1 `readlink .libs/libwiretap.so | sed 's/.*\.so\.//'` \
+ -relpath $(abs_srcdir) -dump-abi abi-descriptor.xml || \
+ cat logs/libwiretap/[0-9]*/log.txt
+ cp -f abi_dumps/libwiretap/libwiretap_* .libs/
+ cd .libs && ln -sf libwiretap_*.abi.tar.gz libwiretap.abi.tar.gz
+
checkapi:
- $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
+## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
+## $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
+ $(PERL) ../tools/checkAPIs.pl -g termoutput -build $(NONGENERATED_C_FILES) $(GENERATOR_FILES)