2006-06-17 12:04:30 +00:00
|
|
|
## Makefile for building wireshark.exe with Microsoft C and nmake
|
2002-02-27 09:42:52 +00:00
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2002-02-27 09:42:52 +00:00
|
|
|
|
2001-02-02 04:03:43 +00:00
|
|
|
include ..\..\config.nmake
|
2007-08-01 22:20:38 +00:00
|
|
|
include ..\..\Makefile.nmake.inc
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2008-07-02 02:18:53 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2001-02-02 04:03:43 +00:00
|
|
|
LEMON=..\..\tools\lemon
|
|
|
|
|
2009-03-17 16:05:07 +00:00
|
|
|
# We GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
|
2011-02-02 01:19:53 +00:00
|
|
|
GENERATED_CFLAGS=\
|
|
|
|
$(STANDARD_CFLAGS) \
|
|
|
|
/I. /I.. /I..\.. $(GLIB_CFLAGS) \
|
|
|
|
/I$(LEMON) \
|
2011-08-23 09:25:06 +00:00
|
|
|
/I$(PCAP_DIR)\include
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2008-07-02 01:44:30 +00:00
|
|
|
OBJECTS=$(NONGENERATED_C_FILES:.c=.obj) $(GENERATED_C_FILES:.c=.obj)
|
2001-02-02 04:03:43 +00:00
|
|
|
|
|
|
|
dfilter.lib : $(OBJECTS)
|
2004-06-26 02:16:16 +00:00
|
|
|
link /lib /out:dfilter.lib $(OBJECTS)
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
$(OBJECTS): ..\..\config.h
|
2002-01-04 21:20:20 +00:00
|
|
|
|
2004-05-06 20:48:36 +00:00
|
|
|
..\..\config.h: ..\..\config.h.win32 ..\..\config.nmake
|
|
|
|
cd ..\..
|
2006-12-05 12:36:06 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake config.h
|
2004-05-06 20:48:36 +00:00
|
|
|
cd epan\dfilter
|
2001-02-02 04:03:43 +00:00
|
|
|
|
|
|
|
clean:
|
2007-03-18 15:36:22 +00:00
|
|
|
rm -f $(OBJECTS) dfilter.lib *.pdb
|
2003-10-10 21:31:53 +00:00
|
|
|
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
#
|
|
|
|
# We remove the generated files with "distclean" because one of them,
|
|
|
|
# "scanner.c", needs different #includes for UN*X and Windows
|
|
|
|
# (UN*X versions of Flex make it include <unistd.h>, but that's a
|
|
|
|
# UN*X-only header), so if you're going to build from source, you need
|
|
|
|
# to build "scanner.c" from "scanner.l" with Flex.
|
|
|
|
# This might not be necessary for "grammar.{c,h}", but we handle them
|
|
|
|
# the same for now.
|
|
|
|
#
|
2003-10-10 21:31:53 +00:00
|
|
|
distclean: clean
|
2008-07-02 01:44:30 +00:00
|
|
|
rm -f $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES) grammar.out
|
2001-02-02 04:03:43 +00:00
|
|
|
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
maintainer-clean: distclean
|
|
|
|
|
2007-08-04 02:13:52 +00:00
|
|
|
RUNLEX=..\..\tools\runlex.sh
|
|
|
|
|
|
|
|
scanner_lex.h : scanner.c
|
2001-02-02 04:03:43 +00:00
|
|
|
scanner.obj : scanner.c grammar.h
|
2009-03-17 16:05:07 +00:00
|
|
|
$(CC) $(CVARSDLL) $(GENERATED_CFLAGS) -Fd.\ -c scanner.c
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2001-02-16 19:45:38 +00:00
|
|
|
grammar.h : grammar.c
|
2008-03-23 08:58:52 +00:00
|
|
|
grammar.c : $(LEMON)\lemon.exe $(LEMON)\lempar.c grammar.lemon
|
2010-11-30 02:04:55 +00:00
|
|
|
$(LEMON)\lemon.exe t=$(LEMON)\lempar.c grammar.lemon
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(LEMON)\lemon.exe:
|
2009-03-15 22:40:29 +00:00
|
|
|
cd ../../tools
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake lemon
|
|
|
|
cd ../epan/dfilter
|
2010-11-30 02:04:55 +00:00
|
|
|
|
|
|
|
checkapi:
|
|
|
|
$(PERL) ../../tools/checkAPIs.pl -g termoutput \
|
|
|
|
$(GENERATOR_FILES) \
|
|
|
|
$(NONGENERATED_C_FILES)
|