Refactor plugin registration and loading
[metze/wireshark/wip.git] / plugins / opcua / Makefile.am
1 # Makefile.am
2 #
3 # Adapted by Gerhard Gappmeier for OpcUa
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 $(top_srcdir)/Makefile.am.inc
23 include ../Makefile.am.inc
24
25 # the name of the plugin
26 PLUGIN_NAME = opcua
27
28 BUILT_SOURCES = \
29         plugin.c
30
31 # Non-generated sources to be scanned for registration routines
32 NONGENERATED_REGISTER_C_FILES = \
33         opcua.c
34
35 # Non-generated sources
36 NONGENERATED_C_FILES = \
37         $(NONGENERATED_REGISTER_C_FILES) \
38         opcua_transport_layer.c \
39         opcua_security_layer.c \
40         opcua_application_layer.c \
41         opcua_serviceparser.c \
42         opcua_complextypeparser.c \
43         opcua_enumparser.c \
44         opcua_simpletypes.c \
45         opcua_servicetable.c \
46         opcua_extensionobjecttable.c \
47         opcua_hfindeces.c \
48         opcua_statuscode.c
49
50 # Headers.
51 CLEAN_HEADER_FILES = \
52         opcua_complextypeparser.h \
53         opcua_enumparser.h \
54         opcua_hfindeces.h \
55         opcua_statuscode.h \
56         opcua_identifiers.h \
57         opcua_serviceparser.h \
58         opcua_simpletypes.h \
59         opcua_servicetable.h \
60         opcua_application_layer.h \
61         opcua_security_layer.h \
62         opcua_transport_layer.h \
63         opcua_extensionobjectids.h \
64         opcua_serviceids.h
65
66 HEADER_FILES = \
67         $(CLEAN_HEADER_FILES)
68
69 epan_plugin_LTLIBRARIES = opcua.la
70
71 opcua_la_SOURCES = \
72         moduleinfo.h \
73         $(SRC_FILES)    \
74         $(HEADER_FILES)
75
76 nodist_opcua_la_SOURCES = \
77         plugin.c
78
79 opcua_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_CPPFLAGS)
80
81 opcua_la_CFLAGS = $(AM_CFLAGS) $(PLUGIN_CFLAGS)
82
83 opcua_la_LDFLAGS = $(PLUGIN_LDFLAGS)
84
85 DISTCLEANFILES = \
86         plugin.c
87
88 EXTRA_DIST = \
89         plugin.rc.in            \
90         README                  \
91         CMakeLists.txt