aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/Makefile.inc.nmake
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2007-10-05 07:46:06 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2007-10-05 07:46:06 +0000
commit876fd4db5d4eb0ba065cc925a30dc8c976a92d34 (patch)
treeb07eca3dcb3262721fd1a3776bfbf2e5c686bed0 /asn1/Makefile.inc.nmake
parente461d0d0e8dbad79f7f01249512982e951ad5e97 (diff)
allow to omit -p <proto> option
svn path=/trunk/; revision=23070
Diffstat (limited to 'asn1/Makefile.inc.nmake')
-rw-r--r--asn1/Makefile.inc.nmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/asn1/Makefile.inc.nmake b/asn1/Makefile.inc.nmake
index 95c3392de0..8b723746cf 100644
--- a/asn1/Makefile.inc.nmake
+++ b/asn1/Makefile.inc.nmake
@@ -30,11 +30,17 @@ all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
+!IFDEF NO_PROTO_OPT
+PROTO_OPT =
+!ELSE
+PROTO_OPT = -p $(PROTOCOL_NAME)
+!ENDIF
+
$(DISSECTOR_FILES): ../../tools/asn2wrs.py $(SRC_FILES) $(EXTRA_CNF)
!IFDEF PYTHON
$(PYTHON) "../../tools/asn2wrs.py" \
$(A2W_FLAGS) \
- -p $(PROTOCOL_NAME) \
+ $(PROTO_OPT) \
-c $(PROTOCOL_NAME).cnf \
-s packet-$(PROTOCOL_NAME)-template \
$(ASN_FILE_LIST) $(EXT_ASN_FILE_LIST)