* Some small auto{conf,make} improvements
Signed-off-by: lns <matzeton@googlemail.com>
29 lines
543 B
Makefile
29 lines
543 B
Makefile
CC=@CC@
|
|
INC=-I ../src/include -I/usr/local/include
|
|
LIBDPI=../src/lib/libndpi.a
|
|
LDFLAGS=@LDFLAGS@
|
|
LIB=$(LIBDPI) -lm @ADDITIONAL_LIBS@ @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 ""
|
|
|
|
check:
|
|
true # nothing to do here
|