- take libpcap from configure information. - clean up distclean. Signed-off-by: Vitaliy Ivanov <vitaliyi@interfacemasters.com>
29 lines
547 B
Makefile
29 lines
547 B
Makefile
CC=@CC@
|
|
CFLAGS=-g -I../src/include @CFLAGS@
|
|
LIBNDPI=../src/lib/libndpi.a
|
|
LDFLAGS=$(LIBNDPI) @PCAP_LIB@ -lpthread @LDFLAGS@
|
|
OBJS=ndpiReader.o ndpi_util.o
|
|
PREFIX?=/usr/local
|
|
|
|
all: ndpiReader @DPDK_TARGET@
|
|
|
|
ndpiReader: $(OBJS) $(LIBNDPI)
|
|
$(CXX) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS)
|
|
|
|
%.o: %.c $(HEADERS) Makefile
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
install: ndpiReader
|
|
cp ndpiReader $(DESTDIR)$(PREFIX)/bin/
|
|
|
|
dpdk:
|
|
make -f Makefile.dpdk
|
|
|
|
clean:
|
|
/bin/rm -f *.o ndpiReader
|
|
/bin/rm -rf build
|
|
|
|
distclean: clean
|
|
/bin/rm -f Makefile.dpdk
|
|
/bin/rm -f Makefile
|