1 # To be included into the asn1 Makefiles
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
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.
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.
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.
21 DISSECTOR = $(top_srcdir)/epan/dissectors/packet-$(PROTOCOL_NAME).c
22 # This header file need not exist/get generated. It is only used when cleaning.
23 DISSECTOR_HEADER=$(top_srcdir)/epan/dissectors/packet-$(PROTOCOL_NAME).h
25 all: generate_export $(DISSECTOR)
27 generate_export: $(EXPORT_FILES)
29 PROTO_OPT ?= -p $(PROTOCOL_NAME)
31 $(DISSECTOR): $(top_srcdir)/tools/asn2wrs.py $(SRC_FILES) $(EXTRA_CNF)
32 $(PYTHON) $(top_srcdir)/tools/asn2wrs.py \
35 -c $(srcdir)/$(PROTOCOL_NAME).cnf \
36 -s $(srcdir)/packet-$(PROTOCOL_NAME)-template \
38 -O $(top_srcdir)/epan/dissectors \
39 $(EXT_ASN_FILE_LIST) $(ASN_FILE_LIST) $(EXT_ASN_FILE_LIST_LATE)
41 $(EXPORT_FILES): $(top_srcdir)/tools/asn2wrs.py $(SRC_FILES) $(EXPORT_DEPENDS)
42 $(PYTHON) $(top_srcdir)/tools/asn2wrs.py \
45 -c $(srcdir)/$(PROTOCOL_NAME).cnf \
47 $(EXT_ASN_FILE_LIST) $(ASN_FILE_LIST) $(EXT_ASN_FILE_LIST_LATE)
49 # Don't clean these up until/unless we start building them...
56 packet-*-{dis-tab,ettarr,ett,exp,fn,hfarr,hf,table*,val}.[hc]
58 MAINTAINERCLEANFILES = \