This fixes some build/test issues resulting when using tarballs. * nDPI uses autotools (especially autoconf) in a wrong way, see #1163 Signed-off-by: lns <matzeton@googlemail.com>
26 lines
514 B
Makefile
26 lines
514 B
Makefile
CC=@CC@
|
|
INC=-I ../src/include -I/usr/local/include
|
|
LIBDPI=../src/lib/libndpi.a
|
|
LDFLAGS=@LDFLAGS@
|
|
LIB=$(LIBDPI) -lrrd -lm @LIBS@ @ADDITIONAL_LIBS@
|
|
|
|
TOOLS=metric_anomaly
|
|
|
|
all: $(TOOLS)
|
|
|
|
metric_anomaly: metric_anomaly.c Makefile $(LIBDPI)
|
|
$(CC) $(CPPFLAGS) -g $(INC) $(LDFLAGS) metric_anomaly.c -o metric_anomaly $(LIB)
|
|
|
|
clean:
|
|
/bin/rm -f *.o $(TOOLS) *~
|
|
|
|
distclean: clean
|
|
/bin/rm -f Makefile
|
|
|
|
distdir:
|
|
find . -type f -name '*.c' \
|
|
-o -name '*.txt' | xargs -I'{}' cp '{}' '$(distdir)/{}'
|
|
|
|
install:
|
|
@echo -n ""
|