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)
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
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.
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.
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.
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
29 # (If ASN1_MAKE_TARGET is not defined then default to "all"
30 # which generates the individual ASN1 dissector files into
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.
37 # copy_files : generate the dissectors into epan\dissectors
38 # : (This is, in effect, the same as invoking this makefile w/o a target).
151 !IFNDEF ASN1_MAKE_TARGET
161 $(BER_LIST) $(PER_LIST) : _FORCE_ # _FORCE_ req'd since each target actually exists
163 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
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...
173 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake all ASN1_MAKE_TARGET=$@
176 _FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory