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