1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
CFLAGS= -DVERSION="\"$(VERSION)\"" $(DEFINES) $(WARNFLAGS) $(DEBUGFLAGS) $(INCLUDES) -I.. $(OPT_FLAGS)
OBJS=htmlfe.o psfe.o textfe.o
TARGETS=traffic-tops traffic-totext traffic-tohtml
LFLAGS=-L..
LIBS=-lpcap -lreport $(GLIB) $(DEBUGLIBS)
all: $(OBJS) $(TARGETS)
traffic-tops: traffic-tops.o psfe.o ../libreport.a
$(CC) -o $@ traffic-tops.o psfe.o $(LFLAGS) $(LIBS) -lm
traffic-totext: traffic-totext.o textfe.o ../libreport.a
$(CC) -o $@ traffic-totext.o textfe.o $(LFLAGS) $(LIBS)
traffic-tohtml: traffic-tohtml.o htmlfe.o ../libreport.a
$(CC) -o $@ traffic-tohtml.o htmlfe.o $(LFLAGS) $(LIBS)
install:
install -m 755 -o root -g root traffic-tops $(SBINDIR)
install -m 644 -o root -g root traffic-tops.8 $(MANDIR)/man8/
install -m 755 -o root -g root traffic-totext $(SBINDIR)
install -m 644 -o root -g root traffic-totext.8 $(MANDIR)/man8/
install -m 755 -o root -g root traffic-tohtml $(SBINDIR)
install -m 644 -o root -g root traffic-tohtml.8 $(MANDIR)/man8/
install -m 755 -o root -g root traffic-togif $(SBINDIR)
install -m 644 -o root -g root traffic-togif.8 $(MANDIR)/man8/
clean:
-rm -f $(TARGETS) *.o core *.ps
|