Makefile 5.36 KB
Newer Older
Arne Øslebø's avatar
Arne Øslebø committed
1
2
include ../Makefile.in

's avatar
committed
3
MAKE_ALL= test_bpf_filter test_get_info test_byte_counter test_close_flow test_create_flow test_get_next_pkt test_mapi_apply_function test_mapi_connect test_mapi_read_results test_off_bpf_filter test_off_pkt_counter test_off_res2file test_off_stats test_off_str_search test_off_to_buffer test_pkt_counter test_sample_pkts test_str_search test_tcp_offline_flow test_to_buffer test_error test_for_error_cases test_loop test_get_flow_info test_mapi_get_function_info test_to_file test_off_ethereal_reti test_off_ethereal_rets test_video test_comboflow test_packet_read test_cooking
Arne Øslebø's avatar
Arne Øslebø committed
4
5
6
7
8

CFLAGS=-g -O2 $(C_WARNINGS)

all:	$(MAKE_ALL)

's avatar
committed
9
10
11
test_comboflow:		 ../mapi.so test_comboflow.c ../mapi.h
	$(CC) $(CFLAGS) -DDEBUG -o test_comboflow test_comboflow.c ../mapi.so -lpcap -lpthread

's avatar
committed
12
13
14
test_get_info:		 ../mapi.so test_get_info.c ../mapi.h
	$(CC) $(CFLAGS) -DDEBUG -o test_get_info test_get_info.c ../mapi.so -lpcap -lpthread

's avatar
committed
15
16
17
test_video:		 ../mapi.so test_video.c ../mapi.h
	$(CC) $(CFLAGS) -DDEBUG -o test_video test_video.c ../mapi.so -lpcap -lpthread

Arne Øslebø's avatar
Arne Øslebø committed
18
19
20
test_to_file:	../mapi.so test_to_file.c ../mapi.h
	$(CC) $(CFLAGS) -o test_to_file test_to_file.c ../mapi.so -lpcap -lpthread

21
22
23
24
25
26
test_off_ethereal_reti:	../mapi.so test_off_ethereal_reti.c ../mapi.h
	$(CC) $(CFLAGS) -o test_off_ethereal_reti test_off_ethereal_reti.c ../mapi.so -lpcap -lpthread

test_off_ethereal_rets:	../mapi.so test_off_ethereal_rets.c ../mapi.h
	$(CC) $(CFLAGS) -o test_off_ethereal_rets test_off_ethereal_rets.c ../mapi.so -lpcap -lpthread

Arne Øslebø's avatar
Arne Øslebø committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
test_bpf_filter:	../mapi.so test_bpf_filter.c ../mapi.h
	$(CC) $(CFLAGS) -o test_bpf_filter test_bpf_filter.c ../mapi.so -lpcap -lpthread 

test_byte_counter:	../mapi.so test_byte_counter.c ../mapi.h
	$(CC) $(CFLAGS) -o test_byte_counter test_byte_counter.c ../mapi.so -lpcap -lpthread

test_close_flow:	../mapi.so test_close_flow.c ../mapi.h
	$(CC) $(CFLAGS) -o test_close_flow test_close_flow.c ../mapi.so -lpcap -lpthread

test_create_flow:	../mapi.so test_create_flow.c ../mapi.h
	$(CC) $(CFLAGS) -o test_create_flow test_create_flow.c ../mapi.so -lpcap -lpthread

test_error:	../mapi.so test_error.c ../mapi.h
	$(CC) $(CFLAGS) -o test_error test_error.c ../mapi.so -lpcap -lpthread

test_get_next_pkt:	../mapi.so test_get_next_pkt.c ../mapi.h
	$(CC) $(CFLAGS) -o test_get_next_pkt test_get_next_pkt.c ../mapi.so -lpcap -lpthread

test_mapi_apply_function:	../mapi.so test_mapi_apply_function.c ../mapi.h
	$(CC) $(CFLAGS) -o test_mapi_apply_function test_mapi_apply_function.c ../mapi.so -lpcap -lpthread

test_mapi_connect:	../mapi.so test_mapi_connect.c ../mapi.h
	$(CC) $(CFLAGS) -o test_mapi_connect test_mapi_connect.c ../mapi.so -lpcap -lpthread

