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)
8 # Wireshark - Network traffic analyzer
9 # By Gerald Combs <gerald@wireshark.org>
10 # Copyright 1998 Gerald Combs
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.
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.
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.
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
32 # (If ASN1_MAKE_TARGET is not defined then default to "all"
33 # which generates the individual ASN1 dissector files into
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.
40 # copy_files : generate the dissectors into epan\dissectors
41 # : (This is, in effect, the same as invoking this makefile w/o a target).
145 !IFNDEF ASN1_MAKE_TARGET
155 $(BER_LIST) $(PER_LIST) : _FORCE_ # _FORCE_ req'd since each target actually exists
157 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
160 # When this Makefile is invoked with an explicit target then
161 # this Makefile is re-invoked with 'all' as target and with
162 # ASN1_MAKE_TARGET defined as to the action needed.
163 # copy_files is a bit of a misnomer now, but we need another
164 # (non-"all") target...
167 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake all ASN1_MAKE_TARGET=$@
170 _FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory