summaryrefslogtreecommitdiff
path: root/unik-olsrd/unik-olsrd-0.4.5/unik-olsrd-0.4.5_Makefiles.diff
blob: 19e3a41bc113ad70e2d5cffb9d56e7d074812a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
diff -Nurb unik-olsrd-0.4.5/Makefile unik-olsrd-0.4.5.mod/Makefile
--- unik-olsrd-0.4.5/Makefile	2004-06-29 12:17:40.000000000 +0200
+++ unik-olsrd-0.4.5.mod/Makefile	2004-08-03 14:44:45.935335232 +0200
@@ -5,7 +5,7 @@
 INSTALL_PREFIX ?=
 
 
-# Keep OS spesific files last
+# Keep OS specific files last
 
 SRCS=	src/interface.c src/parser.c src/build_msg.c \
 	src/scheduler.c src/main.c src/two_hop_neighbor_table.c \
@@ -48,18 +48,34 @@
 	src/linux/net.h src/kernel_routes.h \
 	src/linux/link_layer.h
 
-all:	olsrd
+all:	olsrd libs
 
 olsrd:	$(OBJS)
 	$(CC) $(LIBS) -o bin/$@ $(OBJS)
 
-clean:
+libs: 
+	for i in lib/*; do \
+		$(MAKE) -C $$i; \
+	done; 
+
+clean: clean_libs
 	rm -f $(OBJS)
+	rm -f bin/olsrd
+	
+clean_libs: 
+	for i in lib/*; do \
+		$(MAKE) -C $$i clean; \
+	done; 
 
 install_bin:
 	install -D -m 755 bin/olsrd $(INSTALL_PREFIX)/usr/sbin/olsrd
 
-install: install_bin
+install_libs:
+	for i in lib/*; do \
+		$(MAKE) -C $$i LIBDIR=$(INSTALL_PREFIX)/usr/lib install; \
+	done; 	
+ 
+install: install_bin install_libs
 	@echo olsrd uses the configfile $(INSTALL_PREFIX)/etc/olsr.conf
 	@echo a default configfile. A sample configfile
 	@echo can be installed
diff -Nurb unik-olsrd-0.4.5/lib/dot_draw/Makefile unik-olsrd-0.4.5.mod/lib/dot_draw/Makefile
--- unik-olsrd-0.4.5/lib/dot_draw/Makefile	2004-06-29 12:17:02.000000000 +0200
+++ unik-olsrd-0.4.5.mod/lib/dot_draw/Makefile	2004-08-03 14:48:22.986338464 +0200
@@ -5,12 +5,12 @@
 
 #Alter this file to fit your needs
 
-CC=gcc
-NAME=olsrd_dot_draw.so.0.1
-LIBDIR=/usr/lib
+CC ?= gcc
+NAME = olsrd_dot_draw.so.0.1
+LIBDIR ?= $(INSTALL_PREFIX)/usr/lib
 # -fPIC creates position independent code
-CFLAGS=-Wall -fPIC -g # Uncomment -g for debugging
-LIBS=-lc -lm
+MYFLAGS ?= -Wall -fPIC -g # Uncomment -g for debugging
+LIBS = -lc -lm
 
 #Sourcefiles
 #add yours here
@@ -32,13 +32,13 @@
 
 
 plugin: $(OBJS)
-	$(CC) -g -shared -Wl,-soname,$(NAME) \
+	$(CC) $(LDFLAGS) $(MYFLAGS) -g -shared -Wl,-soname,$(NAME) \
 	-o $(NAME) $(OBJS) $(LIBS)
 
 
 install:
-	install -m 755 $(NAME) $(LIBDIR)/$(NAME)
+	install -D -m 755 $(NAME) $(LIBDIR)/$(NAME)
 	/sbin/ldconfig -n $(LIBDIR)
 
 clean:
-	rm -f $(OBJS)
+	rm -f $(OBJS) $(NAME)
diff -Nurb unik-olsrd-0.4.5/lib/dyn_gw/Makefile unik-olsrd-0.4.5.mod/lib/dyn_gw/Makefile
--- unik-olsrd-0.4.5/lib/dyn_gw/Makefile	2004-06-29 12:17:02.000000000 +0200
+++ unik-olsrd-0.4.5.mod/lib/dyn_gw/Makefile	2004-08-03 14:48:11.108144224 +0200
@@ -5,12 +5,12 @@
 
 #Alter this file to fit your needs
 
-CC=gcc
-NAME=olsrd_dyn_gw.so.0.1
-LIBDIR=/usr/lib
+CC ?= gcc
+NAME = olsrd_dyn_gw.so.0.1
+LIBDIR ?= $(INSTALL_PREFIX)/usr/lib
 # -fPIC creates position independent code
-CFLAGS=-Wall -fPIC -g # Uncomment -g for debugging
-LIBS=-lc -lm
+MYFLAGS ?= -Wall -fPIC -g # Uncomment -g for debugging
+LIBS = -lc -lm
 
 #Sourcefiles
 #add yours here
@@ -32,13 +32,13 @@
 
 
 plugin: $(OBJS)
-	$(CC) -g -shared -Wl,-soname,$(NAME) \
+	$(CC) $(LDFLAGS) $(MYFLAGS) -g -shared -Wl,-soname,$(NAME) \
 	-o $(NAME) $(OBJS) $(LIBS)
 
 
 install:
-	install -m 755 $(NAME) $(LIBDIR)/$(NAME)
+	install -D -m 755 $(NAME) $(LIBDIR)/$(NAME)
 	/sbin/ldconfig -n $(LIBDIR)
 
 clean:
-	rm -f $(OBJS)
+	rm -f $(OBJS) $(NAME)
diff -Nurb unik-olsrd-0.4.5/lib/powerinfo/Makefile unik-olsrd-0.4.5.mod/lib/powerinfo/Makefile
--- unik-olsrd-0.4.5/lib/powerinfo/Makefile	2004-06-29 12:17:02.000000000 +0200
+++ unik-olsrd-0.4.5.mod/lib/powerinfo/Makefile	2004-08-03 15:00:23.850750416 +0200
@@ -5,12 +5,12 @@
 
 #Alter this file to fit your needs
 
-CC=gcc
-NAME=olsrd_power.so.0.1
-LIBDIR=/usr/lib
+CC ?= gcc
+NAME = olsrd_power.so.0.1
+LIBDIR ?= $(INSTALL_PREFIX)/usr/lib
 # -fPIC creates position independent code
-CFLAGS=-Wall -fPIC -g # Uncomment -g for debugging
-LIBS=-lc -lm
+MYFLAGS ?= -Wall -fPIC -g # Uncomment -g for debugging
+LIBS = -lc -lm
 
 #Sourcefiles
 #add yours here
@@ -32,13 +32,13 @@
 
 
 plugin: $(OBJS)
-	$(CC) -g -shared -Wl,-soname,$(NAME) \
+	$(CC) $(LDFLAGS) $(MYFLAGS) -g -shared -Wl,-soname,$(NAME) \
 	-o $(NAME) $(OBJS) $(LIBS)
 
 
 install:
-	install -m 755 $(NAME) $(LIBDIR)/$(NAME)
+	install -D -m 755 $(NAME) $(LIBDIR)/$(NAME)
 	/sbin/ldconfig -n $(LIBDIR)
 
 clean:
-	rm -f $(OBJS)
+	rm -f $(OBJS) $(NAME)
Files unik-olsrd-0.4.5/lib/powerinfo/uolsrd_power.so.0.1 and unik-olsrd-0.4.5.mod/lib/powerinfo/uolsrd_power.so.0.1 differ
diff -Nurb unik-olsrd-0.4.5/lib/secure/Makefile unik-olsrd-0.4.5.mod/lib/secure/Makefile
--- unik-olsrd-0.4.5/lib/secure/Makefile	2004-06-29 12:17:02.000000000 +0200
+++ unik-olsrd-0.4.5.mod/lib/secure/Makefile	2004-08-03 14:47:49.992354312 +0200
@@ -6,12 +6,11 @@
 #Alter this file to fit your needs
 
 CC ?= gcc
-NAME ?= olsrd_secure.so.0.2
-INSTALL_PREFIX ?=
+NAME = olsrd_secure.so.0.2
 LIBDIR ?= $(INSTALL_PREFIX)/usr/lib
 # -fPIC creates position independent code
-CFLAGS ?= -Wall -fPIC -g #-DDEBUG# Uncomment -g for debugging
-LIBS ?= -lc -lssl -lcrypto -lm
+MYFLAGS = -Wall -fPIC -g #-DDEBUG# Uncomment -g for debugging
+LIBS = -lc -lssl -lcrypto -lm
 
 #Sourcefiles
 #add yours here
@@ -33,7 +32,7 @@
 
 
 plugin: $(OBJS)
-	$(CC) -g -shared -Wl,-soname,$(NAME) \
+	$(CC) $(LDFLAGS) $(MYFLAGS) -g -shared -Wl,-soname,$(NAME) \
 	-o $(NAME) $(OBJS) $(LIBS)
 
 
@@ -42,4 +41,4 @@
 	/sbin/ldconfig -n $(LIBDIR)
 
 clean:
-	rm -f $(OBJS)
+	rm -f $(OBJS) $(NAME)