ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] too long arguments passed from Makefile.nmake

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Sat, 13 Oct 2001 21:42:01 +0900 (JST)
Hi,

I don't know since when but becuase we now have so many dissectors
hence packet-*.c, nmake.exe can't generate register.c, complaining
about too long arguments being passed and can't invoke Python (or a
shell) from nmake (Please refer to the following portion of
Makefile.nmake).

register.c: $(DISSECTOR_SRC)
        @echo Making register.c
        @$(PYTHON) make-reg-dotc.py . $(DISSECTOR_SRC)
#       How are ifdef's done in NMAKE? It would be nice
#       to use python if PYTHON is defined, otherwise try to use shell.
#       @sh make-reg-dotc . $(DISSECTOR_SRC)


One way to solve this problem is to change make-reg-dotc.py (and also
make-reg-dotc shell script) to have them extract the packet*.c file
inside the script. Another way might be to split DISSECTOR_SRC into
two (e.g. DISSECTOR_SRC1 and DISSECTOR_SRC2) and modify
make-reg.dotc[.py] so that it can append the output to register.c each
time it is executed. Well, it seems neither of them is elegant. If
anyone has more elegant idea, I'd love to hear that.

Regards,

=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
 +----+----+     
 |.. .|    |     Motonori Shindo
 |_~__|    |     
 | .. |~~_~|     Sr. Systems Engineer
 | .  |    |     CoSine Communications Inc.
 +----+----+     
 C o S i n e     e-mail:  mshindo@xxxxxxxxxxxxx 
Communications
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=