Enhance Windows ASN1 Makefiles:
[metze/wireshark/wip.git] / asn1 / Makefile.nmake
1 ## Makefile for building wireshark.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4 # $Id$
5 #
6 #
7 # Wireshark - Network traffic analyzer
8 # By Gerald Combs <gerald@wireshark.org>
9 # Copyright 1998 Gerald Combs
10 #
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
25
26 # Logic;
27 # 1. If this Makefile is invoked w/o a target: 
28 #    Do default target 'all' which invokes the Makefile.nmake
29 #     in each individual ASN1 sub-directory using the value of ASN1_MAKE_TARGET
30 #     as the make target.
31 #    (If ASN1_MAKE_TARGET is not defined then default to "copy_files"
32 #     which generates the individual ASN1 dissector files and then copies 
33 #     the generated .[hc] files to epan\dissectors).
34 # 2. If this Makefile is invoked with a target, then do the action for the target:
35 #    Reinvoke this Makefile without a target and with ASN1_MAKE_TARGET 
36 #     defined as appropriate.
37 #    Possible targets:
38 #     clean
39 #     generate_dissectors  : generate the dissectors but do *not* copy the [.hc] files to epan\dissectors
40 #     compare_files        : generate the dissectors and then *compare* the .[hc] files to epan\dissectors
41 #     copy_files           : generate the dissectors and then copy the .[hc] files to epan\dissectors
42 #                          :  (This is, in effect, the same as invoking this makefile w/o a target).
43
44 !IFNDEF ASN1_MAKE_TARGET
45 ASN1_MAKE_TARGET=copy_files
46 !ENDIF
47
48
49 all: ber per
50
51 ber: \
52         acp133  \
53         acse    \
54         ansi_map\
55         ansi_tcap       \
56         camel   \
57         cdt             \
58         charging_ase    \
59         cmip    \
60         cmp             \
61         crmf    \
62         cms             \
63         dap             \
64         dop             \
65         disp    \
66         dsp             \
67         ess             \
68         ftam    \
69         gnm             \
70         goose   \
71         gsm_map \
72         h248    \
73         HI2Operations   \
74         inap    \
75         kerberos        \
76         ldap    \
77         logotypecertextn        \
78         mms             \
79         ns_cert_exts    \
80         ocsp    \
81         p7              \
82         pkcs1   \
83         pkcs12  \
84         pkinit  \
85         pkixac  \
86         pkix1explicit   \
87         pkix1implicit   \
88         pkixproxy               \
89         pkixqualified   \
90         pkixtsp \
91         pres    \
92         q932    \
93         q932-ros\
94         qsig    \
95         ros             \
96         rtse    \
97         s4406   \
98         smrse   \
99         snmp    \
100         spnego  \
101         t125    \
102         tcap    \
103         wlancertextn    \
104         x411    \
105         x420    \
106         x509af  \
107         x509ce  \
108         x509if  \
109         x509sat
110
111 per: \
112         h225    \
113         h235    \
114         h245    \
115         h282    \
116         h283    \
117         h323    \
118         h450    \
119         h450-ros\
120         h460    \
121         h501    \
122         hnbap   \
123         lte-rrc \
124         nbap    \
125         mpeg-audio      \
126         mpeg-pes        \
127         pcap    \
128         ranap   \
129         rnsap   \
130         rrc             \
131         rrlp    \
132         rua             \
133         s1ap    \
134         sabp    \
135         t38             \
136         ulp             \
137         x2ap
138
139 # ASN1 individual targets
140 cdt::
141         cd cdt
142         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
143         cd ..
144
145 charging_ase::
146         cd charging_ase
147         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
148         cd ..
149
150 cmip::
151         cd cmip
152         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
153         cd ..
154
155 cmp::
156         cd cmp
157         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
158         cd ..
159
160 crmf::
161         cd crmf
162         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
163         cd ..
164
165 cms::
166         cd cms
167         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
168         cd ..
169
170 dap::
171         cd dap
172         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
173         cd ..
174 dop::
175         cd dop
176         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
177         cd ..
178
179 disp::
180         cd disp
181         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
182         cd ..
183
184 dsp::
185         cd dsp
186         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
187         cd ..
188
189 ess::
190         cd ess
191         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
192         cd ..
193
194 ftam::
195         cd ftam
196         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
197         cd ..
198
199 gnm::
200         cd gnm
201         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
202         cd ..
203
204 goose::
205         cd goose
206         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
207         cd ..
208
209 gsm_map::
210         cd gsm_map
211         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
212         cd ..
213
214 h225::
215         cd h225
216         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
217         cd ..
218
219 h235::
220         cd h235
221         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
222         cd ..
223
224 h245::
225         cd h245
226         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
227         cd ..
228
229 h248::
230         cd h248
231         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
232         cd ..
233
234 h282::
235         cd h282
236         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
237         cd ..
238
239 h283::
240         cd h283
241         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
242         cd ..
243
244 h323::
245         cd h323
246         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
247         cd ..
248
249 h450::
250         cd h450
251         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
252         cd ..
253
254 h450-ros::
255         cd h450-ros
256         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
257         cd ..
258
259 h460::
260         cd h460
261         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
262         cd ..
263
264 h501::
265         cd h501
266         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
267         cd ..
268
269 HI2Operations::
270         cd HI2Operations
271         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
272         cd ..
273
274 hnbap::
275         cd hnbap
276         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
277         cd ..
278
279 inap::
280         cd inap
281         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
282         cd ..
283
284 ldap::
285         cd ldap
286         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
287         cd ..
288
289 lte-rrc::
290         cd lte-rrc
291         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
292         cd ..
293
294 logotypecertextn::
295         cd logotypecertextn
296         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
297         cd ..
298
299 mms::
300         cd mms
301         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
302         cd ..
303
304 mpeg-audio::
305         cd mpeg-audio
306         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
307         cd ..
308
309 mpeg-pes::
310         cd mpeg-pes
311         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
312         cd ..
313
314 nbap::
315         cd nbap
316         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
317         cd ..
318
319 ns_cert_exts::
320         cd ns_cert_exts
321         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
322         cd ..
323
324 ocsp::
325         cd ocsp
326         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
327         cd ..
328
329 p7::
330         cd p7
331         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
332         cd ..
333
334 pcap::
335         cd pcap
336         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
337         cd ..
338
339 pkcs1::
340         cd pkcs1
341         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
342         cd ..
343
344 pkcs12::
345         cd pkcs12
346         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
347         cd ..
348
349 pkinit::
350         cd pkinit
351         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
352         cd ..
353
354 pkixac::
355         cd pkixac
356         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
357         cd ..
358
359 pkix1explicit::
360         cd pkix1explicit
361         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
362         cd ..
363
364 pkix1implicit::
365         cd pkix1implicit
366         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
367         cd ..
368
369 pkixproxy::
370         cd pkixproxy
371         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
372         cd ..
373
374 pkixqualified::
375         cd pkixqualified
376         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
377         cd ..
378
379 pkixtsp::
380         cd pkixtsp
381         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
382         cd ..
383
384 pres::
385         cd pres
386         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
387         cd ..
388
389 q932::
390         cd q932
391         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
392         cd ..
393
394 q932-ros::
395         cd q932-ros
396         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
397         cd ..
398
399 qsig::
400         cd qsig
401         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
402         cd ..
403
404 ranap::
405         cd ranap
406         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
407         cd ..
408
409 rnsap::
410         cd rnsap
411         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
412         cd ..
413
414 ros::
415         cd ros
416         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
417         cd ..
418
419 rrc::
420         cd rrc
421         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
422         cd ..
423
424 rrlp::
425         cd rrlp
426         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
427         cd ..
428
429 rtse::
430         cd rtse
431         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
432         cd ..
433
434 rua::
435         cd rua
436         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
437         cd ..
438
439 s1ap::
440         cd s1ap
441         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
442         cd ..
443
444 s4406::
445         cd s4406
446         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
447         cd ..
448
449 sabp::
450         cd sabp
451         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
452         cd ..
453
454 smrse::
455         cd smrse
456         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
457         cd ..
458
459 snmp::
460         cd snmp
461         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
462         cd ..
463
464 spnego::
465         cd spnego
466         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
467         cd ..
468
469 t125::
470         cd t125
471         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
472         cd ..
473
474 t38::
475         cd t38
476         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
477         cd ..
478
479 tcap::
480         cd tcap
481         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
482         cd ..
483
484 ulp::
485         cd ulp
486         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
487         cd ..
488
489 wlancertextn::
490         cd wlancertextn
491         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
492         cd ..
493
494 x2ap::
495         cd x2ap
496         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
497         cd ..
498
499 x411::
500         cd x411
501         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
502         cd ..
503
504 x420::
505         cd x420
506         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
507         cd ..
508
509 x509af::
510         cd x509af
511         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
512         cd ..
513
514 x509ce::
515         cd x509ce
516         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
517         cd ..
518
519 x509if::
520         cd x509if
521         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
522         cd ..
523
524 x509sat::
525         cd x509sat
526         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
527         cd ..
528
529
530 ## -----
531
532 # When this Makefile is invoked with an explicit target then
533 #  this Makefile is re-invoked with no target but with
534 #  ASN1_MAKE_TARGET defined as to the action needed.
535
536 clean:
537         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake ASN1_MAKE_TARGET=clean
538
539 generate_dissectors:
540         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake ASN1_MAKE_TARGET=all
541
542 compare_files:
543         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake ASN1_MAKE_TARGET=compare_files
544
545 copy_files:
546         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake ASN1_MAKE_TARGET=copy_files
547
548