Do case insensitive search for lua scripts to load.
[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 "copy_files"
33 #     which generates the individual ASN1 dissector files and then copies 
34 #     the generated .[hc] files to 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 #       generate_dissector   : generate the dissectors but do *not* copy the [.hc] files to epan\dissectors
41 #       compare_files        : generate the dissectors and then *compare* the .[hc] files to epan\dissectors
42 #       copy_files           : generate the dissectors and then copy the .[hc] files to epan\dissectors
43 #                            :  (This is, in effect, the same as invoking this makefile w/o a target).
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         dap                     \
58         dop                     \
59         disp                    \
60         dsp                     \
61         ess                     \
62         ftam                    \
63         gnm                     \
64         goose                   \
65         gsm_map                 \
66         gprscdr                 \
67         h248                    \
68         HI2Operations           \
69         inap                    \
70 ###     kerberos                \
71         ldap                    \
72         logotypecertextn        \
73         mms                     \
74         ns_cert_exts            \
75         ocsp                    \
76         p1                      \
77         p22                     \
78         p7                      \
79         p772                    \
80         pkcs1                   \
81         pkcs12                  \
82         pkinit                  \
83         pkixac                  \
84         pkix1explicit           \
85         pkix1implicit           \
86         pkixproxy               \
87         pkixqualified           \
88         pkixtsp                 \
89         pres                    \
90         q932                    \
91         q932-ros                \
92         qsig                    \
93         ros                     \
94         rtse                    \
95         smrse                   \
96         snmp                    \
97         spnego                  \
98         sv                      \
99         t125                    \
100         tcap                    \
101         wlancertextn            \
102         x509af                  \
103         x509ce                  \
104         x509if                  \
105         x509sat
106
107 PER_LIST= \
108         h225                    \
109         h235                    \
110         h245                    \
111         h282                    \
112         h283                    \
113         h323                    \
114         h450                    \
115         h450-ros                \
116         h460                    \
117         h501                    \
118         hnbap                   \
119         lte-rrc                 \
120         nbap                    \
121         mpeg-audio              \
122         mpeg-pes                \
123         pcap                    \
124         ranap                   \
125         rnsap                   \
126         rrc                     \
127         rrlp                    \
128         rua                     \
129         s1ap                    \
130         sabp                    \
131         t38                     \
132         tetra                   \
133         ulp                     \
134         x2ap
135
136
137 !IFNDEF ASN1_MAKE_TARGET
138 ASN1_MAKE_TARGET=copy_files
139 !ENDIF
140
141 all: ber per
142
143 ber: $(BER_LIST)
144
145 per: $(PER_LIST)
146
147 $(BER_LIST) $(PER_LIST) : _FORCE_  # _FORCE_ req'd since each target actually exists
148         cd $@
149         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
150         cd ..
151
152 # When this Makefile is invoked with an explicit target then
153 #  this Makefile is re-invoked with 'all' as target and with
154 #  ASN1_MAKE_TARGET defined as to the action needed.
155
156 clean generate_dissector compare_files copy_files :
157         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake all ASN1_MAKE_TARGET=$@
158
159 ####
160 _FORCE_:  ## Assumption: no file named _FORCE_ exists in the current directory
161