1
### ChangeLog #######################################
4
# $Date: 2003/06/25 14:05:36 $
6
### TODO ############################################
8
# - libinet6test and conntest-client-gai depend on
9
# libinet6 which should compiled automatically if
10
# either test application is being compiled
11
# - the rules for compilation are non-uniform: LINK should be used
12
# instead of CC and rules should not be named "foo.o:", just "foo"
13
# - consider replacing Makefile with autoconf and friends
15
####### Compiler, tools and options #################
17
HIPLMODULESRCDIR = ../linux/net/ipv6/hip
18
HIPLINUXINCPATH = -I../linux/include -I $(HIPLMODULESRCDIR)
20
INCPATH = $(HIPLINUXINCPATH) -I../libinet6/include -I../hipd -I.
23
CFLAGS = -Wall -O2 -g -DCONFIG_HIP_DEBUG $(INCPATH)
29
####### Implicit rules ###############################
31
# note: .c is not included in the induction rule,
32
# because they are included by default and cpp's
33
# won't compile otherwise
38
$(CC) -c $(CFLAGS) $(HIPLINUXINCPATH) $(INCPATH) -o $@ $<
40
####### Build rules ###############################
42
#TARGETS = hiplisthi.o devfstest.o # does not compile -miika
43
TARGETS += checksum conntest-client conntest-client-gai conntest-server
44
TARGETS += crtest dh_openssl_test dsa_openssl cookietest
45
TARGETS += ipv6bindtest ipv6conntest
46
TARGETS += libinet6test
47
TARGETS += builder_tester
48
TARGETS += unit unittest
49
#TARGETS += dsa_file dsa_hit # does not compile -miika
53
conntest-client: conntest-client.o
54
$(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o conntest-client conntest-client.o
56
conntest-client-gai: conntest-client-gai.o
57
$(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -I../libinet6/include -o conntest-client-gai conntest-client-gai.o ../libinet6/libinet6.a
59
conntest-server: conntest-server.o
60
$(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o conntest-server conntest-server.o
62
ipv6bindtest: ipv6bindtest.o
63
$(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o ipv6bindtest ipv6bindtest.o
65
ipv6conntest: ipv6conntest.o
66
$(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o ipv6conntest ipv6conntest.o
69
$(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o checksum checksum.o
71
dh_openssl_test: dh_openssl_test.o ../hipd/debug.o ../hipd/crypto.o
72
$(CC) $(CFLAGS) -DDEBUG -o dh_openssl_test dh_openssl_test.o \
73
../hipd/debug.c ../hipd/crypto.c -lcrypto
75
dsa_openssl: dsa_openssl.o ../hipd/debug.o ../hipd/crypto.o
76
$(CC) $(CFLAGS) -DDEBUG -o dsa_openssl dsa_openssl.o ../hipd/debug.c ../hipd/crypto.c -lcrypto
78
dsa_file: dsa_file.o ../hipd/debug.o ../hipd/crypto.o
79
$(CC) $(CFLAGS) -DDEBUG -o dsa_file dsa_file.o ../hipd/debug.c ../hipd/crypto.c -lcrypto
81
dsa_hit: dsa_hit.o ../hipd/debug.o ../hipd/crypto.o
82
$(CC) $(CFLAGS) -DDEBUG -o dsa_hit dsa_hit.o ../hipd/debug.c ../hipd/crypto.c -lcrypto
85
$(CC) $(CFLAGS) -DDEBUG -c hiplisthi.c
87
devfstest.o: devfstest.c
88
$(CC) $(CFLAGS) -DDEBUG -c devfstest.c
90
conntest-client-hip: conntest-client-hip.o
91
$(CC) $(CFLAGS) -DDEBUG $(INCPATH) -o conntest-client-hip conntest-client-hip.c
93
crtest: crtest.o ../hipd/crypto.o
94
(cd ../hipd && make crypto.o)
95
$(CC) $(CFLAGS) -Wno-unused -o crtest crtest.c ../hipd/crypto.c ../hipd/debug.c -lcrypto
97
cookietest: cookietest.o ../hipd/crypto.o
98
(cd ../hipd && make crypto.o)
99
$(CC) $(CFLAGS) -Wno-unused -o cookietest cookietest.c ../hipd/crypto.c ../hipd/debug.c -lcrypto
101
libinet6test: libinet6test.o ../libinet6/libinet6.a
102
$(CC) $(CFLAGS) -Wno-unused -o libinet6test libinet6test.c ../libinet6/libinet6.a
104
builder_tester: builder_tester.o
105
$(CC) $(CFLAGS) $(LIBPATH) $(LIBS) -o builder_tester builder_tester.o ../hipd/debug.o
107
unit: $(HIPLMODULESRCDIR)/unit.c
108
$(CC) $(CFLAGS) $(INCPATH) -c ../linux/net/ipv6/hip/unit.c -o unit.o
110
unittest: unit unittest.o
111
$(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o unittest unittest.o \
120
####### Header file dependencies ###########################
123
unit: $(HIPLMODULESRCDIR)/unit.h
124
unittest: unit unittest.h
b'\\ No newline at end of file'