mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 08:50:18 +00:00
* CI fixes * some build systems do not like that (e.g. OpenWrt) * fixed some rrdtool related build warnings/errors Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
29 lines
581 B
Makefile
29 lines
581 B
Makefile
CC=@CC@
|
|
INC=-I ../src/include -I/usr/local/include
|
|
LIBDPI=../src/lib/libndpi.a
|
|
CFLAGS+=@NDPI_CFLAGS@
|
|
LDFLAGS+=@NDPI_LDFLAGS@
|
|
LIB=$(LIBDPI) -lm @ADDITIONAL_LIBS@ @LIBS@
|
|
|
|
TOOLS=metric_anomaly
|
|
|
|
all: $(TOOLS)
|
|
|
|
metric_anomaly: metric_anomaly.c Makefile $(LIBDPI)
|
|
$(CC) $(CFLAGS) $(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 ""
|
|
|
|
check:
|
|
true # nothing to do here
|