File: Makefile.in

package info (click to toggle)
ndpi 4.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164,552 kB
  • sloc: ansic: 58,816; cpp: 14,558; python: 2,079; makefile: 683; sh: 287; objc: 70; ruby: 28; exp: 4
file content (39 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
INC=-I ../../src/include/
LIB=../../src/lib/libndpi.a @ADDITIONAL_LIBS@

TOOLS=substringsearch patriciasearch
TESTS=substring_test patricia_test


all: $(TESTS)

tools: $(TOOLS)


substringsearch: substringsearch.c Makefile
	$(CC) -O2 $(INC) substringsearch.c -o substringsearch $(LIB)

substring_test: substringsearch top-1m.csv
	./substringsearch

#

patriciasearch: patriciasearch.c Makefile
	$(CC) -O2 $(INC) patriciasearch.c -o patriciasearch $(LIB)

patricia_test: patriciasearch blacklist-ip.txt
	./patriciasearch


# Alexa Top 1 Million
top-1m.csv:
	wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
	unzip top-1m.csv.zip

blacklist-ip.txt:
	wget http://blacklists.ntop.org/blacklist-ip.txt

clean:
	/bin/rm -f *zip top-1m.csv blacklist-ip.txt