Run checkapi on the dissector header files
[metze/wireshark/wip.git] / plugins / asn1 / Makefile.am
index 3a54237d6f4e108f5e14069367c20c13b2b84697..8634a9ee9c5cf77231954aa1a9859f565962be2c 100644 (file)
@@ -26,13 +26,16 @@ INCLUDES = -I$(top_srcdir) -I$(includedir)
 
 include Makefile.common
 
-plugindir = @plugindir@
+if HAVE_WARNINGS_AS_ERRORS
+AM_CFLAGS = -Werror
+endif
 
 plugin_LTLIBRARIES = asn1.la
 asn1_la_SOURCES = \
        plugin.c \
        moduleinfo.h \
        $(DISSECTOR_SRC) \
+       $(DISSECTOR_SUPPORT_SRC) \
        $(DISSECTOR_INCLUDES)
 asn1_la_LDFLAGS = -module -avoid-version
 asn1_la_LIBADD = @PLUGIN_LIBS@
@@ -77,7 +80,7 @@ LIBS =
 #
 plugin.c: $(DISSECTOR_SRC) $(top_srcdir)/tools/make-dissector-reg \
     $(top_srcdir)/tools/make-dissector-reg.py
-       @if test -n $(PYTHON); then \
+       @if test -n "$(PYTHON)"; then \
                echo Making plugin.c with python ; \
                $(PYTHON) $(top_srcdir)/tools/make-dissector-reg.py $(srcdir) \
                    plugin $(DISSECTOR_SRC) ; \
@@ -110,8 +113,14 @@ CLEANFILES = \
        *~
 
 MAINTAINERCLEANFILES = \
-       Makefile.in
+       Makefile.in     \
+       plugin.c
 
 EXTRA_DIST = \
        Makefile.common         \
-       Makefile.nmake
+       Makefile.nmake          \
+       moduleinfo.nmake        \
+       plugin.rc.in
+
+checkapi:
+       $(PERL) $(top_srcdir)/tools/checkAPIs.pl -g abort -g termoutput $(DISSECTOR_SRC) $(DISSECTOR_INCLUDES)