2000-04-12 21:52:11 +00:00
|
|
|
#
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include ..\config.nmake
|
2001-03-23 02:05:29 +00:00
|
|
|
include <win32.mak>
|
2007-08-01 22:20:38 +00:00
|
|
|
include ..\Makefile.nmake.inc
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2004-07-26 20:46:54 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2009-04-08 18:08:25 +00:00
|
|
|
# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
|
2011-02-02 01:19:53 +00:00
|
|
|
GENERATED_CFLAGS=\
|
|
|
|
$(STANDARD_CFLAGS) \
|
|
|
|
-DYYMALLOC=malloc -DYYFREE=free \
|
|
|
|
/I. /I.. $(GLIB_CFLAGS) \
|
2013-03-02 22:19:33 +00:00
|
|
|
$(ZLIB_CFLAGS) /I$(PCAP_DIR)/include \
|
|
|
|
-DWS_BUILD_DLL
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2013-03-02 22:19:33 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
|
2004-09-12 23:29:33 +00:00
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2008-05-22 15:46:27 +00:00
|
|
|
OBJECTS=$(NONGENERATED_C_FILES:.c=.obj) $(GENERATED_C_FILES:.c=.obj)
|
2001-03-23 02:05:29 +00:00
|
|
|
|
|
|
|
wiretap_LIBS = \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS) \
|
2014-07-10 00:59:01 +00:00
|
|
|
..\wsutil\libwsutil.lib \
|
2003-11-07 23:27:13 +00:00
|
|
|
$(ZLIB_LIBS)
|
2001-03-23 02:05:29 +00:00
|
|
|
|
2008-07-02 02:00:28 +00:00
|
|
|
all: wiretap-$(WTAP_VERSION).dll
|
2001-03-23 02:05:29 +00:00
|
|
|
|
|
|
|
wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
|
|
|
|
wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
|
|
|
|
|
2013-02-28 19:35:59 +00:00
|
|
|
wiretap-$(WTAP_VERSION).dll : $(OBJECTS) ..\image\wiretap.res
|
2001-03-23 02:05:29 +00:00
|
|
|
$(link) $(dlllflags) $(conlibsdll) \
|
2009-03-02 21:33:11 +00:00
|
|
|
$(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
|
2013-02-28 19:35:59 +00:00
|
|
|
/OUT:wiretap-$(WTAP_VERSION).dll \
|
2001-03-23 02:05:29 +00:00
|
|
|
/IMPLIB:wiretap-$(WTAP_VERSION).lib \
|
2004-07-23 06:11:50 +00:00
|
|
|
..\image\wiretap.res \
|
2001-03-23 02:05:29 +00:00
|
|
|
$(OBJECTS) $(wiretap_LIBS)
|
|
|
|
|
2014-07-12 14:59:56 +00:00
|
|
|
RUNLEX = ../tools/runlex.sh
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2012-06-19 19:53:03 +00:00
|
|
|
k12text_lex.h : k12text.c
|
|
|
|
k12text.obj : k12text.c
|
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
|
|
|
|
|
2009-06-15 18:56:46 +00:00
|
|
|
ascend_scanner_lex.h : ascend_scanner.c
|
|
|
|
ascend_scanner.obj : ascend_scanner.c ascend.h
|
2012-02-24 16:23:38 +00:00
|
|
|
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c ascend_scanner.c
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2012-06-19 19:53:03 +00:00
|
|
|
ascend_scanner.c : ascend.h
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2009-06-15 18:56:46 +00:00
|
|
|
ascend.c ascend.h : ascend.y
|
|
|
|
$(YACC) $(YACC_OPTS) -d -p ascend ascend.y -o ascend.c
|
2007-08-04 02:13:52 +00:00
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
clean :
|
2003-10-10 21:31:53 +00:00
|
|
|
rm -f $(OBJECTS) \
|
2006-02-22 06:06:21 +00:00
|
|
|
wiretap-*.lib \
|
|
|
|
wiretap-*.exp \
|
|
|
|
wiretap-*.dll \
|
2007-01-03 05:41:11 +00:00
|
|
|
wiretap-*.dll.manifest \
|
2012-01-29 20:33:58 +00:00
|
|
|
*.pdb *.sbr
|
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,
|
2009-06-15 18:56:46 +00:00
|
|
|
# "ascend_scanner.c", needs different #includes for UN*X and Windows
|
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
|
|
|
# (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
|
2009-06-15 18:56:46 +00:00
|
|
|
# to build "ascend_scanner.c" from "ascend_scanner.l" with Flex.
|
|
|
|
# This might not be necessary for "ascend.{c,h}", but as
|
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
|
|
|
# long as you need Flex, you might as well get Bison....
|
|
|
|
#
|
2003-10-10 21:31:53 +00:00
|
|
|
distclean: clean
|
2007-12-07 23:38:59 +00:00
|
|
|
rm -f $(GENERATED_FILES)
|
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-05-06 06:18:26 +00:00
|
|
|
|
|
|
|
checkapi:
|
2008-07-17 16:35:56 +00:00
|
|
|
## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
|
|
|
|
## $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../tools/checkAPIs.pl -g termoutput -build $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
|