2000-04-12 21:52:11 +00:00
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
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>
|
2000-02-09 00:41:57 +00:00
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
2004-07-26 20:46:54 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H $(GLIB_CFLAGS) $(ZLIB_CFLAGS) /I$(PCAP_DIR)/include \
|
2002-06-13 10:39:29 +00:00
|
|
|
-D_U_="" $(LOCAL_CFLAGS)
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2004-09-12 23:29:33 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2004-09-12 23:29:33 +00:00
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2004-07-26 20:46:54 +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) \
|
2003-11-07 23:27:13 +00:00
|
|
|
$(ZLIB_LIBS)
|
2001-03-23 02:05:29 +00:00
|
|
|
|
|
|
|
all: wiretap-$(WTAP_VERSION).dll
|
|
|
|
|
|
|
|
wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
|
|
|
|
wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
|
|
|
|
|
2004-07-23 06:11:50 +00:00
|
|
|
wiretap-$(WTAP_VERSION).dll : $(OBJECTS) wtap.def ..\image\wiretap.res
|
2001-03-23 02:05:29 +00:00
|
|
|
$(link) $(dlllflags) $(conlibsdll) \
|
|
|
|
$(LOCAL_LDFLAGS) \
|
|
|
|
/DEF:wtap.def /OUT:wiretap-$(WTAP_VERSION).dll \
|
|
|
|
/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)
|
|
|
|
|
|
|
|
$(OBJECTS): config.h
|
2000-02-09 00:41:57 +00:00
|
|
|
|
|
|
|
ascend-grammar.c ascend-grammar.h : ascend-grammar.y
|
|
|
|
$(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c
|
|
|
|
|
|
|
|
ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
|
|
|
|
|
|
|
|
ascend-scanner.c : ascend-scanner.l
|
2000-04-06 06:19:42 +00:00
|
|
|
$(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
|
1999-07-13 02:53:26 +00:00
|
|
|
|
|
|
|
|
2003-11-07 23:27:13 +00:00
|
|
|
config.h : config.h.win32 ..\config.nmake
|
|
|
|
sed -e s/@VERSION@/$(WTAP_VERSION)/ \
|
|
|
|
-e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
|
|
|
|
< config.h.win32 > $@
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
clean :
|
2003-10-10 21:31:53 +00:00
|
|
|
rm -f $(OBJECTS) \
|
2001-03-23 02:05:29 +00:00
|
|
|
wiretap-$(WTAP_VERSION).lib \
|
|
|
|
wiretap-$(WTAP_VERSION).exp \
|
2001-04-12 18:07:22 +00:00
|
|
|
wiretap-$(WTAP_VERSION).dll \
|
2003-10-10 21:31:53 +00:00
|
|
|
$(PDB_FILE)
|
|
|
|
|
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,
|
|
|
|
# "ascend-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 "ascend-scanner.c" from "ascend-scanner.l" with Flex.
|
|
|
|
# This might not be necessary for "ascend-grammar.{c,h}", but as
|
|
|
|
# long as you need Flex, you might as well get Bison....
|
|
|
|
#
|
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
|
|
|
rm -f config.h $(GENERATED_FILES)
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|