head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	2005.08.30.21.41.42;	author root;	state Exp;
branches;
next	1.5;

1.5
date	2004.06.18.01.34.09;	author root;	state Exp;
branches;
next	1.4;

1.4
date	2003.02.13.23.52.46;	author root;	state Exp;
branches;
next	1.3;

1.3
date	2003.02.13.22.58.43;	author root;	state Exp;
branches;
next	1.2;

1.2
date	2003.02.12.02.29.31;	author root;	state Exp;
branches;
next	1.1;

1.1
date	2003.02.12.02.28.19;	author root;	state Exp;
branches;
next	;


desc
@@


1.6
log
@*** empty log message ***
@
text
@HEADERS = sflow_api.h sflow.h Makefile

#INCLUDEDIRS = -I. -I/opt/libpcap/include
INCLUDEDIRS = -I. -I/usr/include/pcap

# OPT = -O2 -mcpu=i686 -march=i686 -fno-strength-reduce
OPT = -g -ggdb

LDOPT =

CFLAGS = -D_GNU_SOURCE -DSTDC_HEADERS $(INCLUDEDIRS) $(OPT) -W
# CFLAGS = -D_GNU_SOURCE -DSTDC_HEADERS $(INCLUDEDIRS) $(OPT) -W -DSFL_USE_32BIT_INDEX

#CC = gcc
CC = g++

#PCAPLIB = /opt/libpcap/lib/libpcap.a
PCAPLIB = -lpcap

OBJS = sflow_agent.o sflow_sampler.o sflow_poller.o sflow_receiver.o sflsp.o

PROGRAM = sflsp

all: $(PROGRAM)

sflsp: $(OBJS) $(PCAPLIB)
	$(CC) $(CFLAGS) -o $@@ $(OBJS) $(PCAPLIB)

.C.o: $(HEADERS)
	$(CC) $(CFLAGS) -c $*.C

clean:
	rm -f *.o $(PROGRAM)

# dependencies
sflow_agent.o: sflow_agent.C $(HEADERS)
sflow_sampler.o: sflow_sampler.C $(HEADERS)
sflow_poller.o: sflow_poller.C $(HEADERS)
sflow_receiver.o: sflow_receiver.C $(HEADERS)
sflsp.o: sflsp.C $(HEADERS)
@


1.5
log
@*** empty log message ***
@
text
@d14 2
a15 1
CC = gcc
@


1.4
log
@*** empty log message ***
@
text
@d1 1
a1 1
HEADERS = sflow_api.h sflow.h
d12 1
d33 7
@


1.3
log
@*** empty log message ***
@
text
@d18 1
a18 1
OBJS = sflow_agent.o sflow_sampler.o sflow_receiver.o sflsp.o
@


1.2
log
@*** empty log message ***
@
text
@d18 1
a18 1
OBJS = sflow_agent.o sflow_dataSource.o sflow_sampler.o sflow_target.o sflsp.o
@


1.1
log
@Initial revision
@
text
@d31 1
a31 1
	rm -f *.o
@