test_mapi_read_results:	../mapi.so test_mapi_read_results.c ../mapi.h
	$(CC) $(CFLAGS) -o test_mapi_read_results test_mapi_read_results.c ../mapi.so -lpcap -lpthread

test_off_bpf_filter:	../mapi.so test_off_bpf_filter.c ../mapi.h
	$(CC) $(CFLAGS) -o test_off_bpf_filter test_off_bpf_filter.c ../mapi.so -lpcap -lpthread

test_off_pkt_counter:	../mapi.so test_off_pkt_counter.c ../mapi.h
	$(CC) $(CFLAGS) -o test_off_pkt_counter test_off_pkt_counter.c ../mapi.so -lpcap -lpthread

test_off_res2file:	../mapi.so test_off_res2file.c ../mapi.h ../stdlib/res2file.h ../stdlib/pktinfo.h
	$(CC) $(CFLAGS) -o test_off_res2file test_off_res2file.c ../mapi.so -lpcap -lpthread

test_off_stats:	../mapi.so test_off_stats.c ../mapi.h ../stdlib/stats.h ../stdlib/pktinfo.h
	$(CC) $(CFLAGS) -o test_off_stats test_off_stats.c ../mapi.so -lpcap -lpthread


test_off_str_search:	../mapi.so test_off_str_search.c ../mapi.h
	$(CC) $(CFLAGS) -o test_off_str_search test_off_str_search.c ../mapi.so -lpcap -lpthread 

test_off_to_buffer:	../mapi.so test_off_to_buffer.c util.h ../mapi.h
	$(CC) $(CFLAGS) -o test_off_to_buffer test_off_to_buffer.c ../mapi.so -lpcap -lpthread

test_pkt_counter:	../mapi.so test_pkt_counter.c ../mapi.h
	$(CC) $(CFLAGS) -o test_pkt_counter test_pkt_counter.c ../mapi.so -lpcap -lpthread

test_sample_pkts:	../mapi.so test_sample_pkts.c ../mapi.h ../stdlib/sample.h
	$(CC) $(CFLAGS) -o test_sample_pkts test_sample_pkts.c ../mapi.so -lpcap -lpthread

test_str_search:	../mapi.so test_str_search.c ../mapi.h
	$(CC) $(CFLAGS) -o test_str_search test_str_search.c ../mapi.so -lpcap -lpthread

test_tcp_offline_flow:	../mapi.so test_tcp_offline_flow.c ../mapi.h
	$(CC) $(CFLAGS) -o test_tcp_offline_flow test_tcp_offline_flow.c ../mapi.so -lpcap -lpthread

test_to_buffer:	../mapi.so test_to_buffer.c ../mapi.h
	$(CC) $(CFLAGS) -o test_to_buffer test_to_buffer.c ../mapi.so -lpcap -lpthread

test_for_error_cases:	../mapi.so test_for_error_cases.c ../mapi.h
	$(CC) $(CFLAGS) -o test_for_error_cases test_for_error_cases.c ../mapi.so -lpcap -lpthread

test_loop:	../mapi.so test_loop.c ../mapi.h
	$(CC) $(CFLAGS) -o test_loop test_loop.c ../mapi.so -lpcap -lpthread

test_get_flow_info:	../mapi.so test_get_flow_info.c ../mapi.h
	$(CC) $(CFLAGS) -o test_get_flow_info test_get_flow_info.c ../mapi.so -lpcap -lpthread

test_mapi_get_function_info:	../mapi.so test_mapi_get_function_info.c ../mapi.h
	$(CC) $(CFLAGS) -o test_mapi_get_function_info test_mapi_get_function_info.c ../mapi.so -lpcap -lpthread

's avatar
committed
100
101
102
test_packet_read:	../mapi.so test_packet_read.c ../mapi.h
	$(CC) $(CFLAGS) -o test_packet_read test_packet_read.c ../mapi.so -lpcap -lpthread

's avatar
committed
103
104
test_cooking:	../mapi.so test_cooking.c ../mapi.h
	$(CC) $(CFLAGS) -o test_cooking test_cooking.c ../mapi.so -lpcap -lpthread
Arne Øslebø's avatar
Arne Øslebø committed
105
106
107

clean:	
	rm -rf $(MAKE_ALL)