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 "copy_files"
33 # which generates the individual ASN1 dissector files and then copies
34 # the generated .[hc] files to epan\dissectors).
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 # 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).
137 !IFNDEF ASN1_MAKE_TARGET
138 ASN1_MAKE_TARGET=copy_files
147 $(BER_LIST) $(PER_LIST) : _FORCE_ # _FORCE_ req'd since each target actually exists
149 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(ASN1_MAKE_TARGET)
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.
156 clean generate_dissector compare_files copy_files :
157 $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake all ASN1_MAKE_TARGET=$@
160 _FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory