From Laurent Rabret: replace "lib" with "link /lib"; "lib" is just a
[obnox/wireshark/wip.git] / Makefile.nmake
1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4 # $Id: Makefile.nmake,v 1.425 2004/06/26 02:16:15 guy Exp $
5
6 include config.nmake
7 include <win32.mak>
8
9 ############### no need to modify below this line #########
10
11 CC = cl
12 LINK= link
13
14 LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
15
16 CFLAGS=-DHAVE_CONFIG_H $(LOCAL_CFLAGS) $(GLIB_CFLAGS) /I. /Iwiretap \
17         $(ZLIB_CFLAGS) /I$(PCAP_DIR)\include \
18         /I$(NET_SNMP_DIR)\include /I$(NET_SNMP_DIR)\win32 \
19         $(ADNS_CFLAGS) $(PCRE_CFLAGS) -D_U_=""
20
21 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
22
23 .c.obj::
24         $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
25
26 PLATFORM_SRC = capture-wpcap.c
27
28 include Makefile.common
29
30 include epan\Makefile.common
31
32 BUILT_SOURCES = $(BUILT_SOURCES) \
33         cvsversion.h
34
35 DISSECTOR_SRC = $(DISSECTOR_SRC:../=)
36 DISSECTOR_OBJECTS = $(DISSECTOR_SRC:.c=.obj)
37
38 DISSECTOR_SUPPORT_SRC = $(DISSECTOR_SUPPORT_SRC:../=)
39 DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
40
41 # remove register.obj from "DISSECTOR_SUPPORT_OBJECTS". 
42 # creation and compilation of register.c has been moved to epan.  
43 DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_OBJECTS:register.obj=)
44
45 ethereal_OBJECTS = $(ethereal_SOURCES:.c=.obj)
46 tethereal_OBJECTS = $(tethereal_SOURCES:.c=.obj)
47 dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
48
49 randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
50
51 EXTRA_OBJECTS = \
52 #       snprintf.obj    \
53 #       strerror.obj    \
54         mkstemp.obj     \
55         strptime.obj
56
57 ethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
58         wsock32.lib user32.lib shell32.lib \
59         $(NET_SNMP_DIR)\win32\lib\netsnmp.lib \
60 !IFDEF ENABLE_LIBETHEREAL
61         epan\libethereal.lib \
62 !ELSE
63         dissectors.lib \
64         epan\ethereal.lib \
65         epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
66         $(ADNS_LIBS) \
67         $(PCRE_LIBS) \
68         $(ZLIB_LIBS)
69 !ENDIF
70 #       $(PCAP_DIR)\lib\wpcap.lib
71
72 tethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
73         wsock32.lib user32.lib \
74         $(GLIB_LIBS) \
75         $(NET_SNMP_DIR)\win32\lib\netsnmp.lib \
76 !IFDEF ENABLE_LIBETHEREAL
77         epan\libethereal.lib \
78 !ELSE
79         dissectors.lib \
80         epan\ethereal.lib \
81         epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
82         $(ADNS_LIBS) \
83         $(PCRE_LIBS) \
84         $(ZLIB_LIBS)
85 !ENDIF
86
87 editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
88         wsock32.lib user32.lib \
89         $(GLIB_LIBS)
90
91 mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
92         wsock32.lib user32.lib \
93         $(GLIB_LIBS)
94
95 dftest_LIBS=  wiretap\wiretap-$(WTAP_VERSION).lib \
96         wsock32.lib user32.lib \
97         $(GLIB_LIBS) \
98         $(NET_SNMP_DIR)\win32\lib\netsnmp.lib \
99 !IFDEF ENABLE_LIBETHEREAL
100         epan\libethereal.lib \
101 !ELSE
102         dissectors.lib \
103         epan\ethereal.lib \
104         epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
105         $(ADNS_LIBS) \
106         $(PCRE_LIBS) \
107         $(ZLIB_LIBS)    
108 !ENDIF
109
110 randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
111         user32.lib \
112         $(GLIB_LIBS) \
113         $(NET_SNMP_DIR)\win32\lib\netsnmp.lib
114
115 EXECUTABLES=ethereal.exe ethereal-gtk2.exe tethereal.exe editcap.exe mergecap.exe text2pcap.exe
116
117 RESOURCES=image\ethereal.res image\tethereal.res image\editcap.res image\mergecap.res image\text2pcap.res
118
119 all: config.h tools wiretap epan image $(EXECUTABLES) $(RESOURCES) doc
120
121 packaging: all
122         cd packaging
123         cd nsis
124         nmake -f makefile.nmake
125         cd ..
126         cd ..
127
128 separate_packaging: all
129         cd packaging
130         cd nsis
131 !IFDEF GTK1_DIR
132         nmake -f makefile.nmake GTK1_ONLY="USE"
133 !ENDIF
134 !IFDEF GTK2_DIR
135         nmake -f makefile.nmake GTK2_ONLY="USE"
136 !ENDIF
137         cd ..
138         cd ..
139
140 $(RESOURCES): image
141
142 wiretap\wiretap-$(WTAP_VERSION).lib: wiretap
143
144 !IFNDEF GTK1_DIR
145 ethereal.exe    : 
146 !ELSE
147 ethereal.exe    : config.h cvsversion.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) epan gtk image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk\libui.lib dissectors.lib plugins
148         @echo Linking $@
149         $(LINK) @<<
150                 /OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK1_LIBS) gtk\libui.lib $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
151 <<
152 !ENDIF
153
154 !IFNDEF GTK2_DIR
155 ethereal-gtk2.exe       : 
156 !ELSE
157 ethereal-gtk2.exe       : config.h cvsversion.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) epan gtk2 image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk2.tmp\libui.lib dissectors.lib plugins
158         @echo Linking $@
159         $(LINK) @<<
160                 /OUT:ethereal-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK2_LIBS) gtk2.tmp\libui.lib $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
161 <<
162 !ENDIF
163
164 tethereal.exe   : config.h cvsversion.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) epan image\tethereal.res wiretap\wiretap-$(WTAP_VERSION).lib dissectors.lib plugins
165         @echo Linking $@
166         $(LINK) @<<
167                 /OUT:tethereal.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res
168 <<
169
170 editcap.exe     : config.h editcap.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
171         @echo Linking $@
172         $(LINK) @<<
173                 /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(editcap_LIBS) image\editcap.res
174 <<
175
176 mergecap.exe    : config.h cvsversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
177         @echo Linking $@
178         $(LINK) @<<
179                 /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
180 <<
181
182 text2pcap.exe   : config.h text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res
183         @echo Linking $@
184         $(LINK) @<<
185                 /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res
186 <<
187
188 dftest.exe      : $(dftest_OBJECTS) $(EXTRA_OBJECTS) dissectors.lib
189         $(LINK) @<<
190                 /OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS) $(EXTRA_OBJECTS)
191 <<
192
193 randpkt.exe     : $(randpkt_OBJECTS) $(EXTRA_OBJECTS)
194         $(LINK) @<<
195                 /OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS)
196 <<
197
198 dissectors.lib: config.h $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) $(EXTRA_OBJECTS)
199         link /lib /out:dissectors.lib $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) $(EXTRA_OBJECTS)
200
201 config.h        : config.h.win32 config.nmake
202         sed -e s/@VERSION@/$(VERSION)/ \
203             -e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
204             -e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
205             -e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
206             -e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
207             -e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
208             -e "s/@HAVE_LIBETHEREALDLL@/$(LIBETHEREAL_CONFIG)/" \
209             -e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
210             -e "s/@HAVE_LIBETHEREALDLL@/$(LIBETHEREAL_CONFIG)/" \
211             < config.h.win32 > $@
212
213 ps.c    : rdps.exe print.ps
214         rdps print.ps ps.c
215
216
217 #
218 # Build the version string
219 #
220 cvsversion.h:
221         $(PERL) make-version.pl
222
223 #
224 # Build the short version of the authors file for the about dialog
225 #
226 AUTHORS-SHORT: AUTHORS make-authors-short.pl
227         $(PERL) make-authors-short.pl < AUTHORS > AUTHORS-SHORT
228
229
230 #
231 # The header files listed here are built from x11-fields using Perl;
232 # we declare a dependency here so that they get built.
233 #
234 packet-x11.obj  : packet-x11.c x11-declarations.h x11-register-info.h
235
236 #
237 # Build various header files for the X11 dissector.
238 #
239 x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
240         $(PERL) process-x11-fields.pl <x11-fields
241
242 packet-ncp2222.c : ncp2222.py
243 !IFDEF PYTHON
244         @echo Making packet-ncp2222.c
245         $(PYTHON) ncp2222.py -o packet-ncp2222.c
246 !ELSE
247         @echo Faking packet-ncp2222.c...
248         @echo Python is required to build the NCP disector
249         @echo Hiding packet-ncp.c...
250         mv packet-ncp.c packet-ncp.c.save
251         touch packet-ncp.c $@
252 !ENDIF
253
254 #
255 # Build "tethereal-tap-register.c", which contains a function 
256 # "register_all_tap_listeners()"
257 # that calls the register routines for all tehtereal tap listeners.
258 #
259 # We do this by grepping through sources.
260 #
261 # Formatting conventions:  The name of the tap_listener_register_* 
262 # routines must start in column zero, or must be preceded only by 
263 # "void " starting in column zero, and must not be inside #if.
264 #
265 # The first argument is the name of the file to write.
266 # The second argument is the directory in which the source files live.
267 # All subsequent arguments are the files to scan.
268 #
269 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) make-tapreg-dotc
270         @echo Making tethereal-tap-register.c
271         @$(SH) make-tapreg-dotc tethereal-tap-register.c . $(TETHEREAL_TAP_SRC)
272
273 text2pcap-scanner.c : text2pcap-scanner.l
274         $(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
275
276 gtk2_distclean:
277         rm -f gtk2.tmp/*.*
278         if exist gtk2.tmp rmdir gtk2.tmp
279
280 clean: gtk2_distclean
281         rm -f $(ethereal_OBJECTS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) \
282                 $(EXECUTABLES) $(PDB_FILE) \
283                 $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) dissectors.lib\
284                 editcap.obj mergecap.obj text2pcap.obj getopt.obj\
285                 text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
286                 rdps.pdb config.h ps.c AUTHORS-SHORT \
287                 rdps.exe rdps.ilk dftest.obj dftest.exe randpkt.obj randpkt.ext \
288                 $(RESOURCES)
289         cd wiretap
290         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
291         cd ../gtk
292         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
293         cd ../epan
294         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
295         cd ../plugins
296         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
297         cd ../tools
298         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
299         cd ../image
300         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
301         cd ../doc
302         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
303         cd ../help
304         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
305         cd ../packaging/nsis
306         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
307         cd ../..
308
309 # Call distclean only, if you would like to remove ALL generated files.
310 # Be sure to have python and perl installed to regenerate them.
311 distclean: clean gtk2_distclean
312         rm -f $(BUILT_SOURCES) \
313                 packet-ncp2222.c tethereal-tap-register.c 
314         cd wiretap
315         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
316         cd ../gtk
317         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
318         cd ../epan
319         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
320         cd ../plugins
321         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
322         cd ../tools
323         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
324         cd ../image
325         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
326         cd ../doc
327         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
328         cd ../help
329         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
330         cd ../packaging/nsis
331         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
332         cd ../..
333
334 tools::
335         cd tools
336         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
337         cd ..
338
339 image::
340         cd image
341         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
342         cd ..
343
344 wiretap::
345         cd wiretap
346         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
347         cd ..
348
349 gtk:: help config.h cvsversion.h AUTHORS-SHORT
350         cd gtk
351         $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK1_CFLAGS)" GTK_LIBS="$(GTK1_LIBS)" libui.lib
352         cd ..
353
354 # copy all required files to gtk2.tmp (but only when newer than existing) and compile in that dir
355 gtk2:: help config.h cvsversion.h AUTHORS-SHORT
356         if not exist gtk2.tmp mkdir gtk2.tmp
357         cd gtk
358         cp --update --preserve Makefile.* *.c *.h ..\gtk2.tmp
359         cd ..\gtk2.tmp
360         $(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK2_CFLAGS)" GTK_LIBS="$(GTK2_LIBS)" libui.lib
361         cd ..
362
363 epan:: packet-ncp2222.c x11-declarations.h x11-register-info.h dissectors.lib
364         cd epan
365         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
366         cd ..
367
368 plugins::
369         cd plugins
370         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
371         cd ..
372
373 doc::
374         cd doc
375         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
376         cd ..
377
378 help::
379         cd help
380         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
381         cd ..
382
383 REQUIRED_APPS=\
384         $(SH)   \
385         $(YACC) \
386         $(LEX)  \
387         grep    \
388         $(PERL) \
389         $(PYTHON)       \
390         sed     \
391         unzip   \
392         wget
393
394 verify_apps:
395         @$(SH) tools\win32-setup.sh --appverify $(REQUIRED_APPS)
396
397 setup: verify_apps
398 !IF "$(GTK2_INST_VERSION)" == "2.4"
399         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
400                 glib gtk2.4/glib-2.4.2.zip
401         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
402                 glib gtk2.4/glib-dev-2.4.2.zip
403 !ELSE
404         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
405                 glib glib-2.2.3-20040116.zip
406         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
407                 glib glib-dev-2.2.3-20040116.zip
408 !ENDIF
409 !IFDEF GTK1_DIR
410         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
411                 gtk+ gtk+-1.3.0-20030717.zip
412         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
413                 gtk+ gtk+-dev-1.3.0-20030115.zip
414 !ENDIF
415         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
416                 libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
417         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
418                 gettext-runtime-0.13.1 gettext-runtime-0.13.1.zip
419 !IFDEF NET_SNMP_DIR
420         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
421                 . net-snmp-5.1.zip
422 !ENDIF
423 !IFDEF PCAP_DIR
424         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
425                 . wpdpack_3_0.zip
426 !ENDIF
427 !IFDEF ADNS_DIR
428         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
429                 . adns-1.0-win32-03.zip
430 !ENDIF
431 !IFDEF PCRE_DIR
432         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
433                 . pcre-4.4.zip
434 !ENDIF
435 !IFDEF ZLIB_DIR
436         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
437                 zlib121-dll zlib121-dll.zip
438 !ENDIF
439 !IFDEF GTK2_DIR
440 !IF "$(GTK2_INST_VERSION)" == "2.4"
441         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
442                 gtk2 gtk2.4/gtk+-2.4.3.zip
443         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
444                 gtk2 gtk2.4/gtk+-dev-2.4.3.zip
445         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
446                 gtk2 gtk2.4/atk-1.6.0.zip
447         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
448                 gtk2 gtk2.4/atk-dev-1.6.0.zip
449 !ELSE
450         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
451                 gtk2 gtk2/gtk+-2.2.4-20040124.zip
452         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
453                 gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip
454         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
455                 gtk2 gtk2/atk-1.4.0.zip
456         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
457                 gtk2 gtk2/atk-dev-1.4.0.zip
458 !ENDIF
459 !IF "$(PANGO_INST_VERSION)" == "1.4"
460         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
461                 gtk2 gtk2.4/pango-1.4.0.zip
462         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
463                 gtk2 gtk2.4/pango-dev-1.4.0.zip
464 !ELSE
465         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
466                 gtk2 gtk2/pango-1.2.5-20040124.zip
467         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
468                 gtk2 gtk2/pango-dev-1.2.5-20040124.zip
469 !ENDIF
470 !ENDIF
471 !IFDEF GTK_WIMP_DIR
472         @$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
473                 gtk-wimp gtk2/gtk-wimp-0.5.4-bin.zip
474 !ENDIF
475         @echo.
476         @echo Ethereal is ready to build.
477
478 update_plugin_api: config.h
479         cd plugins
480         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake xyzzy
481         cd ..
482