diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-02-22 08:30:41 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-02-22 08:30:41 +0000 |
commit | d830fd0f9022e26ce0b0d5d7299af30894596efd (patch) | |
tree | ddd956e78d877d03e1dfedc4844f4eb9ca81365c | |
parent | 5cfc41fd885e35bcf18f5fdb261ebd079f60cbca (diff) |
make the Makefile.common really common between automake and nmake,
as lot's of definitions were used in the automake process only
svn path=/trunk/; revision=10176
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | Makefile.common | 161 | ||||
-rw-r--r-- | Makefile.nmake | 82 |
3 files changed, 115 insertions, 132 deletions
diff --git a/Makefile.am b/Makefile.am index 5aa2388d96..404f0a0a89 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ # Makefile.am # Automake file for Ethereal # -# $Id: Makefile.am,v 1.710 2004/02/20 11:06:20 guy Exp $ +# $Id: Makefile.am,v 1.711 2004/02/22 08:30:41 ulfl Exp $ # # Ethereal - Network traffic analyzer # By Gerald Combs <gerald@ethereal.com> @@ -83,6 +83,8 @@ diameterdir = $(pkgdatadir)/diameter diameter_DATA = dictionary.dtd dictionary.xml mobileipv4.xml \ nasreq.xml sunping.xml +PLATFORM_SRC = pcap-util-unix.c + include Makefile.common if HAVE_PLUGINS diff --git a/Makefile.common b/Makefile.common index 2bff5f88b8..155648c101 100644 --- a/Makefile.common +++ b/Makefile.common @@ -3,7 +3,7 @@ # a) common to both files and # b) portable between both files # -# $Id: Makefile.common,v 1.18 2004/02/21 02:15:05 guy Exp $ +# $Id: Makefile.common,v 1.19 2004/02/22 08:30:41 ulfl Exp $ # # Ethereal - Network traffic analyzer # By Gerald Combs <gerald@ethereal.com> @@ -24,6 +24,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# the dissector sources (without any helpers) DISSECTOR_SRC = \ packet-aarp.c \ packet-acap.c \ @@ -446,7 +447,8 @@ DISSECTOR_SRC = \ packet-ypxfr.c \ packet-zebra.c -noinst_HEADERS = \ +# corresponding headers +DISSECTOR_HEADERS = \ packet-acse.h \ packet-afp.h \ packet-afs-defs.h \ @@ -613,110 +615,121 @@ noinst_HEADERS = \ packet-ypserv.h \ packet-ypxfr.h +# dissector helpers (needed from the dissectors, but not a dissector itself) DISSECTOR_SUPPORT_SRC = \ adler32.c \ - adler32.h \ afn.c \ + asn1.c \ + column.c \ + crc32.c \ + crypt-des.c \ + crypt-md4.c \ + crypt-md5.c \ + crypt-rc4.c \ + follow.c \ + g711.c \ + h225-persistentdata.c \ + in_cksum.c \ + ipproto.c \ + packet-dcerpc-nt.c \ + prefs.c \ + ptvcursor.c \ + reassemble.c \ + req_resp_hdrs.c \ + t35.c \ + tap.c \ + util.c \ + xdlc.c \ + xmlstub.c + +# corresponding headers +DISSECTOR_SUPPORT_HEADERS = \ + adler32.h \ afn.h \ aftypes.h \ arcnet_pids.h \ - asn1.c \ asn1.h \ bridged_pids.h \ chdlctypes.h \ - column.c \ column.h \ - crc32.c \ crc32.h \ - crypt-des.c \ crypt-des.h \ - crypt-md4.c \ crypt-md4.h \ - crypt-md5.c \ crypt-md5.h \ - crypt-rc4.c \ crypt-rc4.h \ etypes.h \ - follow.c \ follow.h \ format-oid.h \ - g711.c \ g711.h \ greproto.h \ - h225-persistentdata.c \ h225-persistentdata.h \ - in_cksum.c \ in_cksum.h \ ip_opts.h \ - ipproto.c \ ipproto.h \ lapd_sapi.h \ llcsaps.h \ nlpid.h \ oui.h \ - packet-dcerpc-nt.c \ ppptypes.h \ prefs-int.h \ - prefs.c \ prefs.h \ - ptvcursor.c \ ptvcursor.h \ - reassemble.c \ reassemble.h \ - req_resp_hdrs.c \ req_resp_hdrs.h \ rpc_defrag.h \ rtp_pt.h \ sctpppids.h \ smb.h \ - t35.c \ t35.h \ - tap.c \ tap.h \ - util.c \ util.h \ x264_prt_id.h \ - xdlc.c \ xdlc.h \ - xmlstub.c \ xmlstub.h -BUILT_SOURCES = \ +# headers needed for the generation process +BUILT_HEADERS = \ cvsversion.h \ x11-declarations.h \ x11-register-info.h +# sources common for ethereal and tethereal ETHEREAL_COMMON_SRC = \ + $(PLATFORM_SRC) \ $(DISSECTOR_SUPPORT_SRC) \ - $(BUILT_SOURCES) \ capture_stop_conditions.c \ - capture_stop_conditions.h \ cfile.c \ + conditions.c \ + disabled_protos.c \ + pcap-util.c \ + print.c \ + ps.c \ + range.c \ + ringbuffer.c \ + timestats.c \ + version_info.c + +# corresponding headers +ETHEREAL_COMMON_HEADERS = \ + $(DISSECTOR_SUPPORT_HEADERS) \ + $(BUILT_HEADERS) \ + capture_stop_conditions.h \ cfile.h \ color.h \ - conditions.c \ conditions.h \ - disabled_protos.c \ disabled_protos.h \ file.h \ - pcap-util.c \ pcap-util.h \ pcap-util-int.h \ - pcap-util-unix.c \ - print.c \ print.h \ - ps.c \ ps.h \ - range.c \ range.h \ register.h \ - ringbuffer.c \ ringbuffer.h \ - timestats.c \ timestats.h \ - version_info.c \ version_info.h +# ??? TETHEREAL_TAP_SRC = \ tap-ansi_astat.c \ tap-bootpstat.c \ @@ -736,43 +749,52 @@ TETHEREAL_TAP_SRC = \ tap-smbstat.c \ tap-wspstat.c +# helpers alraedy available on some platforms (and on others not) +EXTRA_ethereal_SOURCES = \ + snprintf.c \ + strerror.c \ + strcasecmp.c \ + strncasecmp.c \ + mkstemp.c \ + strptime.c + +# corresponding headers +EXTRA_ethereal_HEADERS = \ + snprintf.h \ + snprintf-imp.h \ + strerror.h \ + mkstemp.h \ + strptime.h + +# ethereal specifics ethereal_SOURCES = \ $(DISSECTOR_SRC) \ $(ETHEREAL_COMMON_SRC) \ register.c \ alert_box.c \ - alert_box.h \ capture.c \ - capture.h \ file.c \ filters.c \ + proto_hier_stats.c \ + summary.c + +# corresponding headers +ethereal_HEADERS = \ + alert_box.h \ + capture.h \ filters.h \ globals.h \ menu.h \ progress_dlg.h \ proto_hier_stats.h \ - proto_hier_stats.c \ report_err.h \ simple_dialog.h \ statusbar.h \ - summary.c \ summary.h \ tap_dfilter_dlg.h \ ui_util.h -EXTRA_ethereal_SOURCES = \ - snprintf.c \ - snprintf.h \ - snprintf-imp.h \ - strerror.c \ - strerror.h \ - strcasecmp.c \ - strncasecmp.c \ - mkstemp.c \ - mkstemp.h \ - strptime.c \ - strptime.h - +# tethereal specifics tethereal_SOURCES = \ $(DISSECTOR_SRC) \ $(ETHEREAL_COMMON_SRC) \ @@ -781,16 +803,37 @@ tethereal_SOURCES = \ register.c \ tethereal.c -text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l +# text2pcap specifics +text2pcap_SOURCES = \ + text2pcap.c \ + text2pcap-scanner.l -mergecap_SOURCES = mergecap.c cvsversion.h +# mergecap specifics +mergecap_SOURCES = \ + mergecap.c \ + cvsversion.h -editcap_SOURCES = editcap.c +# editcap specifics +editcap_SOURCES = \ + editcap.c +# dftest specifics dftest_SOURCES = \ $(DISSECTOR_SRC) \ $(DISSECTOR_SUPPORT_SRC) \ - $(BUILT_SOURCES) \ register.c \ dftest.c +# randpkt specifics +randpkt_SOURCES = \ + randpkt.c + +# this target needed for distribution only +noinst_HEADERS = \ + $(DISSECTOR_HEADERS) \ + $(DISSECTOR_SUPPORT_HEADERS) \ + $(BUILT_HEADERS) \ + $(ETHEREAL_COMMON_HEADERS) \ + $(ethereal_HEADERS) \ + $(EXTRA_ethereal_HEADERS) + diff --git a/Makefile.nmake b/Makefile.nmake index 248014f2b8..1b411a74d5 100644 --- a/Makefile.nmake +++ b/Makefile.nmake @@ -1,7 +1,7 @@ ## Makefile for building ethereal.exe with Microsoft C and nmake ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake # -# $Id: Makefile.nmake,v 1.405 2004/02/18 20:45:54 gerald Exp $ +# $Id: Makefile.nmake,v 1.406 2004/02/22 08:30:41 ulfl Exp $ include config.nmake include <win32.mak> @@ -23,79 +23,17 @@ CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL .c.obj:: $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $< +PLATFORM_SRC = capture-wpcap.c + include Makefile.common -DISSECTOR_OBJECTS = $(DISSECTOR_SRC:.c=.obj) - -TETHEREAL_TAP_OBJECTS = $(TETHEREAL_TAP_SRC:.c=.obj) - -DISSECTOR_SUPPORT_OBJECTS = \ - adler32.obj \ - afn.obj \ - asn1.obj \ - column.obj \ - crc32.obj \ - crypt-des.obj \ - crypt-md4.obj \ - crypt-md5.obj \ - crypt-rc4.obj \ - follow.obj \ - g711.obj \ - h225-persistentdata.obj \ - in_cksum.obj \ - ipproto.obj \ - packet-dcerpc-nt.obj \ - prefs.obj \ - ptvcursor.obj \ - reassemble.obj \ - req_resp_hdrs.obj \ - t35.obj \ - tap.obj \ - util.obj \ - xdlc.obj \ - xmlstub.obj - -ETHEREAL_COMMON_OBJECTS = \ - $(DISSECTOR_SUPPORT_OBJECTS) \ - capture_stop_conditions.obj \ - capture-wpcap.obj \ - cfile.obj \ - conditions.obj \ - disabled_protos.obj \ - getopt.obj \ - pcap-util.obj \ - print.obj \ - ps.obj \ - range.obj \ - register.obj \ - ringbuffer.obj \ - timestats.obj \ - version_info.obj - -ethereal_OBJECTS = \ - $(DISSECTOR_OBJECTS) \ - $(ETHEREAL_COMMON_OBJECTS) \ - alert_box.obj \ - capture.obj \ - file.obj \ - filters.obj \ - proto_hier_stats.obj \ - summary.obj - -tethereal_OBJECTS = \ - $(DISSECTOR_OBJECTS) \ - $(ETHEREAL_COMMON_OBJECTS) \ - $(TETHEREAL_TAP_OBJECTS) \ - tethereal-tap-register.obj \ - tethereal.obj - -dftest_OBJECTS = \ - $(DISSECTOR_OBJECTS) \ - $(DISSECTOR_SUPPORT_OBJECTS) \ - dftest.obj - -randpkt_OBJECTS = \ - randpkt.obj +ethereal_OBJECTS = $(ethereal_SOURCES:.c=.obj) + +tethereal_OBJECTS = $(tethereal_SOURCES:.c=.obj) + +dftest_OBJECTS = $(dftest_SOURCES:.c=.obj) + +randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj) EXTRA_OBJECTS = \ # snprintf.obj \ |