Refactor plugin registration and loading
[metze/wireshark/wip.git] / plugins / wimaxasncp / Makefile.am
1 # Makefile.am
2 #
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
6 #
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version 2
10 # of the License, or (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
21 include $(top_srcdir)/Makefile.am.inc
22 include ../Makefile.am.inc
23
24 # the name of the plugin
25 PLUGIN_NAME = wimaxasncp
26
27 BUILT_SOURCES = \
28         plugin.c \
29         $(LEMON_GENERATED_HEADER_FILES) \
30         $(FLEX_GENERATED_HEADER_FILES)
31
32 #
33 # Files generated by Flex.
34 #
35 FLEX_GENERATED_C_FILES = \
36         wimaxasncp_dict.c
37
38 FLEX_GENERATED_HEADER_FILES = \
39         wimaxasncp_dict_lex.h
40
41 # Non-generated sources to be scanned for registration routines
42 NONGENERATED_REGISTER_C_FILES = \
43         packet-wimaxasncp.c
44
45 # Non-generated sources
46 NONGENERATED_C_FILES = \
47         $(NONGENERATED_REGISTER_C_FILES)
48
49 # Headers.
50 CLEAN_HEADER_FILES = \
51         wimaxasncp_dict.h
52
53 HEADER_FILES = \
54         $(FLEX_GENERATED_HEADER_FILES) \
55         $(CLEAN_HEADER_FILES)
56
57 #
58 # XXX - how to make this apply only to clean files?
59 #
60 #if HAVE_WARNINGS_AS_ERRORS
61 #AM_CFLAGS += -Werror
62 #endif
63
64 epan_plugin_LTLIBRARIES = wimaxasncp.la
65
66 wimaxasncp_la_SOURCES = \
67         moduleinfo.h \
68         $(SRC_FILES)    \
69         $(HEADER_FILES)
70
71 nodist_wimaxasncp_la_SOURCES = \
72         plugin.c
73
74 wimaxasncp_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_CPPFLAGS)
75
76 wimaxasncp_la_CFLAGS = $(GENERATED_CFLAGS) $(PLUGIN_CFLAGS)
77
78 wimaxasncp_la_LDFLAGS = $(PLUGIN_LDFLAGS)
79
80 DISTCLEANFILES = \
81         plugin.c
82
83 MAINTAINERCLEANFILES = \
84         $(GENERATED_SRC_FILES) \
85         $(GENERATED_HEADER_FILES)
86
87 EXTRA_DIST = \
88         plugin.rc.in            \
89         wimaxasncp_dict.l       \
90         CMakeLists.txt
91
92 wimaxasncp_dict_lex.h:  wimaxasncp_dict.c
93
94 wimaxasncp_dict.c:      wimaxasncp_dict.h
95
96 #
97 # Install the wimaxasncp DTD and XML files in the "wimaxasncp"
98 # subdirectory of $(pkgdatadir)
99 #
100 wimaxasncpdir = $(pkgdatadir)/wimaxasncp