CFLAGS= -DVERSION="\"$(VERSION)\"" $(DEFINES) $(WARNFLAGS) $(DEBUGFLAGS) $(INCLUDES) -I.. $(OPT_FLAGS)
OBJS=
TARGETS=traffic-resolve traffic-exclude
LFLAGS=-L..
LIBS=-lreport $(GLIB) $(DEBUGLIBS)

all: $(OBJS) $(TARGETS)

traffic-exclude: traffic-exclude.o ../libreport.a
	$(CC) -o $@ traffic-exclude.o $(LFLAGS) $(LIBS)

traffic-resolve: traffic-resolve.o ../libreport.a
	$(CC) -o $@ traffic-resolve.o $(LFLAGS) $(LIBS)

install:
	install -m 755 -o root -g root traffic-resolve $(SBINDIR)
	install -m 644 -o root -g root traffic-resolve.8 $(MANDIR)/man8/
	install -m 755 -o root -g root traffic-exclude $(SBINDIR)
	install -m 644 -o root -g root traffic-exclude.8 $(MANDIR)/man8/

clean:
	-rm -f $(TARGETS) *.o core *.ps
