# $Id: makefile,v 1.7 2002/03/29 04:31:10 pcharles Exp $
#
#   package net.sourceforge.jpcap.client
#
PKG = net.sourceforge.jpcap.client
PKG_DIR = $(subst .,/, $(PKG))
REL = ../../../..
include ${MAKE_HOME}/os.makefile
include ${MAKE_HOME}/rules.makefile


JAVA = \
	Settings \
	CaptureViewFrame \
	CaptureViewMouseListener \
	PacketVisualizationCanvas \
	HostNameLookupThread \
	HostRenderer \
	CommRenderer \
	\
	CaptureHistory \
	CaptureConsole \
	CaptureTool \
	\
	NetworkFinder


JAVA_SOURCE = $(addsuffix .java, $(JAVA))
JAVA_CLASSES = $(addsuffix .class, $(JAVA))


all: $(JAVA_CLASSES)


# NOTE: to run the class PacketCapture, the directory where libjpcap
# is located (net/ultrametrics/jpcap?) must be included in LD_LIBRARY_PATH.
test: all
	java \
	-Dnet.sourceforge.jpcap.properties.path=${PROJECT_HOME}/properties \
	$(PKG).CaptureTool


include ${MAKE_HOME}/targets.makefile
include ${MAKE_HOME}/depend.makefile
