OpenVPN update to 2.3.0
[tomato.git] / release / src / router / Makefile
blob27a53d676cecc149a50d540fc556d14071d51884
2 # Broadcom Linux Router Makefile
4 # Copyright 2005, Broadcom Corporation
5 # All Rights Reserved.
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
14 include common.mak
16 #TOMATO_EXPERIMENTAL=0
21 SEP=echo "\033[41;1m $@ \033[0m"
24 # standard packages
26 obj-y += lzma-loader
27 obj-y += nvram
28 obj-y += shared
29 obj-y += prebuilt
30 obj-y += igmpproxy
31 obj-y += iptables
32 obj-y += rc
33 obj-y += iproute2
34 obj-y += rom
35 obj-y += others
36 obj-y += busybox
37 obj-y += httpd
38 obj-y += www
39 obj-y += bridge
40 obj-y += dnsmasq
41 obj-y += etc
42 # obj-y += vlan # use Busybox vconfig
43 obj-y += pppd
44 obj-y += rp-pppoe
45 obj-y += utils
46 obj-y += ntpc
47 obj-y += rstats
48 obj-$(TCONFIG_SNMP) += snmp
49 obj-y += cstats
50 obj-y += udpxy
52 # !!TB - updated Broadcom Wireless driver
53 obj-y += et
54 obj-y += libbcmcrypto
55 obj-y += wlconf
57 obj-y += cyassl
58 obj-y += mssl
59 obj-y += mdu
61 #Roadkill
62 obj-$(TCONFIG_NOCAT) += nocat
63 # !!TB
64 obj-$(TCONFIG_USB) += p910nd
66 ifeq ($(CONFIG_LINUX26),y)
67 obj-$(TCONFIG_USB) += sd-idle
68 else
69 obj-$(TCONFIG_USB) += scsi-idle
70 endif
72 obj-y += libusb10
73 #obj-y += libusb
74 obj-y += usbmodeswitch
75 obj-$(TCONFIG_FTP) += vsftpd
77 ifeq ($(CONFIG_LINUX26),y)
78 ifeq ($(TCONFIG_SAMBASRV),y)
79 NEED_EX_NLS = y
80 endif
81 ifeq ($(TCONFIG_USB_EXTRAS),y)
82 NEED_EX_USB = y
83 endif
84 endif
86 ifeq ($(TCONFIG_SAMBASRV),y)
87 ifeq ($(TCONFIG_SAMBA3),y)
88 NEED_SAMBA3 = y
89 else
90 NEED_SAMBA2 = y
91 endif
92 endif
94 ifeq ($(TCONFIG_IPV6),y)
95 export TCONFIG_IPV6 := y
96 else
97 TCONFIG_IPV6 :=
98 endif
100 obj-$(NEED_SAMBA2) += samba
101 obj-$(NEED_SAMBA3) += samba3
102 obj-$(TCONFIG_NTFS) += ntfs-3g
103 obj-$(TCONFIG_EBTABLES) += ebtables
104 obj-$(TCONFIG_IPV6) += radvd
105 obj-$(TCONFIG_IPV6) += dhcpv6
107 obj-$(TCONFIG_MEDIA_SERVER) += zlib
108 obj-$(TCONFIG_MEDIA_SERVER) += sqlite
109 obj-$(TCONFIG_MEDIA_SERVER) += ffmpeg
110 obj-$(TCONFIG_MEDIA_SERVER) += libogg
111 obj-$(TCONFIG_MEDIA_SERVER) += flac
112 obj-$(TCONFIG_MEDIA_SERVER) += jpeg
113 obj-$(TCONFIG_MEDIA_SERVER) += libexif
114 obj-$(TCONFIG_MEDIA_SERVER) += libid3tag
115 obj-$(TCONFIG_MEDIA_SERVER) += libvorbis
116 obj-$(TCONFIG_MEDIA_SERVER) += minidlna
117 MEDIA_SERVER_STATIC=y
119 obj-y += libnfnetlink
120 obj-y += miniupnpd
121 # obj-y += upnp
123 # configurable packages
125 obj-$(TCONFIG_L2TP) += xl2tpd
126 obj-$(TCONFIG_PPTP) += accel-pptp
127 obj-$(TCONFIG_PPTPD) += pptpd
128 obj-$(TCONFIG_HTTPS) += openssl
129 obj-$(TCONFIG_SSH) += dropbear
130 obj-$(TCONFIG_ZEBRA) += zebra
131 # obj-$(TCONFIG_IPP2P) += ipp2p
132 obj-$(TCONFIG_LZO) += lzo
133 obj-$(TCONFIG_OPENVPN) += openvpn
134 obj-$(TCONFIG_EMF) += emf
135 obj-$(TCONFIG_EMF) += igs
137 obj-$(CONFIG_LINUX26) += hotplug2
138 obj-$(CONFIG_LINUX26) += udevtrigger
140 ifeq ($(TCONFIG_OPENVPN),y)
141 export FULL_OPENSSL := y
142 else
143 ifeq ($(TCONFIG_FTP_SSL),y)
144 export FULL_OPENSSL := y
145 else
146 FULL_OPENSSL :=
147 endif
148 endif
150 obj-y += wanuptime
152 obj-$(TCONFIG_TCPDUMP) += lpcap tcpdump
154 obj-clean := $(foreach obj, $(obj-y) $(obj-n) $(obj-), $(obj)-clean)
155 obj-install := $(foreach obj,$(obj-y),$(obj)-install)
158 # Basic rules
161 all: clean-build libc $(obj-y) kernel
164 kernel: $(LINUXDIR)/.config
165 @$(SEP)
167 @if ! grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
168 $(MAKE) -C $(LINUXDIR) zImage CC=$(KERNELCC); \
170 if grep -q "CONFIG_MODULES=y" $(LINUXDIR)/.config ; then \
171 $(MAKE) -C $(LINUXDIR) modules CC=$(KERNELCC); \
173 ifeq ($(CONFIG_LINUX26),y)
174 $(MAKE) -C $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed srctree=$(LINUXDIR)
175 endif
178 lzma-loader:
179 $(MAKE) -C $(SRCBASE)/lzma-loader CROSS_COMPILE=$(CROSS_COMPILE) LD=$(LD)
181 lzma-loader-install: lzma-loader
182 @$(SEP)
185 kmod: dummy
186 $(MAKE) -C $(LINUXDIR) modules CC=$(KERNELCC)
188 testfind:
189 cd $(TARGETDIR)/lib/modules/* && find -name "*.o" -exec mv -i {} . \; || true
190 cd $(TARGETDIR)/lib/modules/* && find -type d -delete || true
192 install package: $(obj-install) $(LINUXDIR)/.config
193 @$(SEP)
195 install -d $(TARGETDIR)
198 # kernel modules
199 $(MAKE) -C $(LINUXDIR) modules_install \
200 INSTALL_MOD_STRIP="--strip-debug -x -R .comment -R .note -R .pdr -R .mdebug.abi32 -R .note.gnu.build-id -R .gnu.attributes -R .reginfo" \
201 DEPMOD=/bin/true INSTALL_MOD_PATH=$(TARGETDIR)
203 ifneq ($(CONFIG_LINUX26),y)
204 find $(TARGETDIR)/lib/modules -name wl.*o -exec $(STRIP) --strip-unneeded -x {} \;
205 find $(TARGETDIR)/lib/modules -name et.*o -exec $(STRIP) --strip-unneeded -x {} \;
206 find $(TARGETDIR)/lib/modules -name bcm57*.*o -exec $(STRIP) --strip-unneeded -x {} \;
207 find $(TARGETDIR)/lib/modules -name ctf.*o -exec $(STRIP) --strip-unneeded -x {} \;
208 find $(TARGETDIR)/lib/modules -name emf.*o -exec $(STRIP) --strip-unneeded -x {} \;
209 find $(TARGETDIR)/lib/modules -name igs.*o -exec $(STRIP) --strip-unneeded -x {} \;
210 find $(TARGETDIR)/lib/modules -name jffs*.*o -exec $(STRIP) --strip-unneeded -x {} \;
212 find $(TARGETDIR)/lib/modules -name *.*o -exec $(STRIP) --strip-debug -x -R .mdebug.abi32 {} \;
213 endif
215 -cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv diag/* . && rm -rf diag
217 # nice and clean
218 -cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv et.4702/* . && rm -rf et.4702 || true
219 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv et/* . && rm -rf et
220 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv wl/* . && rm -rf wl
221 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv cifs/* . && rm -rf cifs
222 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jffs2/* . && rm -rf jffs2 || true
223 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jffs/* . && rm -rf jffs || true
224 cd $(TARGETDIR)/lib/modules/*/kernel/lib && mv zlib_inflate/* . && rm -rf zlib_inflate || true
225 cd $(TARGETDIR)/lib/modules/*/kernel/lib && mv zlib_deflate/* . && rm -rf zlib_deflate || true
226 cd $(TARGETDIR)/lib/modules/*/kernel/lib && mv lzo/* . && rm -rf lzo || true
227 rm -rf $(TARGETDIR)/lib/modules/*/pcmcia
229 ##!!TB
230 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv ext2/* . && rm -rf ext2 || true
231 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv ext3/* . && rm -rf ext3 || true
232 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jbd/* . && rm -rf jbd || true
233 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv fat/* . && rm -rf fat || true
234 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jfs/* . && rm -rf jfs || true
235 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv vfat/* . && rm -rf vfat || true
236 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv msdos/* . && rm -rf msdos || true
237 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv fuse/* . && rm -rf fuse || true
238 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv ntfs/* . && rm -rf ntfs || true
239 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv smbfs/* . && rm -rf smbfs || true
240 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv reiserfs/* . && rm -rf reiserfs || true
241 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv hfs/* . && rm -rf hfs || true
242 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv hfsplus/* . && rm -rf hfsplus || true
243 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv lockd/* . && rm -rf lockd || true
244 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv nfsd/* . && rm -rf nfsd || true
245 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv nfs/* . && rm -rf nfs || true
246 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv xfs/* . && rm -rf xfs || true
247 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv nls/* . && rm -rf nls || true
248 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv exportfs/* . && rm -rf exportfs || true
249 cd $(TARGETDIR)/lib/modules/*/kernel/net && mv sunrpc/* . && rm -rf sunrpc || true
250 cd $(TARGETDIR)/lib/modules/*/kernel/net && mv auth_gss/* . && rm -rf auth_gss || true
251 cd $(TARGETDIR)/lib/modules/*/kernel/sound/core && mv oss/* . && rm -rf oss || true
252 cd $(TARGETDIR)/lib/modules/*/kernel/sound/core && mv seq/* . && rm -rf seq || true
253 cd $(TARGETDIR)/lib/modules/*/kernel/sound && mv core/* . && rm -rf core || true
254 cd $(TARGETDIR)/lib/modules/*/kernel/sound && mv usb/* . && rm -rf usb || true
255 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv hcd/* . && rm -rf hcd || true
256 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv host/* . && rm -rf host || true
257 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv storage/* . && rm -rf storage || true
258 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv serial/* . && rm -rf serial || true
259 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv core/* . && rm -rf core || true
260 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv class/* . && rm -rf class || true
261 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv misc/* . && rm -rf misc || true
262 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv usbip/* . && rm -rf usbip || true
263 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/mmc && mv core/* . && rm -rf core || true
264 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/mmc && mv card/* . && rm -rf card || true
265 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/mmc && mv host/* . && rm -rf host || true
266 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/hid && mv usbhid/* . && rm -rf usbhid || true
267 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv joystick/* . && rm -rf joystick || true
268 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv keyboard/* . && rm -rf keyboard || true
269 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv misc/* . && rm -rf misc || true
270 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv mouse/* . && rm -rf mouse || true
271 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video && mv uvc/* . && rm -rf uvc || true
272 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video && mv pwc/* . && rm -rf pwc || true
273 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video/gspca && mv gl860/* . && rm -rf gl860 || true
274 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video/gspca && mv m5602/* . && rm -rf m5602 || true
275 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video/gspca && mv stv06xx/* . && rm -rf stv06xx || true
276 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video && mv gspca/* . && rm -rf gspca || true
277 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media && mv video/* . && rm -rf video || true
279 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv bcm57xx/* . && rm -rf bcm57xx || true
280 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv emf/* . && rm -rf emf || true
281 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv igs/* . && rm -rf igs || true
282 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv ctf/* . && rm -rf ctf || true
283 cd $(TARGETDIR)/lib/modules && rm -f */source || true
285 # misc
286 for dir in $(wildcard $(patsubst %,$(INSTALLDIR)/%,$(obj-y))) ; do \
287 (cd $${dir} && tar cpf - .) | (cd $(TARGETDIR) && tar xpf -) \
288 done
290 ifneq ($(TCONFIG_L7),y)
291 rm -f $(TARGETDIR)/usr/lib/iptables/libipt_layer7.so
292 endif
294 # uClibc
295 install $(LIBDIR)/ld-uClibc.so.0 $(TARGETDIR)/lib/
296 install $(LIBDIR)/libcrypt.so.0 $(TARGETDIR)/lib/
297 install $(LIBDIR)/libpthread.so.0 $(TARGETDIR)/lib/
298 install $(LIBDIR)/libgcc_s.so.1 $(TARGETDIR)/lib/
299 $(STRIP) $(TARGETDIR)/lib/libgcc_s.so.1
300 install $(LIBDIR)/libc.so.0 $(TARGETDIR)/lib/
301 install $(LIBDIR)/libdl.so.0 $(TARGETDIR)/lib/
302 install $(LIBDIR)/libm.so.0 $(TARGETDIR)/lib/
303 install $(LIBDIR)/libnsl.so.0 $(TARGETDIR)/lib/
304 ifeq ($(TCONFIG_SSH),y)
305 install $(LIBDIR)/libutil.so.0 $(TARGETDIR)/lib/
306 endif
307 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS),y)
308 install $(LIBDIR)/libresolv.so.0 $(TARGETDIR)/lib/
309 $(STRIP) $(TARGETDIR)/lib/*.so.0
310 endif
312 @cd $(TARGETDIR) && $(TOP)/others/rootprep.sh
314 @echo ---
316 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS),y)
317 @$(SRCBASE)/btools/libfoo.pl
318 else
319 @$(SRCBASE)/btools/libfoo.pl --noopt
320 endif
321 @chmod 0555 $(TARGETDIR)/lib/*.so*
322 @chmod 0555 $(TARGETDIR)/usr/lib/*.so*
324 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
325 # separated/copied extra stuff
326 @rm -rf $(PLATFORMDIR)/extras
327 @mkdir $(PLATFORMDIR)/extras
328 @mv $(TARGETDIR)/lib/modules/*/kernel/net/ipv4/ip_gre.*o $(PLATFORMDIR)/extras/ || true
330 $(if $(TCONFIG_OPENVPN),@cp -f,$(if $(TCONFIG_USB_EXTRAS),@cp -f,$(if $(TCONFIG_IPV6),@cp -f,@mv))) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/tun.*o $(PLATFORMDIR)/extras/ || true
331 $(if $(TCONFIG_EBTABLES),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/bridge/netfilter/ebt*.*o $(PLATFORMDIR)/extras/ || true
333 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/ifb.*o $(PLATFORMDIR)/extras/ || true
334 @mv $(TARGETDIR)/lib/modules/*/kernel/net/sched/sch_red.*o $(PLATFORMDIR)/extras/ || true
335 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/ntfs.*o $(PLATFORMDIR)/extras/ || true
336 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/smbfs.*o $(PLATFORMDIR)/extras/ || true
337 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/reiserfs.*o $(PLATFORMDIR)/extras/ || true
338 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/jfs.*o $(PLATFORMDIR)/extras/ || true
339 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/nfs.*o $(PLATFORMDIR)/extras/ || true
340 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/nfsd.*o $(PLATFORMDIR)/extras/ || true
341 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/lockd.*o $(PLATFORMDIR)/extras/ || true
342 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/exportfs.*o $(PLATFORMDIR)/extras/ || true
343 @mv $(TARGETDIR)/lib/modules/*/kernel/net/sunrpc.*o $(PLATFORMDIR)/extras/ || true
344 @mv $(TARGETDIR)/lib/modules/*/kernel/net/auth_rpcgss.*o $(PLATFORMDIR)/extras/ || true
345 @mv $(TARGETDIR)/lib/modules/*/kernel/net/rpcsec_gss_krb5.*o $(PLATFORMDIR)/extras/ || true
346 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/xfs.*o $(PLATFORMDIR)/extras/ || true
347 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/scsi/sr_mod.*o $(PLATFORMDIR)/extras/ || true
348 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/scanner.*o $(PLATFORMDIR)/extras/ || true
350 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbserial.*o $(PLATFORMDIR)/extras/ || true
351 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/option.*o $(PLATFORMDIR)/extras/ || true
352 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/sierra.*o $(PLATFORMDIR)/extras/ || true
353 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/*acm.*o $(PLATFORMDIR)/extras/ || true
354 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/cdc_ether.*o $(PLATFORMDIR)/extras/ || true
355 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/mii.*o $(PLATFORMDIR)/extras/ || true
356 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/usbnet.*o $(PLATFORMDIR)/extras/ || true
357 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/ftdi_sio.*o $(PLATFORMDIR)/extras/ || true
358 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/pl2303.*o $(PLATFORMDIR)/extras/ || true
359 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/mmc/*.*o $(PLATFORMDIR)/extras/ || true
360 $(if $(NEED_EX_USB),@ls,@rm -rf) $(TARGETDIR)/lib/modules/*/kernel/drivers/mmc || true
362 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbip*.*o $(PLATFORMDIR)/extras/ || true
363 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbkbd.*o $(PLATFORMDIR)/extras/ || true
364 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbmouse.*o $(PLATFORMDIR)/extras/ || true
365 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/hid*.*o $(PLATFORMDIR)/extras/ || true
366 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/ipw.*o $(PLATFORMDIR)/extras/ || true
367 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/audio.*o $(PLATFORMDIR)/extras/ || true
368 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/ov51*.*o $(PLATFORMDIR)/extras/ || true
369 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/pwc*.*o $(PLATFORMDIR)/extras/ || true
370 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/emi*.*o $(PLATFORMDIR)/extras/ || true
371 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/cdc_subset.*o $(PLATFORMDIR)/extras/ || true
372 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/rndis_host.*o $(PLATFORMDIR)/extras/ || true
373 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb || true
374 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/media/* $(PLATFORMDIR)/extras/ || true
375 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/media || true
376 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/sound/* $(PLATFORMDIR)/extras/ || true
377 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/sound || true
378 @mv $(TARGETDIR)/lib/modules/*/kernel/sound/* $(PLATFORMDIR)/extras/ || true
379 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/sound || true
380 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/input/* $(PLATFORMDIR)/extras/ || true
381 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/input || true
382 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/hid/* $(PLATFORMDIR)/extras/ || true
383 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/hid || true
384 @cp -f $(TARGETDIR)/lib/modules/*/kernel/drivers/net/bcm57*.*o $(PLATFORMDIR)/extras/ || true
385 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/ctf*.*o $(PLATFORMDIR)/extras/ || true
386 $(if $(TCONFIG_PPTP),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/pptp.*o $(PLATFORMDIR)/extras/ || true
387 $(if $(TCONFIG_L2TP),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/pppol2tp.*o $(PLATFORMDIR)/extras/ || true
388 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/ppp_deflate.*o $(PLATFORMDIR)/extras/ || true
389 @mv $(TARGETDIR)/lib/modules/*/kernel/crypto/* $(PLATFORMDIR)/extras/ || true
390 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/crypto || true
392 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_cp9*.*o $(PLATFORMDIR)/extras/ || true
393 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_cp1251.*o $(PLATFORMDIR)/extras/ || true
394 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_euc-jp.*o $(PLATFORMDIR)/extras/ || true
395 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_sjis.*o $(PLATFORMDIR)/extras/ || true
396 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_gb2312.*o $(PLATFORMDIR)/extras/ || true
397 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_euc-kr.*o $(PLATFORMDIR)/extras/ || true
398 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_big5.*o $(PLATFORMDIR)/extras/ || true
400 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_*.*o $(PLATFORMDIR)/extras/ || true
401 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/*.*o $(PLATFORMDIR)/extras/ || true
402 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/scsi/*.*o $(PLATFORMDIR)/extras/ || true
403 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/leds/*.*o $(PLATFORMDIR)/extras/ || true
404 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/ext2.*o $(PLATFORMDIR)/extras/ || true
405 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/ext3.*o $(PLATFORMDIR)/extras/ || true
406 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/jbd.*o $(PLATFORMDIR)/extras/ || true
407 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/mbcache.*o $(PLATFORMDIR)/extras/ || true
408 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/fat.*o $(PLATFORMDIR)/extras/ || true
409 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/vfat.*o $(PLATFORMDIR)/extras/ || true
410 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/msdos.*o $(PLATFORMDIR)/extras/ || true
411 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/fuse.*o $(PLATFORMDIR)/extras/ || true
412 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/hfs.*o $(PLATFORMDIR)/extras/ || true
413 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/hfsplus.*o $(PLATFORMDIR)/extras/ || true
415 ifneq ($(TCONFIG_USB),y)
416 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/usb || true
417 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/scsi || true
418 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/leds || true
419 endif
421 $(if $(TCONFIG_USB_EXTRAS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/connector/cn.*o $(PLATFORMDIR)/extras/ || true
422 $(if $(TCONFIG_USB_EXTRAS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/block/loop.*o $(PLATFORMDIR)/extras/ || true
423 ifneq ($(TCONFIG_USB_EXTRAS),y)
424 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/connector || true
425 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/block || true
426 endif
427 $(if $(TCONFIG_CIFS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/cifs.*o $(PLATFORMDIR)/extras/ || true
428 $(if $(TCONFIG_JFFS2),$(if $(TCONFIG_JFFSV1),@mv,@cp -f),@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/jffs2.*o $(PLATFORMDIR)/extras/ || true
429 $(if $(TCONFIG_JFFS2),$(if $(TCONFIG_JFFSV1),@mv,@cp -f),@mv) $(TARGETDIR)/lib/modules/*/kernel/lib/zlib_*.*o $(PLATFORMDIR)/extras/ || true
430 $(if $(TCONFIG_JFFS2),$(if $(TCONFIG_JFFSV1),@cp -f,@mv),@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/jffs.*o $(PLATFORMDIR)/extras/ || true
431 [ ! -f $(TARGETDIR)/lib/modules/*/kernel/lib/* ] && rm -rf $(TARGETDIR)/lib/modules/*/kernel/lib || true
432 $(if $(TCONFIG_L7),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv4/netfilter/ipt_layer7.*o $(PLATFORMDIR)/extras/ || true
433 $(if $(TCONFIG_L7),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_layer7.*o $(PLATFORMDIR)/extras/ || true
435 @mkdir -p $(PLATFORMDIR)/extras/apps
436 @mkdir -p $(PLATFORMDIR)/extras/lib
438 @mv $(TARGETDIR)/usr/sbin/ttcp $(PLATFORMDIR)/extras/apps/ || true
439 @mv $(TARGETDIR)/usr/sbin/mii-tool $(PLATFORMDIR)/extras/apps/ || true
440 @mv $(TARGETDIR)/usr/sbin/robocfg $(PLATFORMDIR)/extras/apps/ || true
442 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/usr/lib/libusb* $(PLATFORMDIR)/extras/lib/ || true
443 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/usr/sbin/usb_modeswitch $(PLATFORMDIR)/extras/apps/ || true
444 @cp usbmodeswitch/usb_modeswitch.conf $(PLATFORMDIR)/extras/apps/usb_modeswitch.conf || true
445 @cp usbmodeswitch/usb_modeswitch.setup $(PLATFORMDIR)/extras/apps/usb_modeswitch.setup || true
446 @mkdir -p $(PLATFORMDIR)/extras/apps/usb_modeswitch.d
447 @cp -f usbmodeswitch/data/usb_modeswitch.d/* $(PLATFORMDIR)/extras/apps/usb_modeswitch.d || true
448 ifneq ($(NEED_EX_USB),y)
449 @rm -rf $(TARGETDIR)/rom/etc/usb_modeswitch.d || true
450 @rm -f $(TARGETDIR)/rom/etc/usb_modeswitch.conf || true
451 endif
452 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/usr/sbin/chat $(PLATFORMDIR)/extras/apps/ || true
454 @mkdir -p $(TARGETDIR)/rom/etc/l7-protocols
455 ifeq ($(TCONFIG_L7PAT),y)
456 @cd layer7 && ./squish.sh
457 cp layer7/squished/*.pat $(TARGETDIR)/rom/etc/l7-protocols
458 endif
460 ifeq ($(TCONFIG_USERPPTP),y)
461 @mkdir -p $(TARGETDIR)/rom/etc/vpn
462 cp rc/vpn/* $(TARGETDIR)/rom/etc/vpn
463 chmod +x $(TARGETDIR)/rom/etc/vpn/*
464 endif
466 busybox/examples/depmod.pl -k $(LINUXDIR)/vmlinux -b $(TARGETDIR)/lib/modules/*/
467 @mv $(TARGETDIR)/lib/modules/*/modules.dep $(TARGETDIR)/lib/modules/
468 @echo ---
470 @rm -f $(TARGETDIR)/lib/modules/*/build
472 @$(MAKE) -C $(LINUXDIR)/scripts/squashfs mksquashfs-lzma
473 @$(LINUXDIR)/scripts/squashfs/mksquashfs-lzma $(TARGETDIR) $(PLATFORMDIR)/target.image -all-root -noappend -nopad | tee target.info
475 # Package kernel and filesystem
476 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
477 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
478 # $(MAKE) -C $(LINUXDIR) zImage ; \
479 # else \
480 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
481 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
482 # fi
484 # Pad self-booting Linux to a 64 KB boundary
485 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
486 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
487 # Append filesystem to self-booting Linux
488 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
491 libc: $(LIBDIR)/ld-uClibc.so.0
492 # $(MAKE) -C ../../../tools-src/uClibc all
493 # $(MAKE) -C ../../../tools-src/uClibc install
497 # cleaners
500 clean: clean-build $(obj-clean)
501 rm -rf layer7/squished
502 rm -f .ipv6-y .ipv6-n
503 rm -f .fullssl-y .fullssl-n
504 make -C config clean
506 clean-build: dummy
507 rm -rf $(TARGETDIR)
508 rm -rf $(INSTALLDIR)
509 rm -f $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image
510 rm -rf $(PLATFORMDIR)/extras
512 distclean: clean
513 ifneq ($(INSIDE_MAK),1)
514 $(MAKE) -C $(SRCBASE) $@ INSIDE_MAK=1
515 endif
516 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
519 # configuration
522 CONFIG_IN := config/config.in
524 config/conf config/mconf:
525 @$(MAKE) -C config
527 rconf: config/conf
528 @config/conf $(CONFIG_IN)
530 rmconf: config/mconf
531 @config/mconf $(CONFIG_IN)
533 roldconf: config/conf
534 @config/conf -o $(CONFIG_IN)
535 @$(MAKE) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
537 kconf:
538 @$(MAKE) -C $(LINUXDIR) config
540 kmconf:
541 @$(MAKE) -C $(LINUXDIR) menuconfig
543 koldconf:
544 @$(MAKE) -C $(LINUXDIR) oldconfig
545 @$(MAKE) -C $(LINUXDIR) include/linux/version.h
547 bboldconf:
548 @$(MAKE) -C busybox oldconfig
550 config conf: rconf kconf
552 menuconfig mconf: rmconf kmconf
554 .ipv6-y .ipv6-n:
555 @rm -f .ipv6-y .ipv6-n
556 @$(MAKE) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
557 @touch $@
559 .fullssl-y .fullssl-n:
560 @rm -f .fullssl-y .fullssl-n
561 @$(MAKE) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
562 @touch $@
564 dependconf: .ipv6-$(if $(TCONFIG_IPV6),y,n) .fullssl-$(if $(FULL_OPENSSL),y,n)
566 oldconfig oldconf: koldconf roldconf dependconf bboldconf
570 # overrides and extra dependencies
573 busybox: dummy
574 @$(MAKE) -C busybox EXTRA_CFLAGS="-fPIC $(EXTRACFLAGS)"
576 # V=1
578 busybox-install:
579 rm -rf $(INSTALLDIR)/busybox
580 $(MAKE) -C busybox install EXTRA_CFLAGS="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX=$(INSTALLDIR)/busybox
582 busybox-clean:
583 -@$(MAKE) -C busybox distclean
585 busybox-config:
586 $(MAKE) -C busybox menuconfig
589 httpd: shared nvram mssl
590 @$(SEP)
591 @$(MAKE) -C httpd
593 www-install:
594 @$(MAKE) -C www install INSTALLDIR=$(INSTALLDIR)/www TOMATO_EXPERIMENTAL=$(TOMATO_EXPERIMENTAL)
596 matrixssl:
597 @$(SEP)
598 @$(MAKE) -C matrixssl/src
600 matrixssl-install:
601 @true
603 matrixssl-clean:
604 -@$(MAKE) -C matrixssl/src clean
606 cyassl/stamp-h1:
607 @cd cyassl && CC=$(CC) AR=$(AR) RANLIB=$(RANLIB) LD=$(LD) \
608 CFLAGS="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections \
609 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
610 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
611 PTHREAD_LIBS="-lpthread" \
612 $(CONFIGURE)
613 @touch cyassl/stamp-h1
615 cyassl: cyassl/stamp-h1
616 @$(SEP)
617 @$(MAKE) -C cyassl
619 cyassl-clean:
620 -@$(MAKE) -C cyassl clean
621 @rm -f cyassl/stamp-h1
623 cyassl-install:
624 @true
626 ifeq ($(FULL_OPENSSL),y)
627 OPENSSL_CIPHERS:=enable-rc5
628 else
629 OPENSSL_CIPHERS:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
630 endif
632 openssl/stamp-h1:
633 cd openssl && \
634 ./Configure linux-mipsel --openssldir=/etc --cross-compile-prefix=' ' \
635 -ffunction-sections -fdata-sections -Wl,--gc-sections \
636 shared $(OPENSSL_CIPHERS) \
637 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
638 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
639 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
640 no-zlib no-engines no-sse2 \
641 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
643 @$(MAKE) -C openssl clean
644 @touch openssl/stamp-h1
646 openssl: openssl/stamp-h1
648 openssl-clean:
649 -@$(MAKE) -C openssl clean
650 @rm -f openssl/stamp-h1
652 openssl-install: openssl
653 install -D openssl/libcrypto.so.1.0.0 $(INSTALLDIR)/openssl/usr/lib/libcrypto.so.1.0.0
654 $(STRIP) $(INSTALLDIR)/openssl/usr/lib/libcrypto.so.1.0.0
655 cd $(INSTALLDIR)/openssl/usr/lib && ln -sf libcrypto.so.1.0.0 libcrypto.so
657 install -D openssl/apps/openssl $(INSTALLDIR)/openssl/usr/sbin/openssl
658 $(STRIP) $(INSTALLDIR)/openssl/usr/sbin/openssl
659 chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/openssl
661 install -D -m 0500 httpd/gencert.sh $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
663 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
664 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
666 ifeq ($(FULL_OPENSSL),y)
667 install -D openssl/libssl.so.1.0.0 $(INSTALLDIR)/openssl/usr/lib/libssl.so.1.0.0
668 $(STRIP) $(INSTALLDIR)/openssl/usr/lib/libssl.so.1.0.0
669 cd $(INSTALLDIR)/openssl/usr/lib && ln -sf libssl.so.1.0.0 libssl.so
670 endif
672 mssl: $(if $(FULL_OPENSSL),openssl,cyassl)
674 mdu: shared mssl
676 rc: nvram shared
678 bridge/Makefile:
679 cd bridge && CFLAGS="-Os -g $(EXTRACFLAGS)" \
680 $(CONFIGURE) --prefix="" --with-linux-headers=$(LINUXDIR)/include
682 bridge: bridge/Makefile
683 @$(SEP)
684 @$(MAKE) -C bridge
686 bridge-clean:
687 -@$(MAKE) -C bridge clean
688 @rm -f bridge/Makefile
690 bridge-install:
691 install -D bridge/brctl/brctl $(INSTALLDIR)/bridge/usr/sbin/brctl
692 $(STRIP) $(INSTALLDIR)/bridge/usr/sbin/brctl
694 dnsmasq:
695 @$(SEP)
696 @$(MAKE) -C dnsmasq \
697 COPTS="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
698 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
700 dnsmasq-install:
701 install -D dnsmasq/src/dnsmasq $(INSTALLDIR)/dnsmasq/usr/sbin/dnsmasq
702 $(STRIP) $(INSTALLDIR)/dnsmasq/usr/sbin/dnsmasq
704 iptables:
705 ifeq ($(CONFIG_LINUX26),y)
706 cp -f iptables/extensions/libipt_ipp2p_K26.c iptables/extensions/libipt_ipp2p.c
707 else
708 cp -f iptables/extensions/libipt_ipp2p_K24.c iptables/extensions/libipt_ipp2p.c
709 endif
710 @$(SEP)
711 $(MAKE) -C iptables BINDIR=/usr/sbin LIBDIR=/usr/lib KERNEL_DIR=$(LINUXDIR) COPT_FLAGS="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
713 iptables-install:
714 install -D iptables/iptables $(INSTALLDIR)/iptables/usr/sbin/iptables
715 cd $(INSTALLDIR)/iptables/usr/sbin && \
716 ln -sf iptables iptables-restore
718 install -d $(INSTALLDIR)/iptables/usr/lib/iptables
719 install -D iptables/extensions/*.so $(INSTALLDIR)/iptables/usr/lib/iptables/
721 install -D iptables/libiptc.so $(INSTALLDIR)/iptables/usr/lib/libiptc.so
723 $(STRIP) $(INSTALLDIR)/iptables/usr/sbin/iptables
724 $(STRIP) $(INSTALLDIR)/iptables/usr/lib/iptables/*.so
725 $(STRIP) $(INSTALLDIR)/iptables/usr/lib/libiptc.so
727 ifeq ($(TCONFIG_IPV6),y)
728 install iptables/ip6tables $(INSTALLDIR)/iptables/usr/sbin/ip6tables
729 $(STRIP) $(INSTALLDIR)/iptables/usr/sbin/ip6tables
730 cd $(INSTALLDIR)/iptables/usr/sbin && \
731 ln -sf ip6tables ip6tables-restore
732 endif
734 iptables-clean:
735 -@$(MAKE) -C iptables KERNEL_DIR=$(LINUXDIR) clean
737 ppp:
738 @$(SEP)
739 $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp $(if $(TCONFIG_IPV6),HAVE_INET6=y,)
740 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
742 ppp-%:
743 $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp $(if $(TCONFIG_IPV6),HAVE_INET6=y,)
745 rp-pppoe/src/stamp-h1: rp-pppoe/src/Makefile.in
746 cd rp-pppoe/src && CFLAGS="-g -O2 $(EXTRACFLAGS)" \
747 $(CONFIGURE) --prefix=/usr --enable-plugin=$(TOP)/pppd \
748 ac_cv_linux_kernel_pppoe=yes rpppoe_cv_pack_bitfields=rev
749 @touch rp-pppoe/src/stamp-h1
751 rp-pppoe: pppd rp-pppoe/src/stamp-h1
752 $(MAKE) -C rp-pppoe/src pppoe-relay rp-pppoe.so
754 rp-pppoe-clean:
755 -@$(MAKE) -C rp-pppoe/src clean
756 @rm -f rp-pppoe/src/pppoe-relay
757 @rm -f rp-pppoe/src/stamp-h1
759 rp-pppoe-install: rp-pppoe
760 install -D rp-pppoe/src/rp-pppoe.so $(INSTALLDIR)/rp-pppoe/usr/lib/pppd/rp-pppoe.so
761 $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/lib/pppd/*.so
762 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
763 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
766 upnp: nvram shared iptables
768 libnfnetlink/stamp-h1:
769 cd $(TOP)/libnfnetlink && CC=$(CC) STRIP='mipsel-uclibc-strip' \
770 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
771 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
772 $(CONFIGURE) --prefix=/usr --enable-shared --enable-static
774 libnfnetlink: libnfnetlink/stamp-h1
776 libnfnetlink-install:
777 install -D libnfnetlink/src/.libs/libnfnetlink.so.0.2.0 $(INSTALLDIR)/libnfnetlink/usr/lib/libnfnetlink.so.0.2.0
778 $(STRIP) -s $(INSTALLDIR)/libnfnetlink/usr/lib/libnfnetlink.so.0.2.0
779 cd $(INSTALLDIR)/libnfnetlink/usr/lib/ && \
780 ln -sf libnfnetlink.so.0.2.0 libnfnetlink.so.0 && \
781 ln -sf libnfnetlink.so.0.2.0 libnfnetlink.so
783 miniupnpd-config:
784 #ifeq ($(TCONFIG_IPV6),y)
785 # @cd miniupnpd && ./genconfig.sh --leasefile --ipv6
786 #else
787 @cd miniupnpd && ./genconfig.sh --leasefile
788 #endif
790 miniupnpd: iptables miniupnpd-config libnfnetlink
791 @$(SEP)
792 $(MAKE) -C miniupnpd miniupnpd -f Makefile.linux CC=$(CC) \
793 CFLAGS="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include -I$(TOP)/libnfnetlink/include" \
794 LDFLAGS="-L$(TOP)/iptables -liptc -L$(TOP)/libnfnetlink/src/.libs -lnfnetlink" LIBS=""
796 miniupnpd-clean:
797 -@$(MAKE) -C miniupnpd -f Makefile.linux clean
798 @rm -f miniupnpd/config.h
800 miniupnpd-install:
801 install -D miniupnpd/miniupnpd $(INSTALLDIR)/miniupnpd/usr/sbin/miniupnpd
802 $(STRIP) $(INSTALLDIR)/miniupnpd/usr/sbin/miniupnpd
804 # !!TB
805 shared: busybox
807 vsftpd: $(if $(TCONFIG_FTP_SSL),openssl,)
808 @$(SEP)
809 $(MAKE) -C vsftpd
811 vsftpd-install: vsftpd
812 install -D vsftpd/vsftpd $(INSTALLDIR)/vsftpd/usr/sbin/vsftpd
813 $(STRIP) -s $(INSTALLDIR)/vsftpd/usr/sbin/vsftpd
815 ntfs-3g/Makefile:
816 cd ntfs-3g && \
817 CC=$(CC) CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
818 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
819 $(CONFIGURE) --enable-shared=no --enable-static=no \
820 --disable-library --disable-ldconfig --disable-mount-helper --with-fuse=internal \
821 --disable-posix-acls --disable-nfconv --disable-dependency-tracking
823 ntfs-3g: ntfs-3g/Makefile
824 @$(MAKE) -C ntfs-3g
826 ntfs-3g-clean:
827 -@$(MAKE) -C ntfs-3g clean
828 @rm -f ntfs-3g/Makefile
830 ntfs-3g-install: ntfs-3g
831 install -D ntfs-3g/src/ntfs-3g $(INSTALLDIR)/ntfs-3g/bin/ntfs-3g
832 $(STRIP) -s $(INSTALLDIR)/ntfs-3g/bin/ntfs-3g
833 install -d $(INSTALLDIR)/ntfs-3g/sbin && cd $(INSTALLDIR)/ntfs-3g/sbin && \
834 ln -sf ../bin/ntfs-3g mount.ntfs-3g && \
835 ln -sf ../bin/ntfs-3g mount.ntfs
837 libusb10/Makefile: libusb10/Makefile.in
838 cd libusb10 && CFLAGS="-Os -Wall $(EXTRACFLAGS)" LIBS="-lpthread" \
839 $(CONFIGURE) --prefix=/usr ac_cv_lib_rt_clock_gettime=no
841 libusb10: libusb10/Makefile
842 $(MAKE) -C $@
844 libusb10-install: libusb10
845 install -D libusb10/libusb/.libs/libusb-1.0.so $(INSTALLDIR)/libusb10/usr/lib/libusb-1.0.so
846 $(STRIP) $(INSTALLDIR)/libusb10/usr/lib/*.so
848 libusb10-clean:
849 -@$(MAKE) -C $@ clean
850 @rm -rf libusb10/Makefile
852 libusb/Makefile: libusb/Makefile.in
853 cd libusb && CFLAGS="-Wall -Os $(EXTRACFLAGS)" \
854 $(CONFIGURE) --prefix=/usr \
855 LIBUSB_1_0_CFLAGS="-I$(TOP)/libusb10/libusb" \
856 LIBUSB_1_0_LIBS="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
857 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
859 libusb: libusb10 libusb/Makefile
860 $(MAKE) -C $@
862 libusb-install: libusb
863 install -D libusb/libusb/.libs/libusb-0.1.so $(INSTALLDIR)/libusb/usr/lib/libusb-0.1.so
864 $(STRIP) $(INSTALLDIR)/libusb/usr/lib/*.so
866 libusb-clean:
867 -@$(MAKE) -C $@ clean
868 @rm -rf libusb/Makefile
870 usbmodeswitch: libusb10
871 $(MAKE) -C $@ CC=$(CC) CFLAGS="-Os $(EXTRACFLAGS) -DLIBUSB10 \
872 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
873 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
875 usbmodeswitchdb-install:
876 @mkdir -p $(TARGETDIR)/rom/etc/usb_modeswitch.d
877 # compress whitespace
878 @for D in $(wildcard $(TOP)/usbmodeswitch/data/usb_modeswitch.d/*); do \
879 F=`basename $$D`; \
880 sed 's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR)/rom/etc/usb_modeswitch.d/$$F; \
881 done
883 usbmodeswitch-install: usbmodeswitch usbmodeswitchdb-install
884 install -D usbmodeswitch/usb_modeswitch $(INSTALLDIR)/usbmodeswitch/usr/sbin/usb_modeswitch
885 $(STRIP) -s $(INSTALLDIR)/usbmodeswitch/usr/sbin/usb_modeswitch
886 @mkdir -p $(TARGETDIR)/rom/etc
887 @sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP)/usbmodeswitch/usb_modeswitch.conf > $(TARGETDIR)/rom/etc/usb_modeswitch.conf
890 radvd/stamp-h1:
891 cd radvd && CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
892 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
893 $(CONFIGURE) --prefix=""
894 @$(MAKE) -C radvd clean
895 @touch radvd/stamp-h1
897 radvd: radvd/stamp-h1
899 radvd-clean:
900 -@$(MAKE) -C radvd distclean
901 @rm -f radvd/stamp-h1
903 radvd-install: radvd
904 install -D radvd/radvd $(INSTALLDIR)/radvd/usr/sbin/radvd
905 $(STRIP) $(INSTALLDIR)/radvd/usr/sbin/radvd
907 dhcpv6/stamp-h1:
908 @cd dhcpv6 && \
909 CFLAGS="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
910 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
911 ac_cv_func_setpgrp_void=yes \
912 $(CONFIGURE) --prefix= --with-localdbdir=/var
913 @$(MAKE) -C dhcpv6 clean
914 @touch dhcpv6/stamp-h1
916 dhcpv6: dhcpv6/stamp-h1
917 @$(SEP)
918 @$(MAKE) -C dhcpv6 dhcp6c
920 dhcpv6-install: dhcpv6
921 install -D dhcpv6/dhcp6c $(INSTALLDIR)/dhcpv6/usr/sbin/dhcp6c
922 $(STRIP) $(INSTALLDIR)/dhcpv6/usr/sbin/dhcp6c
924 dhcpv6-clean:
925 -@$(MAKE) -C dhcpv6 clean
926 @rm -f dhcpv6/Makefile dhcpv6/stamp-h1
929 p910nd:
930 samba:
931 samba3:
933 nvram: shared
935 prebuilt: shared libbcmcrypto
937 vlan:
938 @$(SEP)
939 @$(MAKE) -C vlan CROSS=$(CROSS_COMPILE) # STRIPTOOL=$(STRIP)
941 vlan-install:
942 $(MAKE) -C vlan CROSS=$(CROSS_COMPILE) INSTALLDIR=$(INSTALLDIR) install # STRIPTOOL=$(STRIP)
943 $(STRIP) $(INSTALLDIR)/vlan/usr/sbin/vconfig
946 pptp-client-install:
947 install -D pptp-client/pptp $(INSTALLDIR)/pptp-client/usr/sbin/pptp
948 $(STRIP) $(INSTALLDIR)/pptp-client/usr/sbin/pptp
951 accel-pptp: pppd accel-pptp/Makefile
952 @$(MAKE) -C accel-pptp
954 accel-pptp/Makefile: accel-pptp/Makefile.in $(LINUXDIR)/include/linux/version.h
955 cd accel-pptp && CFLAGS="-g -O2 $(EXTRACFLAGS)" \
956 $(CONFIGURE) --prefix=/usr KDIR=$(LINUXDIR) PPPDIR=$(TOP)/pppd
958 accel-pptp-clean:
959 -@$(MAKE) -C accel-pptp clean
960 @rm -f accel-pptp/Makefile
962 accel-pptp-install: accel-pptp
963 install -D accel-pptp/src/.libs/pptp.so $(INSTALLDIR)/accel-pptp/usr/lib/pppd/pptp.so
964 $(STRIP) $(INSTALLDIR)/accel-pptp/usr/lib/pppd/pptp.so
967 pptpd/stamp-h1:
968 cd $(TOP)/pptpd && $(CONFIGURE) --prefix=$(INSTALLDIR)/pptpd --enable-bcrelay CC=mipsel-uclibc-gcc STRIP=mipsel-uclibc-strip AR=mipsel-uclibc-ar LD=mipsel-uclibc-ld NM=mipsel-uclibc-nm RANLIB=mipsel-uclibc-ranlib
969 touch pptpd/stamp-h1
971 pptpd: pptpd/stamp-h1
973 pptpd-install: pptpd
974 @echo pptpd
975 @install -D pptpd/pptpd $(INSTALLDIR)/pptpd/usr/sbin/pptpd
976 @install -D pptpd/bcrelay $(INSTALLDIR)/pptpd/usr/sbin/bcrelay
977 @install -D pptpd/pptpctrl $(INSTALLDIR)/pptpd/usr/sbin/pptpctrl
978 @$(STRIP) $(INSTALLDIR)/pptpd/usr/sbin/pptpd
979 @$(STRIP) $(INSTALLDIR)/pptpd/usr/sbin/bcrelay
980 @$(STRIP) $(INSTALLDIR)/pptpd/usr/sbin/pptpctrl
982 pptpd-clean:
983 -@$(MAKE) -C pptpd clean
984 rm -rf pptpd/.deps pptpd/stamp-h1
987 pppd/Makefile: pppd/linux/Makefile.top
988 cd pppd && $(CONFIGURE) --prefix=/usr --sysconfdir=/tmp
990 pppd: pppd/Makefile
991 @$(SEP)
992 @$(MAKE) -C pppd MFLAGS='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
994 pppd-clean:
995 -@$(MAKE) -C pppd clean
996 @rm -f pppd/Makefile
998 pppd-install: pppd
999 install -D pppd/pppd/pppd $(INSTALLDIR)/pppd/usr/sbin/pppd
1000 $(STRIP) $(INSTALLDIR)/pppd/usr/sbin/pppd
1001 install -D pppd/chat/chat $(INSTALLDIR)/pppd/usr/sbin/chat
1002 $(STRIP) $(INSTALLDIR)/pppd/usr/sbin/chat
1003 ifeq ($(TCONFIG_L2TP),y)
1004 install -D pppd/pppd/plugins/pppol2tp/pppol2tp.so $(INSTALLDIR)/pppd/usr/lib/pppd/pppol2tp.so
1005 $(STRIP) $(INSTALLDIR)/pppd/usr/lib/pppd/*.so
1006 endif
1008 # ipupdate-install:
1009 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1010 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1012 zebra/stamp-h1:
1013 @cd zebra && rm -f config.cache && \
1014 CC=$(CC) AR=$(AR) RANLIB=$(RANLIB) LD=$(LD) \
1015 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1016 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1017 $(CONFIGURE) --sysconfdir=/etc \
1018 --enable-netlink $(if $(TCONFIG_IPV6),--enable-ipv6,--disable-ipv6) --disable-ripngd --disable-ospfd --disable-doc \
1019 --disable-ospf6d --disable-bgpd --disable-bgpd-announce
1020 @touch zebra/stamp-h1
1022 zebra: zebra/stamp-h1
1023 @$(MAKE) -C zebra CC=$(CC) AR=$(AR) RANLIB=$(RANLIB) LD=$(LD)
1025 zebra-clean:
1026 -@$(MAKE) -C zebra clean
1027 @rm -f zebra/stamp-h1
1029 zebra-install: zebra
1030 install -D zebra/zebra/zebra $(INSTALLDIR)/zebra/usr/sbin/zebra
1031 install -D zebra/ripd/ripd $(INSTALLDIR)/zebra/usr/sbin/ripd
1032 install -D zebra/lib/libzebra.so $(INSTALLDIR)/zebra/usr/lib/libzebra.so
1033 $(STRIP) $(INSTALLDIR)/zebra/usr/sbin/zebra
1034 $(STRIP) $(INSTALLDIR)/zebra/usr/sbin/ripd
1035 $(STRIP) $(INSTALLDIR)/zebra/usr/lib/libzebra.so
1038 rp-l2tp-install:
1039 install -d $(INSTALLDIR)/rp-l2tp/usr/lib/l2tp
1040 install rp-l2tp/handlers/*.so $(INSTALLDIR)/rp-l2tp/usr/lib/l2tp
1041 $(STRIP) $(INSTALLDIR)/rp-l2tp/usr/lib/l2tp/*.so
1042 install -D rp-l2tp/handlers/l2tp-control $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tp-control
1043 $(STRIP) $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tp-control
1044 install -D rp-l2tp/l2tpd $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tpd
1045 $(STRIP) $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tpd
1047 xl2tpd: pppd
1048 CFLAGS="-g $(EXTRACFLAGS)" $(MAKE) -C $@ PREFIX=/usr xl2tpd
1050 xl2tpd-install: xl2tpd
1051 install -D xl2tpd/xl2tpd $(INSTALLDIR)/xl2tpd/usr/sbin/xl2tpd
1052 $(STRIP) $(INSTALLDIR)/xl2tpd/usr/sbin/xl2tpd
1055 bpalogin-install:
1056 install -D bpalogin/bpalogin $(INSTALLDIR)/bpalogin/usr/sbin/bpalogin
1057 $(STRIP) $(INSTALLDIR)/bpalogin/usr/sbin/bpalogin
1060 # libnet:
1061 # @$(SEP)
1062 # @-mkdir -p libnet/lib
1063 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1065 libbcm:
1066 @[ ! -f libbcm/Makefile ] || $(MAKE) -C libbcm
1068 libbcm-install:
1069 install -D libbcm/libbcm.so $(INSTALLDIR)/libbcm/usr/lib/libbcm.so
1070 $(STRIP) $(INSTALLDIR)/libbcm/usr/lib/libbcm.so
1073 iproute2:
1074 @$(SEP)
1075 @$(MAKE) -C $@ KERNEL_INCLUDE=$(LINUXDIR)/include EXTRACFLAGS="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1077 iproute2-install: iproute2
1078 install -D iproute2/tc/tc $(INSTALLDIR)/iproute2/usr/sbin/tc
1079 $(STRIP) $(INSTALLDIR)/iproute2/usr/sbin/tc
1080 install -D iproute2/ip/ip $(INSTALLDIR)/iproute2/usr/sbin/ip
1081 $(STRIP) $(INSTALLDIR)/iproute2/usr/sbin/ip
1084 ntpc: nvram shared
1087 dropbear: dropbear/config.h
1088 @$(SEP)
1089 @$(MAKE) -C dropbear PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1
1091 dropbear-install:
1092 install -D dropbear/dropbearmulti $(INSTALLDIR)/dropbear/usr/bin/dropbearmulti
1093 $(STRIP) $(INSTALLDIR)/dropbear/usr/bin/dropbearmulti
1094 cd $(INSTALLDIR)/dropbear/usr/bin && \
1095 ln -sf dropbearmulti dropbear && \
1096 ln -sf dropbearmulti dropbearconvert && \
1097 ln -sf dropbearmulti dropbearkey && \
1098 ln -sf dropbearmulti dbclient && \
1099 ln -sf dropbearmulti ssh && \
1100 ln -sf dropbearmulti scp
1102 dropbear-clean:
1103 -@$(MAKE) -C dropbear clean
1104 @rm -f dropbear/config.h
1106 dropbear/config.h:
1107 cd dropbear && \
1108 CFLAGS="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1109 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1110 ac_cv_func_logout=no ac_cv_func_logwtmp=no \
1111 $(CONFIGURE) --disable-zlib --enable-syslog --disable-lastlog --disable-utmp \
1112 --disable-utmpx --disable-wtmp --disable-wtmpx --disable-pututline \
1113 --disable-pututxline --disable-loginfunc --disable-pam --enable-openpty --enable-bundled-libtom
1114 @$(MAKE) -C dropbear clean
1116 # Media libraries
1118 sqlite/stamp-h1:
1119 cd sqlite && \
1120 CC=$(CC) CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1121 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1122 $(CONFIGURE) --prefix=/usr --enable-shared --enable-static \
1123 --disable-readline --disable-dynamic-extensions --enable-threadsafe
1124 touch sqlite/stamp-h1
1126 sqlite: sqlite/stamp-h1
1127 @$(MAKE) -C sqlite all
1129 sqlite-clean:
1130 -@$(MAKE) -C sqlite clean
1131 @rm -f sqlite/stamp-h1
1133 sqlite-install: sqlite
1134 @$(SEP)
1135 ifneq ($(MEDIA_SERVER_STATIC),y)
1136 install -D sqlite/.libs/libsqlite3.so.0 $(INSTALLDIR)/sqlite/usr/lib/libsqlite3.so.0
1137 $(STRIP) $(INSTALLDIR)/sqlite/usr/lib/libsqlite3.so.0
1138 endif
1140 FFMPEG_FILTER_CONFIG= $(foreach c, $(2), --$(1)="$(c)")
1142 FFMPEG_DECODERS:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1143 FFMPEG_CONFIGURE_DECODERS:=$(call FFMPEG_FILTER_CONFIG,enable-decoder,$(FFMPEG_DECODERS))
1145 FFMPEG_PARSERS:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1146 FFMPEG_CONFIGURE_PARSERS:=$(call FFMPEG_FILTER_CONFIG,enable-parser,$(FFMPEG_PARSERS))
1148 FFMPEG_PROTOCOLS:=file
1149 FFMPEG_CONFIGURE_PROTOCOLS:=$(call FFMPEG_FILTER_CONFIG,enable-protocol,$(FFMPEG_PROTOCOLS))
1151 FFMPEG_DISABLED_DEMUXERS:=amr apc ape ass bethsoftvid bfi c93 daud dnxhd dsicin dxa ffm gsm gxf idcin iff image2 image2pipe ingenient ipmovie lmlm4 mm mmf msnwc_tcp mtv mxf nsv nut oma pva rawvideo rl2 roq rpl segafilm shorten siff smacker sol str thp tiertexseq tta txd vmd voc wc3 wsaud wsvqa xa yuv4mpegpipe
1152 FFMPEG_CONFIGURE_DEMUXERS:=$(call FFMPEG_FILTER_CONFIG,disable-demuxer,$(FFMPEG_DISABLED_DEMUXERS))
1154 ffmpeg/stamp-h1: zlib
1155 cd ffmpeg && symver_asm_label=no symver_gnu_asm=no symver=no CC=$(CC) \
1156 ./configure --enable-cross-compile --arch=mips --target_os=linux \
1157 --cross-prefix=$(CROSS_COMPILE) --enable-shared --enable-gpl --disable-doc \
1158 --enable-pthreads --enable-small --disable-encoders --disable-filters \
1159 --disable-muxers --disable-devices --disable-ffmpeg --disable-ffplay \
1160 --disable-ffserver --disable-ffprobe --disable-avdevice --disable-swscale \
1161 --disable-hwaccels --disable-network --disable-bsfs --disable-mpegaudio-hp \
1162 --enable-demuxers $(FFMPEG_CONFIGURE_DEMUXERS) \
1163 --disable-decoders $(FFMPEG_CONFIGURE_DECODERS) \
1164 --disable-parsers $(FFMPEG_CONFIGURE_PARSERS) \
1165 --disable-protocols $(FFMPEG_CONFIGURE_PROTOCOLS) \
1166 --extra-cflags="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1167 --extra-ldflags="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1168 --extra-libs="-L$(TOP)/zlib -lz" \
1169 --enable-zlib --disable-debug --prefix=''
1170 touch ffmpeg/stamp-h1
1172 ffmpeg: ffmpeg/stamp-h1 zlib
1173 @$(MAKE) -C ffmpeg all
1175 ffmpeg-clean:
1176 -@$(MAKE) -C ffmpeg clean
1177 @rm -f ffmpeg/stamp-h1 ffmpeg/config.h ffmpeg/config.mak
1179 ffmpeg-install: ffmpeg
1180 @$(SEP)
1181 ifneq ($(MEDIA_SERVER_STATIC),y)
1182 install -D ffmpeg/libavformat/libavformat.so.52 $(INSTALLDIR)/ffmpeg/usr/lib/libavformat.so.52
1183 install -D ffmpeg/libavcodec/libavcodec.so.52 $(INSTALLDIR)/ffmpeg/usr/lib/libavcodec.so.52
1184 install -D ffmpeg/libavutil/libavutil.so.50 $(INSTALLDIR)/ffmpeg/usr/lib/libavutil.so.50
1185 $(STRIP) $(INSTALLDIR)/ffmpeg/usr/lib/libavformat.so.52
1186 $(STRIP) $(INSTALLDIR)/ffmpeg/usr/lib/libavcodec.so.52
1187 $(STRIP) $(INSTALLDIR)/ffmpeg/usr/lib/libavutil.so.50
1188 endif
1190 libogg/stamp-h1:
1191 cd libogg && \
1192 CFLAGS="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1193 LDFLAGS="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1194 $(CONFIGURE) --enable-shared --enable-static --prefix=''
1195 touch libogg/stamp-h1
1197 libogg: libogg/stamp-h1
1198 @$(MAKE) -C libogg all
1200 libogg-clean:
1201 -@$(MAKE) -C libogg clean
1202 @rm -f libogg/stamp-h1
1204 libogg-install: libogg
1205 @$(SEP)
1206 ifneq ($(MEDIA_SERVER_STATIC),y)
1207 install -D libogg/src/.libs/libogg.so.0 $(INSTALLDIR)/libogg/usr/lib/libogg.so.0
1208 $(STRIP) $(INSTALLDIR)/libogg/usr/lib/libogg.so.0
1209 endif
1211 flac/stamp-h1: libogg
1212 cd flac && \
1213 CFLAGS="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1214 CPPFLAGS="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1215 LDFLAGS="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1216 $(CONFIGURE) --enable-shared --enable-static --prefix='' --disable-rpath \
1217 --disable-doxygen-docs --disable-xmms-plugin --disable-cpplibs \
1218 --without-libiconv-prefix --disable-altivec --disable-3dnow --disable-sse
1219 touch flac/stamp-h1
1221 flac: flac/stamp-h1 libogg
1222 @$(MAKE) -C flac/src/libFLAC all
1224 flac-clean:
1225 -@$(MAKE) -C flac clean
1226 @rm -f flac/stamp-h1
1228 flac-install: flac
1229 @$(SEP)
1230 ifneq ($(MEDIA_SERVER_STATIC),y)
1231 install -D flac/src/libFLAC/.libs/libFLAC.so.8 $(INSTALLDIR)/flac/usr/lib/libFLAC.so.8
1232 $(STRIP) $(INSTALLDIR)/flac/usr/lib/libFLAC.so.8
1233 endif
1235 jpeg/stamp-h1:
1236 cd jpeg && \
1237 CFLAGS="-Os $(EXTRACFLAGS) -fPIC" CC=$(CC) AR2="touch" $(CONFIGURE) --enable-shared --enable-static --prefix=''
1238 touch jpeg/stamp-h1
1240 jpeg: jpeg/stamp-h1
1241 @$(MAKE) -C jpeg LIBTOOL="" O=o A=a CC=$(CC) AR2="touch" libjpeg.a libjpeg.so
1243 jpeg-clean:
1244 -@$(MAKE) -C jpeg clean
1245 @rm -f jpeg/stamp-h1 jpeg/Makefile
1247 jpeg-install: jpeg
1248 @$(SEP)
1249 ifneq ($(MEDIA_SERVER_STATIC),y)
1250 install -D jpeg/libjpeg.so $(INSTALLDIR)/jpeg/usr/lib/libjpeg.so
1251 $(STRIP) $(INSTALLDIR)/jpeg/usr/lib/libjpeg.so
1252 endif
1254 libexif/stamp-h1:
1255 cd libexif && CFLAGS="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1256 LDFLAGS="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1257 $(CONFIGURE) --enable-shared --enable-static --prefix='' \
1258 --disable-docs --disable-rpath --disable-nls --without-libiconv-prefix --without-libintl-prefix
1259 touch libexif/stamp-h1
1261 libexif: libexif/stamp-h1
1262 @$(MAKE) -C libexif all
1264 libexif-clean:
1265 -@$(MAKE) -C libexif clean
1266 @rm -f libexif/stamp-h1
1268 libexif-install: libexif
1269 @$(SEP)
1270 ifneq ($(MEDIA_SERVER_STATIC),y)
1271 install -D libexif/libexif/.libs/libexif.so.12 $(INSTALLDIR)/libexif/usr/lib/libexif.so.12
1272 $(STRIP) $(INSTALLDIR)/libexif/usr/lib/libexif.so.12
1273 endif
1275 zlib/stamp-h1:
1276 cd zlib && \
1277 CC=$(CC) AR="ar rc" RANLIB=$(RANLIB) LD=$(LD) CFLAGS="-Os -Wall $(EXTRACFLAGS)" \
1278 ./configure --shared --prefix=''
1279 touch zlib/stamp-h1
1281 zlib: zlib/stamp-h1
1282 @$(MAKE) -C zlib CC=$(CC) AR="ar rc" RANLIB=$(RANLIB) LD=$(LD) all
1284 zlib-clean:
1285 -@$(MAKE) -C zlib clean
1286 @rm -f zlib/stamp-h1 zlib/Makefile zlib/zconf.h zlib/zlib.pc
1288 zlib-install: zlib
1289 @$(SEP)
1290 ifneq ($(MEDIA_SERVER_STATIC),y)
1291 install -d $(INSTALLDIR)/zlib/usr/lib
1292 install -D zlib/libz.so.1 $(INSTALLDIR)/zlib/usr/lib/
1293 $(STRIP) $(INSTALLDIR)/zlib/usr/lib/libz.so.1
1294 endif
1296 libid3tag/stamp-h1: zlib
1297 cd libid3tag && \
1298 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS="-I$(TOP)/zlib" \
1299 LDFLAGS="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1300 $(CONFIGURE) --enable-shared --enable-static --prefix='' \
1301 --disable-debugging --disable-profiling
1302 touch libid3tag/stamp-h1
1304 libid3tag: libid3tag/stamp-h1 zlib
1305 @$(MAKE) -C libid3tag all
1307 libid3tag-clean:
1308 -@$(MAKE) -C libid3tag clean
1309 @rm -f libid3tag/stamp-h1
1311 libid3tag-install: libid3tag
1312 @$(SEP)
1313 ifneq ($(MEDIA_SERVER_STATIC),y)
1314 install -D libid3tag/.libs/libid3tag.so.0 $(INSTALLDIR)/libid3tag/usr/lib/libid3tag.so.0
1315 $(STRIP) $(INSTALLDIR)/libid3tag/usr/lib/libid3tag.so.0
1316 endif
1318 libvorbis/stamp-h1: libogg
1319 cd libvorbis && \
1320 CFLAGS="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1321 CPPFLAGS="-I$(TOP)/libogg/include" \
1322 LDFLAGS="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1323 $(CONFIGURE) --enable-shared --enable-static --prefix='' --disable-oggtest \
1324 --with-ogg-includes="$(TOP)/libogg/include" \
1325 --with-ogg-libraries="$(TOP)/libogg/src/.libs"
1326 touch libvorbis/stamp-h1
1328 libvorbis: libvorbis/stamp-h1
1329 @$(MAKE) -C libvorbis/lib all
1331 libvorbis-clean:
1332 -@$(MAKE) -C libvorbis clean
1333 @rm -f libvorbis/stamp-h1
1335 libvorbis-install: libvorbis
1336 @$(SEP)
1337 ifneq ($(MEDIA_SERVER_STATIC),y)
1338 install -D libvorbis/lib/.libs/libvorbis.so.0 $(INSTALLDIR)/libvorbis/usr/lib/libvorbis.so.0
1339 $(STRIP) $(INSTALLDIR)/libvorbis/usr/lib/libvorbis.so.0
1340 endif
1342 minidlna: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1343 @$(SEP)
1344 @$(MAKE) -C minidlna CC=$(CC) $(if $(MEDIA_SERVER_STATIC),STATIC=1,) minidlna
1347 igmpproxy/src/Makefile: igmpproxy/src/Makefile.in
1348 cd igmpproxy && CFLAGS="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1349 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1350 $(CONFIGURE) --prefix=/usr
1352 igmpproxy: igmpproxy/src/Makefile
1353 @$(SEP)
1354 @$(MAKE) -C igmpproxy/src
1356 igmpproxy-install: igmpproxy
1357 install -D igmpproxy/src/igmpproxy $(INSTALLDIR)/igmpproxy/usr/sbin/igmpproxy
1358 $(STRIP) $(INSTALLDIR)/igmpproxy/usr/sbin/igmpproxy
1360 igmpproxy-clean:
1361 -@$(MAKE) -C igmpproxy/src clean
1362 @rm -f igmpproxy/src/Makefile
1364 udev:
1365 $(MAKE) -C $@ CROSS_COMPILE=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)" \
1366 PROGRAMS=udevtrigger
1368 udev-install: udev
1369 install -d $(INSTALLDIR)
1370 install -d $(TARGETDIR)
1371 $(MAKE) -C udev DESTDIR=$(INSTALLDIR) prefix=/udev install-udevtrigger
1373 hotplug2:
1374 $(MAKE) -C $@ CROSS_COMPILE=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)"
1376 hotplug2-install: hotplug2
1377 $(MAKE) -C hotplug2 install PREFIX=$(INSTALLDIR)/hotplug2 SUBDIRS=""
1378 $(MAKE) -C hotplug2/examples install PREFIX=$(INSTALLDIR)/hotplug2/rom KERNELVER=$(LINUX_KERNEL)
1380 emf:
1381 $(MAKE) -C $(SRCBASE)/emf/emfconf CROSS=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)"
1383 emf-install: emf
1384 $(MAKE) -C $(SRCBASE)/emf/emfconf INSTALLDIR=$(INSTALLDIR) install
1386 igs:
1387 $(MAKE) -C $(SRCBASE)/emf/igsconf CROSS=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)"
1389 igs-install: igs
1390 $(MAKE) -C $(SRCBASE)/emf/igsconf INSTALLDIR=$(INSTALLDIR) install
1392 wanuptime: nvram shared
1393 @$(SEP)
1394 @$(MAKE) -C wanuptime
1396 wanuptime-clean:
1397 -@$(MAKE) -C wanuptime clean
1399 wanuptime-install:
1400 install -D wanuptime/wanuptime $(INSTALLDIR)/wanuptime/usr/sbin/wanuptime
1401 $(STRIP) $(INSTALLDIR)/wanuptime/usr/sbin/wanuptime
1403 ebtables: dummy
1404 $(MAKE) -C ebtables CC=$(CC) LD=$(LD) \
1405 CFLAGS="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1406 LOCKFILE="/var/lock/ebtables" LOCKDIR="/var/lock" \
1407 BINDIR="/usr/sbin" LIBDIR="/usr/lib/ebtables" KERNEL_INCLUDES=$(LINUXDIR)/include $(if $(TCONFIG_IPV6),DO_IPV6=1,)
1409 ebtables-install: ebtables
1410 install -D ebtables/ebtables $(INSTALLDIR)/ebtables/usr/sbin/ebtables
1412 @mkdir -p $(TARGETDIR)/rom/etc
1413 @sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP)/ebtables/ethertypes > $(TARGETDIR)/rom/etc/ethertypes
1414 chmod 0644 $(TARGETDIR)/rom/etc/ethertypes
1416 install -d $(INSTALLDIR)/ebtables/usr/lib
1417 install -d $(INSTALLDIR)/ebtables/usr/lib/ebtables
1418 install -D ebtables/*.so $(INSTALLDIR)/ebtables/usr/lib/
1419 install -D ebtables/extensions/*.so $(INSTALLDIR)/ebtables/usr/lib/ebtables/
1421 $(STRIP) $(INSTALLDIR)/ebtables/usr/sbin/ebtables
1422 $(STRIP) $(INSTALLDIR)/ebtables/usr/lib/ebtables/*.so
1423 $(STRIP) $(INSTALLDIR)/ebtables/usr/lib/libebt*.so
1425 ebtables-clean:
1426 -@$(MAKE) -C ebtables clean
1428 #Roadkill
1429 glib/stamp-h1:
1430 @$(SEP)
1431 @cd glib && $(CONFIGURE) --prefix=/usr glib_cv_prog_cc_ansi_proto=no glib_cv_has__inline=yes glib_cv_has__inline__=yes glib_cv_hasinline=yes \
1432 glib_cv_sane_realloc=yes glib_cv_va_copy=no glib_cv___va_copy=yes glib_cv_va_val_copy=yes glib_cv_rtldglobal_broken=no \
1433 glib_cv_uscore=no glib_cv_func_pthread_mutex_trylock_posix=yes glib_cv_func_pthread_cond_timedwait_posix=yes glib_cv_sizeof_gmutex=24 \
1434 glib_cv_byte_contents_gmutex="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" glib_cv_sys_pthread_getspecific_posix=yes \
1435 glib_cv_sys_pthread_mutex_trylock_posix=yes glib_cv_sys_pthread_cond_timedwait_posix=yes ac_cv_func_getpwuid_r=yes ac_cv_func_getpwuid_r_posix=yes
1436 @$(MAKE) -C glib
1437 touch glib/stamp-h1
1439 glib: glib/stamp-h1
1441 glib-clean:
1442 -@$(MAKE) -C glib clean
1443 rm -f glib/stamp-h1
1445 glib-install: glib
1446 @$(MAKE) -C glib DESTDIR=$(INSTALLDIR)/glib install
1448 #Roadkill
1449 nocat/stamp-h1: glib-install
1450 @$(SEP)
1451 @cd nocat && \
1452 NC_CONF_PATH="/" \
1453 $(CONFIGURE) --with-firewall=iptables --with-glib-prefix="$(INSTALLDIR)/glib/usr" --localstatedir=/var --sysconfdir=/etc
1454 @$(MAKE) -C nocat
1456 echo *** integrate glib to nocat installdir
1457 install -d $(INSTALLDIR)/nocat/usr/lib
1458 install -D glib/.libs/libglib-1.2.so.0.0.10 $(INSTALLDIR)/nocat/usr/lib/libglib-1.2.so.0.0.10
1459 cd $(INSTALLDIR)/nocat/usr/lib && ln -s libglib-1.2.so.0.0.10 libglib-1.2.so.0
1460 $(STRIP) $(INSTALLDIR)/nocat/usr/lib/libglib-1.2.so.0.0.10
1461 touch nocat/stamp-h1
1463 nocat: nocat/stamp-h1
1465 nocat-clean:
1466 -@$(MAKE) -C nocat clean
1467 rm -f nocat/stamp-h1
1469 nocat-install:
1470 install -D nocat/src/splashd $(INSTALLDIR)/nocat/usr/sbin/splashd
1471 $(STRIP) $(INSTALLDIR)/nocat/usr/sbin/splashd
1472 mkdir -p $(INSTALLDIR)/nocat/usr/libexec/nocat
1473 install -D nocat/libexec/iptables/* $(INSTALLDIR)/nocat/usr/libexec/nocat
1475 lzo/stamp-h1:
1476 cd lzo && \
1477 CFLAGS="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE) --enable-shared --enable-static
1478 touch lzo/stamp-h1
1480 lzo: lzo/stamp-h1
1482 lzo-clean:
1483 -@$(MAKE) -C lzo clean
1484 @rm -f lzo/stamp-h1
1486 lzo-install: lzo
1487 install -D lzo/src/.libs/liblzo2.so $(INSTALLDIR)/lzo/usr/lib/liblzo2.so.2
1488 $(STRIP) $(INSTALLDIR)/lzo/usr/lib/liblzo2.so.2
1489 cd $(INSTALLDIR)/lzo/usr/lib && ln -sf liblzo2.so.2 liblzo2.so
1492 openvpn: openvpn/.conf openssl lzo
1494 openvpn/.conf:
1495 cd openvpn && CFLAGS="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1496 LDFLAGS="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1497 CPPFLAGS="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
1498 $(CONFIGURE) --prefix= \
1499 --with-crypto-library=openssl \
1500 --with-iproute-path="/usr/sbin/ip" \
1501 --disable-debug --disable-plugins --enable-management --enable-small \
1502 --disable-selinux --disable-socks --enable-password-save \
1503 OPENSSL_SSL_CFLAGS="-I$(TOP)/openssl/include" \
1504 OPENSSL_SSL_LIBS="-L$(TOP)/openssl -lssl"
1505 touch openvpn/.conf
1507 openvpn-clean:
1508 -@$(MAKE) -C openvpn clean
1509 @rm -f openvpn/.conf
1511 openvpn-install: openvpn
1512 install -D openvpn/src/openvpn/.libs/openvpn $(INSTALLDIR)/openvpn/usr/sbin/openvpn
1513 $(STRIP) -s $(INSTALLDIR)/openvpn/usr/sbin/openvpn
1514 chmod 0500 $(INSTALLDIR)/openvpn/usr/sbin/openvpn
1516 sd-idle/stamp-h1:
1517 cd sd-idle \
1518 CFLAGS="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
1519 $(MAKE) -C sd-idle
1520 chmod 0755 sd-idle/sd-idle
1521 touch sd-idle/stamp-h1
1523 sd-idle-clean:
1524 -@$(MAKE) -C sd-idle clean
1525 @rm -f sd-idle/stamp-h1
1527 sd-idle-install: sd-idle/stamp-h1
1528 install -d $(INSTALLDIR)/sd-idle/usr/bin
1529 install -D sd-idle/sd-idle $(INSTALLDIR)/sd-idle/usr/bin/sd-idle
1530 $(STRIP) -s $(INSTALLDIR)/sd-idle/usr/bin/sd-idle
1532 snmp/stamp-h1:
1533 cd snmp && \
1534 CFLAGS="-Os -Wall $(EXTRACFLAGS)" \
1535 $(CONFIGURE) --prefix=/usr --with-endianness=little --enable-mini-agent --disable-debugging \
1536 --disable-privacy --without-opaque-special-types --with-persistent-directory=/tmp/snmp-persist \
1537 --with-default-snmp-version=3 --with-sys-contact=root --with-sys-location=Unknown --with-logfile=/dev/null \
1538 --with-out-transports=UDPIPv6,TCPIPv6,AAL5PVC,IPX,TCP,Unix --enable-shared=no --enable-static --with-gnu-ld \
1539 --enable-internal-md5 --with-copy-persistent-files=no --without-openssl -sysconfdir=/tmp \
1540 --with-mib-modules=mibII,host,mibII/ip,mibII/tcp,mibII/udp,mibII/icmp,mibII/var_route,mibII/kernel_linux,qos,ucd_snmp \
1541 --with-out-mib-modules=snmpv3mibs,agent_mips,agentx,notification,utilities,target --disable-ipv6 --with-defaults \
1542 --without-efence --without-rsaref --without-kmem-usage --without-rpm --without-dmalloc
1543 touch snmp/stamp-h1
1545 snmp: snmp/stamp-h1
1546 @$(SEP)
1547 $(MAKE) -C snmp
1549 snmp-clean:
1550 -@$(MAKE) -C snmp clean
1551 @rm -f snmp/stamp-h1
1553 snmp-install: snmp
1554 install -D snmp/agent/snmpd $(INSTALLDIR)/snmp/usr/sbin/snmpd
1555 $(STRIP) $(INSTALLDIR)/snmp/usr/sbin/snmpd
1557 libpcap/stamp-h1: openssl
1558 cd libpcap && \
1559 CFLAGS="-Os -Wall $(EXTRACFLAGS)" \
1560 ac_cv_linux_vers=2 \
1561 $(CONFIGURE) --prefix=/usr --with-pcap=linux \
1562 $(if $(TCONFIG_IPV6),--enable-ipv6,--disable-ipv6)
1563 touch libpcap/stamp-h1
1565 libpcap: libpcap/stamp-h1
1566 @$(SEP)
1567 $(MAKE) -C libpcap
1569 libpcap-clean:
1570 -@$(MAKE) -C libpcap clean
1571 @rm -f libpcap/stamp-h1
1573 libpcap-install:
1574 @$(SEP)
1576 tcpdump/stamp-h1: openssl libpcap
1577 cd tcpdump && \
1578 CFLAGS="-Os -Wall $(EXTRACFLAGS) -I$(TOP)/openssl/include" \
1579 LDFLAGS="-L$(TOP)/openssl" \
1580 ac_cv_linux_vers=2 ac_cv_search_getaddrinfo=no \
1581 $(CONFIGURE) --prefix=/usr --disable-smb \
1582 --without-smi --with-crypt \
1583 $(if $(TCONFIG_IPV6),--enable-ipv6,--disable-ipv6)
1584 touch tcpdump/stamp-h1
1586 tcpdump: tcpdump/stamp-h1
1587 @$(SEP)
1588 $(MAKE) -C tcpdump
1590 tcpdump-clean:
1591 -@$(MAKE) -C tcpdump clean
1592 @rm -f tcpdump/stamp-h1
1594 tcpdump-install: tcpdump
1595 install -D tcpdump/tcpdump $(INSTALLDIR)/tcpdump/usr/sbin/tcpdump
1596 $(STRIP) $(INSTALLDIR)/tcpdump/usr/sbin/tcpdump
1599 # Generic rules
1603 @[ ! -d $* ] || ( $(SEP); $(MAKE) -C $* )
1606 %-clean:
1607 @-[ ! -d $* ] || $(MAKE) -C $* clean
1609 %-distclean:
1610 @-[ ! -d $* ] || $(MAKE) -C $* distclean
1612 %-install: %
1613 @[ ! -d $* ] || $(MAKE) -C $* install INSTALLDIR=$(INSTALLDIR)/$*
1615 %-build:
1616 $(MAKE) $*-clean $*
1618 $(obj-y) $(obj-n) $(obj-clean) $(obj-install): dummy
1620 .PHONY: all clean distclean mrproper install package
1621 .PHONY: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1622 .PHONY: dummy libnet