MCS-PROTOCOL.asn does not exists (in this directory) and does not
[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 # $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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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         isdn-sup                \
73 ###     kerberos                \
74         ldap                    \
75         logotypecertextn        \
76         mms                     \
77         ns_cert_exts            \
78         ocsp                    \
79         p1                      \
80         p22                     \
81         p7                      \
82         p772                    \
83         pkcs1                   \
84         pkcs12                  \
85         pkinit                  \
86         pkixac                  \
87         pkix1explicit           \
88         pkix1implicit           \
89         pkixproxy               \
90         pkixqualified           \
91         pkixtsp                 \
92         pres                    \
93         q932                    \
94         q932-ros                \
95         qsig                    \
96         ros                     \
97         rtse                    \
98         smrse                   \
99         snmp                    \
100         spnego                  \
101         sv                      \
102         t125                    \
103         tcap                    \
104         wlancertextn            \
105         x509af                  \
106         x509ce                  \
107         x509if                  \
108         x509sat                 \
109         $(CUSTOM_BER_LIST)
110
111 PER_LIST= \
112         h225                    \
113         h235                    \
114         h245                    \
115         h282                    \
116         h283                    \
117         h323                    \
118         h450                    \
119         h450-ros                \
120         h460                    \
121         h501                    \
122         hnbap                   \
123         lcsap                   \
124         lpp                     \
125         lppa                    \
126         lppe                    \
127         lte-rrc                 \
128         nbap                    \
129         m3ap                    \
130         mpeg-audio              \
131         mpeg-pes                \
132         pcap                    \
133         ranap                   \
134         rnsap                   \
135         rrc                     \
136         rrlp                    \
137         rua                     \
138         s1ap                    \
139         sabp                    \
140         sbc-ap                  \
141         t124                    \
142         t38                     \
143         tetra                   \
144         ulp                     \
145         x2ap                    \
146 ###     x721
147         $(CUSTOM_PER_LIST)
148
149 !IFNDEF ASN1_MAKE_TARGET
150 ASN1_MAKE_TARGET=all
151 !ENDIF
152
153 all: ber per
154
155 ber: $(BER_LIST)
156
157 per: $(PER_LIST)
158
159 $(BER_LIST) $(PER_LIST) : _FORCE_  # _FORCE_ req'd since each target actually exists
160         cd $@
161         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
162         cd ..
163
164 # When this Makefile is invoked with an explicit target then
165 #  this Makefile is re-invoked with 'all' as target and with
166 #  ASN1_MAKE_TARGET defined as to the action needed.
167 # copy_files is a bit of a misnomer now, but we need another
168 # (non-"all") target...
169
170 clean copy_files :
171         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake all ASN1_MAKE_TARGET=$@
172
173 ####
174 _FORCE_:  ## Assumption: no file named _FORCE_ exists in the current directory
175