1 # To be included into the asn1 Makefiles for Windows builds
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.
22 DISSECTOR=../../epan/dissectors/packet-$(PROTOCOL_NAME).c
23 # This header file need not exist/get generated. It is only used when cleaning.
24 DISSECTOR_HEADER=../../epan/dissectors/packet-$(PROTOCOL_NAME).h
26 all: generate_export $(DISSECTOR)
28 generate_export: $(EXPORT_FILES)
31 PROTO_OPT = -p $(PROTOCOL_NAME)
34 $(DISSECTOR): ../../tools/asn2wrs.py $(SRC_FILES) $(EXTRA_CNF)
35 $(PYTHON) "../../tools/asn2wrs.py" \
38 -c ./$(PROTOCOL_NAME).cnf \
39 -s ./packet-$(PROTOCOL_NAME)-template \
41 -O ../../epan/dissectors \
42 $(EXT_ASN_FILE_LIST) $(ASN_FILE_LIST) $(EXT_ASN_FILE_LIST_LATE)
45 $(EXPORT_FILES): ../../tools/asn2wrs.py $(SRC_FILES) $(EXPORT_DEPENDS)
46 $(PYTHON) "../../tools/asn2wrs.py" \
49 -c ./$(PROTOCOL_NAME).cnf \
51 $(EXT_ASN_FILE_LIST) $(ASN_FILE_LIST) $(EXT_ASN_FILE_LIST_LATE)
54 # Don't clean these up until/unless we start building them...
61 packet-*-{dis-tab,ettarr,ett,fn,hfarr,hf,table*,val}.[hc]
66 maintainer-clean: distclean
68 # Fix EOL in generated dissectors. Cygwin's python generates files with
69 # mixed EOL styles, which can't be commited to the SVN repository.
70 # Stuff included from template and "cnf" files has "\r\n" on windows, while
71 # the generated stuff has "\n".
74 u2d $(DISSECTOR) $(DISSECTOR_HEADER)