f43a94e1f6324a622a7f2a9a2b9a2c72a98fa684
[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)diffie_hellman_test.o
19 $(BUILD_DIR)diffie_hellman_test.o :     $(TESTCASES_DIR)diffie_hellman_test.c $(TESTCASES_DIR)diffie_hellman_test.h
20                                                                         $(CC) $(CFLAGS) -c -o $@ $<
21
22 TEST_OBJS+= $(BUILD_DIR)hasher_md5_test.o
23 $(BUILD_DIR)hasher_md5_test.o :         $(TESTCASES_DIR)hasher_md5_test.c $(TESTCASES_DIR)hasher_md5_test.h
24                                                                         $(CC) $(CFLAGS) -c -o $@ $<
25
26 TEST_OBJS+= $(BUILD_DIR)event_queue_test.o
27 $(BUILD_DIR)event_queue_test.o :        $(TESTCASES_DIR)event_queue_test.c $(TESTCASES_DIR)event_queue_test.h
28                                                                         $(CC) $(CFLAGS) -c -o $@ $<
29
30 TEST_OBJS+= $(BUILD_DIR)generator_test.o
31 $(BUILD_DIR)generator_test.o :          $(TESTCASES_DIR)generator_test.c $(TESTCASES_DIR)generator_test.h
32                                                                         $(CC) $(CFLAGS) -c -o $@ $<
33
34 TEST_OBJS+= $(BUILD_DIR)ike_sa_id_test.o
35 $(BUILD_DIR)ike_sa_id_test.o :          $(TESTCASES_DIR)ike_sa_id_test.c $(TESTCASES_DIR)ike_sa_id_test.h
36                                                                         $(CC) $(CFLAGS) -c -o $@ $<
37
38 TEST_OBJS+= $(BUILD_DIR)job_queue_test.o
39 $(BUILD_DIR)job_queue_test.o :          $(TESTCASES_DIR)job_queue_test.c $(TESTCASES_DIR)job_queue_test.h
40                                                                         $(CC) $(CFLAGS) -c -o $@ $<
41
42 TEST_OBJS+= $(BUILD_DIR)parser_test.o
43 $(BUILD_DIR)parser_test.o :                     $(TESTCASES_DIR)parser_test.c $(TESTCASES_DIR)parser_test.h
44                                                                         $(CC) $(CFLAGS) -c -o $@ $<
45
46 TEST_OBJS+= $(BUILD_DIR)hasher_sha1_test.o
47 $(BUILD_DIR)hasher_sha1_test.o :        $(TESTCASES_DIR)hasher_sha1_test.c $(TESTCASES_DIR)hasher_sha1_test.h
48                                                                         $(CC) $(CFLAGS) -c -o $@ $<
49
50 TEST_OBJS+= $(BUILD_DIR)ike_sa_manager_test.o
51 $(BUILD_DIR)ike_sa_manager_test.o :     $(TESTCASES_DIR)ike_sa_manager_test.c $(TESTCASES_DIR)ike_sa_manager_test.h
52                                                                         $(CC) $(CFLAGS) -c -o $@ $<
53
54 TEST_OBJS+= $(BUILD_DIR)linked_list_test.o
55 $(BUILD_DIR)linked_list_test.o :        $(TESTCASES_DIR)linked_list_test.c $(TESTCASES_DIR)linked_list_test.h
56                                                                         $(CC) $(CFLAGS) -c -o $@ $<
57
58 TEST_OBJS+= $(BUILD_DIR)hmac_test.o
59 $(BUILD_DIR)hmac_test.o :                       $(TESTCASES_DIR)hmac_test.c $(TESTCASES_DIR)hmac_test.h
60                                                                         $(CC) $(CFLAGS) -c -o $@ $<
61                                                                                         
62 TEST_OBJS+= $(BUILD_DIR)scheduler_test.o
63 $(BUILD_DIR)scheduler_test.o :          $(TESTCASES_DIR)scheduler_test.c $(TESTCASES_DIR)scheduler_test.h
64                                                                         $(CC) $(CFLAGS) -c -o $@ $<
65                                                                         
66 TEST_OBJS+= $(BUILD_DIR)prf_plus_test.o
67 $(BUILD_DIR)prf_plus_test.o :           $(TESTCASES_DIR)prf_plus_test.c $(TESTCASES_DIR)prf_plus_test.h
68                                                                         $(CC) $(CFLAGS) -c -o $@ $<
69                                                                         
70 TEST_OBJS+= $(BUILD_DIR)send_queue_test.o
71 $(BUILD_DIR)send_queue_test.o :         $(TESTCASES_DIR)send_queue_test.c $(TESTCASES_DIR)send_queue_test.h
72                                                                         $(CC) $(CFLAGS) -c -o $@ $<
73                                                                         
74 TEST_OBJS+= $(BUILD_DIR)socket_test.o
75 $(BUILD_DIR)socket_test.o :                     $(TESTCASES_DIR)socket_test.c $(TESTCASES_DIR)socket_test.h
76                                                                         $(CC) $(CFLAGS) -c -o $@ $<
77                                                                         
78 TEST_OBJS+= $(BUILD_DIR)packet_test.o
79 $(BUILD_DIR)packet_test.o :                     $(TESTCASES_DIR)packet_test.c $(TESTCASES_DIR)packet_test.h
80                                                                         $(CC) $(CFLAGS) -c -o $@ $<
81                                                                         
82 TEST_OBJS+= $(BUILD_DIR)testcases.o
83 $(BUILD_DIR)testcases.o :                       $(TESTCASES_DIR)testcases.c
84                                                                         $(CC) $(CFLAGS) -c -o $@ $<
85                                                                         
86 TEST_OBJS+= $(BUILD_DIR)receiver_test.o
87 $(BUILD_DIR)receiver_test.o :           $(TESTCASES_DIR)receiver_test.c $(TESTCASES_DIR)receiver_test.h
88                                                                         $(CC) $(CFLAGS) -c -o $@ $<
89                                                                         
90 TEST_OBJS+= $(BUILD_DIR)ike_sa_test.o
91 $(BUILD_DIR)ike_sa_test.o :                     $(TESTCASES_DIR)ike_sa_test.c $(TESTCASES_DIR)ike_sa_test.h
92                                                                         $(CC) $(CFLAGS) -c -o $@ $<
93                                                                         
94 TEST_OBJS+= $(BUILD_DIR)sender_test.o
95 $(BUILD_DIR)sender_test.o :                     $(TESTCASES_DIR)sender_test.c $(TESTCASES_DIR)sender_test.h
96                                                                         $(CC) $(CFLAGS) -c -o $@ $<
97                                                                         
98 TEST_OBJS+= $(BUILD_DIR)thread_pool_test.o
99 $(BUILD_DIR)thread_pool_test.o :        $(TESTCASES_DIR)thread_pool_test.c $(TESTCASES_DIR)thread_pool_test.h
100                                                                         $(CC) $(CFLAGS) -c -o $@ $<
101
102