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>
29 lines
658 B
Makefile
29 lines
658 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@ @LIBRRD@
|
|
|
|
TOOLS=rrd_anomaly rrd_similarity
|
|
|
|
all: $(TOOLS)
|
|
|
|
rrd_anomaly: rrd_anomaly.c Makefile $(LIBDPI)
|
|
$(CC) $(CPPFLAGS) -g $(INC) $(LDFLAGS) rrd_anomaly.c -o rrd_anomaly $(LIB)
|
|
|
|
rrd_similarity: rrd_similarity.c Makefile $(LIBDPI)
|
|
$(CC) $(CPPFLAGS) -g $(INC) $(LDFLAGS) rrd_similarity.c -o rrd_similarity $(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 ""
|