Use tvb accessors rather than directly accessing tvb struct.
[obnox/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 ##  (See 'Logic' below for additional details)
4 #
5 # $Id$
6 #
7 #
8 # Wireshark - Network traffic analyzer
9 # By Gerald Combs <gerald@wireshark.org>
10 # Copyright 1998 Gerald Combs
11 #
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
26
27 # Logic;
28 # 1. If this Makefile is invoked w/o a target:
29 #    Do default target 'all' which invokes the Makefile.nmake
30 #     in each individual ASN1 sub-directory using the value of ASN1_MAKE_TARGET
31 #     as the make target.
32 #    (If ASN1_MAKE_TARGET is not defined then default to "all"
33 #     which generates the individual ASN1 dissector files into
34 #     epan\dissectors).
35 #
36 # 2. If this Makefile is invoked with one of the following targets, then do the action for the target:
37 #    Reinvoke this Makefile with 'all' as target and with ASN1_MAKE_TARGET
38 #     defined as appropriate.
39 #       clean
40 #       copy_files           : generate the dissectors into epan\dissectors
41 #                            :  (This is, in effect, the same as invoking this makefile w/o a target).
42
43 include Custom.make 
44
45 BER_LIST= \
46         acp133                  \
47         acse                    \
48         ansi_map                \
49         ansi_tcap               \
50         camel                   \
51         cdt                     \
52         charging_ase            \
53         cmip                    \
54         cmp                     \
55         crmf                    \
56         cms                     \
57         credssp                 \
58         dap                     \
59         dop                     \
60         disp                    \
61         dsp                     \
62         ess                     \
63         ftam                    \
64         gnm                     \
65         goose                   \
66         gsm_map                 \
67         gprscdr                 \
68         h248                    \
69         HI2Operations           \
70         idmp                    \
71         inap                    \
72 ###     kerberos                \
73         ldap                    \
74         logotypecertextn        \
75         mms                     \
76         ns_cert_exts            \
77         ocsp                    \
78         p1                      \
79         p22                     \
80         p7                      \
81         p772                    \
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         smrse                   \
98         snmp                    \
99         spnego                  \
100         sv                      \
101         t125                    \
102         tcap                    \
103         wlancertextn            \
104         x509af                  \
105         x509ce                  \
106         x509if                  \
107         x509sat                 \
108         $(CUSTOM_BER_LIST)
109
110 PER_LIST= \
111         h225                    \
112         h235                    \
113         h245                    \
114         h282                    \
115         h283                    \
116         h323                    \
117         h450                    \
118         h450-ros                \
119         h460                    \
120         h501                    \
121         hnbap                   \
122         lcsap                   \
123         lpp                             \
124         lppa                    \
125         lte-rrc                 \
126         nbap                    \
127         mpeg-audio              \
128         mpeg-pes                \
129         pcap                    \
130         ranap                   \
131         rnsap                   \
132         rrc                     \
133         rrlp                    \
134         rua                     \
135         s1ap                    \
136         sabp                    \
137         sbc-ap                  \
138         t124                    \
139         t38                     \
140         tetra                   \
141         ulp                     \
142         x2ap                    \
143 ###     x721
144         $(CUSTOM_PER_LIST)
145
146 !IFNDEF ASN1_MAKE_TARGET
147 ASN1_MAKE_TARGET=all
148 !ENDIF
149
150 all: ber per
151
152 ber: $(BER_LIST)
153
154 per: $(PER_LIST)
155
156 $(BER_LIST) $(PER_LIST) : _FORCE_  # _FORCE_ req'd since each target actually exists
157         cd $@
158         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
159         cd ..
160
161 # When this Makefile is invoked with an explicit target then
162 #  this Makefile is re-invoked with 'all' as target and with
163 #  ASN1_MAKE_TARGET defined as to the action needed.
164 # copy_files is a bit of a misnomer now, but we need another
165 # (non-"all") target...
166
167 clean copy_files :
168         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake all ASN1_MAKE_TARGET=$@
169
170 ####
171 _FORCE_:  ## Assumption: no file named _FORCE_ exists in the current directory
172