2002-02-27 09:42:52 +00:00
|
|
|
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2002-02-27 09:42:52 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include ..\config.nmake
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
############### no need to modify below this line #########
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2003-06-14 20:36:04 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) \
|
2001-12-08 09:27:51 +00:00
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
|
|
|
|
/I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
|
2002-10-24 07:08:26 +00:00
|
|
|
/I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
|
2004-05-09 10:03:41 +00:00
|
|
|
/I$(NET_SNMP_DIR)\win32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ $(LOCAL_CFLAGS)
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
|
2004-09-16 22:07:03 +00:00
|
|
|
!IFDEF ETHEREAL_EUG_DIR
|
|
|
|
EUG_CFLAGS=-DETHEREAL_EUG_DIR
|
|
|
|
!ENDIF
|
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
2005-02-20 04:31:30 +00:00
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) $(EUG_CFLAGS) -Fd.\ -c $<
|
2000-05-29 20:11:41 +00:00
|
|
|
|
2004-01-22 18:08:58 +00:00
|
|
|
include Makefile.common
|
|
|
|
|
|
|
|
|
|
|
|
# if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
|
|
|
|
ETHEREAL_WIN32_GTK_SRC = \
|
|
|
|
$(ETHEREAL_GTK_SRC) \
|
|
|
|
print_mswin.c
|
|
|
|
|
2002-11-07 05:33:50 +00:00
|
|
|
|
|
|
|
ETHEREAL_TAP_OBJECTS = $(ETHEREAL_TAP_SRC:.c=.obj)
|
2002-11-06 10:53:36 +00:00
|
|
|
|
2004-01-22 18:08:58 +00:00
|
|
|
|
|
|
|
ETHEREAL_WIN32_GTK_OBJECTS = $(ETHEREAL_WIN32_GTK_SRC:.c=.obj)
|
|
|
|
|
|
|
|
|
|
|
|
libui.lib : ..\config.h $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
|
2004-06-26 02:16:16 +00:00
|
|
|
link /lib /out:libui.lib $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2004-05-20 11:53:52 +00:00
|
|
|
ethereal-tap-register.c: $(ETHEREAL_TAP_SRC) ../make-tapreg-dotc Makefile.common
|
2003-12-03 23:46:23 +00:00
|
|
|
@echo Making ethereal-tap-register.c
|
|
|
|
@$(SH) ../make-tapreg-dotc ethereal-tap-register.c . $(ETHEREAL_TAP_SRC)
|
1999-12-15 08:20:30 +00:00
|
|
|
|
2004-05-31 13:42:17 +00:00
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
clean:
|
2004-07-07 16:23:13 +00:00
|
|
|
rm -f $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS) libui.lib $(PDB_FILE) doxygen.cfg html/*.*
|
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
|
|
|
if exist html rmdir html
|
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
|
|
|
|
rm -f $(GENERATED_FILES)
|
2004-05-31 13:42:17 +00:00
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
# convert doxygen.cfg.in to doxygen.cfg with stamped version info
|
|
|
|
doxygen.cfg: ..\config.nmake doxygen.cfg.in
|
2004-06-04 17:19:01 +00:00
|
|
|
!IFDEF DOXYGEN
|
2004-05-31 13:42:17 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
2004-06-25 07:10:55 +00:00
|
|
|
< doxygen.cfg.in > $@
|
2004-06-04 17:19:01 +00:00
|
|
|
!ENDIF
|
2004-05-31 13:42:17 +00:00
|
|
|
|
|
|
|
doxygen-run:
|
|
|
|
!IFDEF DOXYGEN
|
2004-06-25 07:10:55 +00:00
|
|
|
$(DOXYGEN) doxygen.cfg
|
2004-05-31 13:42:17 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-06-04 17:19:01 +00:00
|
|
|
# MS html help conpiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
|
|
|
|
# the prepended -1 will raise the accepted error levels of nmake, so it will continue
|
|
|
|
doxygen.chm:
|
|
|
|
!IFDEF HHC
|
|
|
|
-1 $(HHC) html\index.hhp
|
|
|
|
!ENDIF
|
|
|
|
|
2004-06-25 07:10:55 +00:00
|
|
|
doxygen: doxygen.cfg doxygen-run doxygen.chm
|
2004-05-31 13:42:17 +00:00
|
|
|
|