- tested sa with traffic selectors
[strongswan.git] / Source / charon / testcases / Makefile.testcases
1 # Copyright (C) 2005 Jan Hutter, Martin Willi
2 # Hochschule fuer Technik Rapperswil
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 # for more details.
13 #
14
15 TESTCASES_DIR= $(MAIN_DIR)testcases/
16
17
18 TEST_OBJS+= $(BUILD_DIR)aes_cbc_crypter_test.o
19 $(BUILD_DIR)aes_cbc_crypter_test.o :    $(TESTCASES_DIR)aes_cbc_crypter_test.c $(TESTCASES_DIR)aes_cbc_crypter_test.h
20                                                                         $(CC) $(CFLAGS) -c -o $@ $<
21
22
23 TEST_OBJS+= $(BUILD_DIR)diffie_hellman_test.o
24 $(BUILD_DIR)diffie_hellman_test.o :     $(TESTCASES_DIR)diffie_hellman_test.c $(TESTCASES_DIR)diffie_hellman_test.h
25                                                                         $(CC) $(CFLAGS) -c -o $@ $<
26
27 TEST_OBJS+= $(BUILD_DIR)event_queue_test.o
28 $(BUILD_DIR)event_queue_test.o :        $(TESTCASES_DIR)event_queue_test.c $(TESTCASES_DIR)event_queue_test.h
29                                                                         $(CC) $(CFLAGS) -c -o $@ $<
30
31 TEST_OBJS+= $(BUILD_DIR)generator_test.o
32 $(BUILD_DIR)generator_test.o :          $(TESTCASES_DIR)generator_test.c $(TESTCASES_DIR)generator_test.h
33                                                                         $(CC) $(CFLAGS) -c -o $@ $<
34
35 TEST_OBJS+= $(BUILD_DIR)ike_sa_id_test.o
36 $(BUILD_DIR)ike_sa_id_test.o :          $(TESTCASES_DIR)ike_sa_id_test.c $(TESTCASES_DIR)ike_sa_id_test.h
37                                                                         $(CC) $(CFLAGS) -c -o $@ $<
38
39 TEST_OBJS+= $(BUILD_DIR)job_queue_test.o
40 $(BUILD_DIR)job_queue_test.o :          $(TESTCASES_DIR)job_queue_test.c $(TESTCASES_DIR)job_queue_test.h
41                                                                         $(CC) $(CFLAGS) -c -o $@ $<
42
43 TEST_OBJS+= $(BUILD_DIR)parser_test.o
44 $(BUILD_DIR)parser_test.o :                     $(TESTCASES_DIR)parser_test.c $(TESTCASES_DIR)parser_test.h
45                                                                         $(CC) $(CFLAGS) -c -o $@ $<
46
47 TEST_OBJS+= $(BUILD_DIR)hasher_test.o
48 $(BUILD_DIR)hasher_test.o :                     $(TESTCASES_DIR)hasher_test.c $(TESTCASES_DIR)hasher_test.h
49                                                                         $(CC) $(CFLAGS) -c -o $@ $<
50
51 TEST_OBJS+= $(BUILD_DIR)ike_sa_manager_test.o
52 $(BUILD_DIR)ike_sa_manager_test.o :     $(TESTCASES_DIR)ike_sa_manager_test.c $(TESTCASES_DIR)ike_sa_manager_test.h
53                                                                         $(CC) $(CFLAGS) -c -o $@ $<
54
55 TEST_OBJS+= $(BUILD_DIR)linked_list_test.o
56 $(BUILD_DIR)linked_list_test.o :        $(TESTCASES_DIR)linked_list_test.c $(TESTCASES_DIR)linked_list_test.h
57                                                                         $(CC) $(CFLAGS) -c -o $@ $<
58
59 TEST_OBJS+= $(BUILD_DIR)hmac_test.o
60 $(BUILD_DIR)hmac_test.o :                       $(TESTCASES_DIR)hmac_test.c $(TESTCASES_DIR)hmac_test.h
61                                                                         $(CC) $(CFLAGS) -c -o $@ $<
62
63 TEST_OBJS+= $(BUILD_DIR)hmac_signer_test.o
64 $(BUILD_DIR)hmac_signer_test.o :                $(TESTCASES_DIR)hmac_signer_test.c $(TESTCASES_DIR)hmac_signer_test.h
65                                                                         $(CC) $(CFLAGS) -c -o $@ $<
66                                                                                         
67 TEST_OBJS+= $(BUILD_DIR)scheduler_test.o
68 $(BUILD_DIR)scheduler_test.o :          $(TESTCASES_DIR)scheduler_test.c $(TESTCASES_DIR)scheduler_test.h
69                                                                         $(CC) $(CFLAGS) -c -o $@ $<
70                                                                         
71 TEST_OBJS+= $(BUILD_DIR)prf_plus_test.o
72 $(BUILD_DIR)prf_plus_test.o :           $(TESTCASES_DIR)prf_plus_test.c $(TESTCASES_DIR)prf_plus_test.h
73                                                                         $(CC) $(CFLAGS) -c -o $@ $<
74                                                                         
75 TEST_OBJS+= $(BUILD_DIR)send_queue_test.o
76 $(BUILD_DIR)send_queue_test.o :         $(TESTCASES_DIR)send_queue_test.c $(TESTCASES_DIR)send_queue_test.h
77                                                                         $(CC) $(CFLAGS) -c -o $@ $<
78                                                                         
79 TEST_OBJS+= $(BUILD_DIR)socket_test.o
80 $(BUILD_DIR)socket_test.o :                     $(TESTCASES_DIR)socket_test.c $(TESTCASES_DIR)socket_test.h
81                                                                         $(CC) $(CFLAGS) -c -o $@ $<
82                                                                         
83 TEST_OBJS+= $(BUILD_DIR)packet_test.o
84 $(BUILD_DIR)packet_test.o :                     $(TESTCASES_DIR)packet_test.c $(TESTCASES_DIR)packet_test.h
85                                                                         $(CC) $(CFLAGS) -c -o $@ $<
86                                                                         
87 TEST_OBJS+= $(BUILD_DIR)testcases.o
88 $(BUILD_DIR)testcases.o :                       $(TESTCASES_DIR)testcases.c
89                                                                         $(CC) $(CFLAGS) -c -o $@ $<
90                                                                         
91 TEST_OBJS+= $(BUILD_DIR)receiver_test.o
92 $(BUILD_DIR)receiver_test.o :           $(TESTCASES_DIR)receiver_test.c $(TESTCASES_DIR)receiver_test.h
93                                                                         $(CC) $(CFLAGS) -c -o $@ $<
94                                                                         
95 TEST_OBJS+= $(BUILD_DIR)ike_sa_test.o
96 $(BUILD_DIR)ike_sa_test.o :                     $(TESTCASES_DIR)ike_sa_test.c $(TESTCASES_DIR)ike_sa_test.h
97                                                                         $(CC) $(CFLAGS) -c -o $@ $<
98                                                                         
99 TEST_OBJS+= $(BUILD_DIR)sender_test.o
100 $(BUILD_DIR)sender_test.o :                     $(TESTCASES_DIR)sender_test.c $(TESTCASES_DIR)sender_test.h
101                                                                         $(CC) $(CFLAGS) -c -o $@ $<
102                                                                         
103 TEST_OBJS+= $(BUILD_DIR)thread_pool_test.o
104 $(BUILD_DIR)thread_pool_test.o :        $(TESTCASES_DIR)thread_pool_test.c $(TESTCASES_DIR)thread_pool_test.h
105                                                                         $(CC) $(CFLAGS) -c -o $@ $<
106                                                                         
107 TEST_OBJS+= $(BUILD_DIR)encryption_payload_test.o
108 $(BUILD_DIR)encryption_payload_test.o : $(TESTCASES_DIR)encryption_payload_test.c $(TESTCASES_DIR)encryption_payload_test.h
109                                                                         $(CC) $(CFLAGS) -c -o $@ $<
110
111 TEST_OBJS+= $(BUILD_DIR)init_config_test.o
112 $(BUILD_DIR)init_config_test.o :        $(TESTCASES_DIR)init_config_test.c $(TESTCASES_DIR)init_config_test.h
113                                                                         $(CC) $(CFLAGS) -c -o $@ $<
114
115 TEST_OBJS+= $(BUILD_DIR)sa_config_test.o
116 $(BUILD_DIR)sa_config_test.o :          $(TESTCASES_DIR)sa_config_test.c $(TESTCASES_DIR)sa_config_test.h
117                                                                         $(CC) $(CFLAGS) -c -o $@ $<