From Stig Bjorlykke:
[obnox/wireshark/wip.git] / asn1 / x420 / Makefile.nmake
index 68abe67832f0811de7d7c2c32eaa89d8767bc0dd..6c9dd271ebb67008dd6351b10f97f8aeea6dc35e 100644 (file)
@@ -9,21 +9,27 @@ UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
 PROTOCOL_NAME=x420
 DISSECTOR_FILES=packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).h
 
+ASN_FILE_LIST=x420.asn ftbp.asn
+
 all: generate_dissector
 
 generate_dissector: $(DISSECTOR_FILES)
 
-$(DISSECTOR_FILES): ../../tools/asn2eth.py $(PROTOCOL_NAME).asn packet-$(PROTOCOL_NAME)-template.c packet-$(PROTOCOL_NAME)-template.h $(PROTOCOL_NAME).cnf
+$(DISSECTOR_FILES): ../../tools/asn2wrs.py $(ASN_FILE_LIST) packet-$(PROTOCOL_NAME)-template.c packet-$(PROTOCOL_NAME)-template.h $(PROTOCOL_NAME).cnf
 !IFDEF PYTHON
-       $(PYTHON) ../../tools/asn2eth.py -X -b -e -p $(PROTOCOL_NAME) -c $(PROTOCOL_NAME).cnf -s packet-$(PROTOCOL_NAME)-template $(PROTOCOL_NAME).asn
+       $(PYTHON) "../../tools/asn2wrs.py" -b -e -p $(PROTOCOL_NAME) -c $(PROTOCOL_NAME).cnf -s packet-$(PROTOCOL_NAME)-template $(ASN_FILE_LIST)
 !ELSE
-       @echo Error: You need Python to use asn2eth.py
+       @echo Error: You need Python to use asn2wrs.py
        @exit 1
 !ENDIF
 
 clean:
        rm -f parsetab.py parsetab.pyc $(DISSECTOR_FILES)
 
+distclean: clean
+
+maintainer-clean: distclean
+
 # Fix EOL in generated dissectors. Cygwin's python generates files with 
 # mixed EOL styles, which can't be commited to the SVN repository.
 # Stuff included from template and "cnf" files has "\r\n" on windows, while