213adbd2e9b5ad1e5eea08cef316dcb6c67084ef
[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         atn-cm          \
51         atn-cpdlc       \
52         atn-ulcs        \
53         camel                   \
54         cdt                     \
55         charging_ase            \
56         cmip                    \
57         cmp                     \
58         crmf                    \
59         cms                     \
60         credssp                 \
61         dap                     \
62         dop                     \
63         disp                    \
64         dsp                     \
65         ess                     \
66         ftam                    \
67         gnm                     \
68         goose                   \
69         gsm_map                 \
70         gprscdr                 \
71         h248                    \
72         HI2Operations           \
73         idmp                    \
74         inap                    \
75         isdn-sup                \
76 ###     kerberos                \
77         ldap                    \
78         logotypecertextn        \
79         mms                     \
80         ns_cert_exts            \
81         novell_pkis                     \
82         ocsp                    \
83         p1                      \
84         p22                     \
85         p7                      \
86         p772                    \
87         pkcs1                   \
88         pkcs12                  \
89         pkinit                  \
90         pkixac                  \
91         pkix1explicit           \
92         pkix1implicit           \
93         pkixproxy               \
94         pkixqualified           \
95         pkixtsp                 \
96         pres                    \
97         q932                    \
98         q932-ros                \
99         qsig                    \
100         ros                     \
101         rtse                    \
102         smrse                   \
103         snmp                    \
104         spnego                  \
105         sv                      \
106         t125                    \
107         tcap                    \
108         wlancertextn            \
109         x509af                  \
110         x509ce                  \
111         x509if                  \
112         x509sat                 \
113         $(CUSTOM_BER_LIST)
114
115 PER_LIST= \
116         h225                    \
117         h235                    \
118         h245                    \
119         h282                    \
120         h283                    \
121         h323                    \
122         h450                    \
123         h450-ros                \
124         h460                    \
125         h501                    \
126         hnbap                   \
127         ilp                     \
128         lcsap                   \
129         lpp                     \
130         lppa                    \
131         lppe                    \
132         lte-rrc                 \
133         nbap                    \
134         m3ap                    \
135         mpeg-audio              \
136         mpeg-pes                \
137         pcap                    \
138         ranap                   \
139         rnsap                   \
140         rrc                     \
141         rrlp                    \
142         rua                     \
143         s1ap                    \
144         sabp                    \
145         sbc-ap                  \
146         t124                    \
147         t38                     \
148         tetra                   \
149         ulp                     \
150         x2ap                    \
151 ###     x721
152         $(CUSTOM_PER_LIST)
153
154 !IFNDEF ASN1_MAKE_TARGET
155 ASN1_MAKE_TARGET=all
156 !ENDIF
157
158 all: ber per
159
160 ber: $(BER_LIST)
161
162 per: $(PER_LIST)
163
164 $(BER_LIST) $(PER_LIST) : _FORCE_  # _FORCE_ req'd since each target actually exists
165         cd $@
166         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
167         cd ..
168
169 # When this Makefile is invoked with an explicit target then
170 #  this Makefile is re-invoked with 'all' as target and with
171 #  ASN1_MAKE_TARGET defined as to the action needed.
172 # copy_files is a bit of a misnomer now, but we need another
173 # (non-"all") target...
174
175 clean copy_files :
176         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake all ASN1_MAKE_TARGET=$@
177
178 ####
179 _FORCE_:  ## Assumption: no file named _FORCE_ exists in the current directory
180