~henrik-ziegeldorf/hipl/pisa

« back to all changes in this revision

Viewing changes to test/Makefile.old

  • Committer: Kristian Slavov
  • Date: 2004-02-11 16:00:58 UTC
  • Revision ID: Arch-1:hipl@gaijin.tky.hut.fi--hipl%hipl--main--2.6--patch-4
Added the rest of the HIPL components to the source tree. Does not compile.
The rest of the components were taken from hipl--main--1.0--patch-40.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
### ChangeLog #######################################
 
2
#
 
3
# $Revision: 1.1 $
 
4
# $Date: 2003/06/25 14:05:36 $
 
5
#
 
6
### TODO ############################################
 
7
#
 
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
 
14
#
 
15
####### Compiler, tools and options #################
 
16
 
 
17
HIPLMODULESRCDIR = ../linux/net/ipv6/hip
 
18
HIPLINUXINCPATH = -I../linux/include -I $(HIPLMODULESRCDIR)
 
19
 
 
20
INCPATH  = $(HIPLINUXINCPATH) -I../libinet6/include -I../hipd -I.
 
21
 
 
22
CC       = gcc
 
23
CFLAGS   = -Wall -O2 -g -DCONFIG_HIP_DEBUG $(INCPATH)
 
24
LDFLAGS  = -g
 
25
LINK     = gcc
 
26
LIBPATH  = 
 
27
LIBS     = 
 
28
 
 
29
####### Implicit rules ###############################
 
30
 
 
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
 
34
 
 
35
.SUFFIXES: .c
 
36
 
 
37
%.o: %.c
 
38
        $(CC) -c $(CFLAGS) $(HIPLINUXINCPATH) $(INCPATH) -o $@ $<
 
39
 
 
40
####### Build rules    ###############################
 
41
 
 
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
 
50
 
 
51
all: $(TARGETS)
 
52
 
 
53
conntest-client: conntest-client.o
 
54
        $(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o conntest-client conntest-client.o
 
55
 
 
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
 
58
 
 
59
conntest-server: conntest-server.o
 
60
        $(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o conntest-server conntest-server.o
 
61
 
 
62
ipv6bindtest: ipv6bindtest.o
 
63
        $(LINK) $(LDFLAGS)  $(LIBPATH) $(LIBS) -o ipv6bindtest ipv6bindtest.o
 
64
 
 
65
ipv6conntest: ipv6conntest.o
 
66
        $(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o ipv6conntest ipv6conntest.o
 
67
 
 
68
checksum: checksum.o
 
69
        $(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o checksum checksum.o
 
70
 
 
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
 
74
 
 
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
 
77
 
 
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
 
80
 
 
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
 
83
 
 
84
hiplisthi.o: 
 
85
        $(CC) $(CFLAGS) -DDEBUG -c hiplisthi.c
 
86
 
 
87
devfstest.o: devfstest.c
 
88
        $(CC) $(CFLAGS) -DDEBUG -c devfstest.c
 
89
 
 
90
conntest-client-hip: conntest-client-hip.o
 
91
        $(CC) $(CFLAGS) -DDEBUG $(INCPATH) -o conntest-client-hip conntest-client-hip.c
 
92
 
 
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
 
96
 
 
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
 
100
 
 
101
libinet6test: libinet6test.o ../libinet6/libinet6.a
 
102
        $(CC) $(CFLAGS) -Wno-unused -o libinet6test libinet6test.c ../libinet6/libinet6.a
 
103
 
 
104
builder_tester: builder_tester.o
 
105
        $(CC) $(CFLAGS) $(LIBPATH) $(LIBS) -o builder_tester  builder_tester.o ../hipd/debug.o
 
106
 
 
107
unit: $(HIPLMODULESRCDIR)/unit.c
 
108
        $(CC) $(CFLAGS) $(INCPATH) -c ../linux/net/ipv6/hip/unit.c -o unit.o
 
109
 
 
110
unittest: unit unittest.o
 
111
        $(LINK) $(LDFLAGS) $(LIBPATH) $(LIBS) -o unittest unittest.o \
 
112
                unit.o
 
113
 
 
114
.PHONY: clean
 
115
 
 
116
clean:
 
117
        -rm -f *.o
 
118
        -rm -f $(TARGETS)
 
119
 
 
120
####### Header file dependencies ###########################
 
121
 
 
122
checksum: checksum.h
 
123
unit: $(HIPLMODULESRCDIR)/unit.h
 
124
unittest: unit unittest.h 
 
 
b'\\ No newline at end of file'