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