2007-01-26 01:34:29 +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
|
|
|
|
|
2008-07-02 02:18:53 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2001-02-02 04:03:43 +00:00
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
2009-07-16 08:27:18 +00:00
|
|
|
CFLAGS=-WX -DHAVE_CONFIG_H /I. /I.. /I../.. $(GLIB_CFLAGS) \
|
2003-12-07 00:04:32 +00:00
|
|
|
$(PCRE_CFLAGS) /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
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)
|
2001-02-02 04:03:43 +00:00
|
|
|
|
|
|
|
ftypes.lib : $(OBJECTS)
|
2004-06-26 02:16:16 +00:00
|
|
|
link /lib /out:ftypes.lib $(OBJECTS)
|
2001-02-02 04:03:43 +00:00
|
|
|
|
|
|
|
clean:
|
2007-03-18 15:36:22 +00:00
|
|
|
rm -f $(OBJECTS) ftypes.lib *.pdb
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2003-10-10 21:31:53 +00:00
|
|
|
distclean: clean
|
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
|
2008-06-03 05:35:19 +00:00
|
|
|
|
|
|
|
checkapi:
|
2008-07-01 21:13:32 +00:00
|
|
|
$(PERL) ../../tools/checkAPIs.pl -g termoutput \
|
2008-07-02 01:44:30 +00:00
|
|
|
$(NONGENERATED_C_FILES)
|