1 # Broadcom Linux Router Makefile
3 # Copyright 2005, Broadcom Corporation
6 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
7 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
8 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
9 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
15 #TOMATO_EXPERIMENTAL=0
17 #export PARALLEL_BUILD :=
18 export PARALLEL_BUILD
:= -j
`grep -c '^processor' /proc/cpuinfo`
23 SEP
=echo
"\033[41;1m $@ \033[0m"
45 # obj-y += vlan # use Busybox vconfig
53 obj-
$(TCONFIG_TOR
) += tor
54 obj-
$(TCONFIG_TOR
) += libevent
55 obj-
$(TCONFIG_TOR
) += zlib
56 obj-
$(TCONFIG_DNSCRYPT
) += libsodium
57 obj-
$(TCONFIG_DNSCRYPT
) += dnscrypt
58 obj-
$(TCONFIG_SNMP
) += snmp
59 obj-
$(TCONFIG_SDHC
) += mmc
61 # !!TB - updated Broadcom Wireless driver
69 obj-
$(TCONFIG_RAID
) += mdadm
71 obj-
$(TCONFIG_NFS
) += portmap
72 obj-
$(TCONFIG_NFS
) += e2fsprogs
73 obj-
$(TCONFIG_NFS
) += libevent
74 obj-
$(TCONFIG_NFS
) += libnfsidmap
75 obj-
$(TCONFIG_NFS
) += nfs-utils
78 obj-
$(TCONFIG_NOCAT
) += nocat
81 obj-
$(TCONFIG_USB
) += p910nd
82 obj-
$(TCONFIG_USB
) += comgt
84 obj-
$(TCONFIG_UPS
) += apcupsd
86 ifeq ($(CONFIG_LINUX26
),y
)
87 obj-
$(TCONFIG_USB
) += sd-idle
89 obj-
$(TCONFIG_USB
) += scsi-idle
94 obj-y
+= usbmodeswitch
95 obj-
$(TCONFIG_FTP
) += vsftpd
97 ifeq ($(CONFIG_LINUX26
),y
)
98 ifeq ($(TCONFIG_SAMBASRV
),y
)
101 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
104 ifeq ($(TCONFIG_MICROSD
),y
)
109 ifeq ($(TCONFIG_SAMBASRV
),y
)
110 ifeq ($(TCONFIG_SAMBA3
),y
)
117 ifeq ($(TCONFIG_IPV6
),y
)
118 export TCONFIG_IPV6
:= y
123 ifeq ($(TCONFIG_IPSEC
),y
)
124 export TCONFIG_IPSEC
:= y
129 ifeq ($(TCONFIG_RAID
),y
)
130 export TCONFIG_RAID
:= y
135 obj-
$(NEED_SAMBA2
) += samba
136 obj-
$(NEED_SAMBA3
) += samba3
138 ifeq ($(CONFIG_BCMWL6
),y
)
139 ifeq ($(TCONFIG_UFSD
),y
)
140 obj-
$(TCONFIG_NTFS
) += ufsd
142 obj-
$(TCONFIG_NTFS
) += ntfs-3g
145 obj-
$(TCONFIG_NTFS
) += ntfs-3g
148 obj-
$(TCONFIG_EBTABLES
) += ebtables
149 #obj-$(TCONFIG_IPV6) += libdaemon
150 #obj-$(TCONFIG_IPV6) += radvd
151 obj-
$(TCONFIG_IPV6
) += dhcpv6
153 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
154 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
155 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
156 #obj-$(TCONFIG_MEDIA_SERVER) += libiconv
157 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
158 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
159 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
160 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
161 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
162 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
163 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
164 MEDIA_SERVER_STATIC
=y
165 #MEDIA_SERVER_STATIC :=
167 #obj-y += libnfnetlink
170 obj-
$(CONFIG_LINUX26
) += ipset
174 # configurable packages
176 obj-
$(TCONFIG_L2TP
) += xl2tpd
177 obj-
$(TCONFIG_PPTP
) += accel-pptp
178 obj-
$(TCONFIG_PPTPD
) += pptpd
179 obj-
$(TCONFIG_HTTPS
) += openssl
180 obj-
$(TCONFIG_SSH
) += dropbear
181 obj-
$(TCONFIG_ZEBRA
) += zebra
182 # obj-$(TCONFIG_IPP2P) += ipp2p
183 obj-
$(TCONFIG_LZO
) += lzo
184 obj-
$(TCONFIG_OPENVPN
) += openvpn
185 obj-
$(TCONFIG_OPENVPN
) += openvpn_plugin_auth_nvram
186 obj-
$(TCONFIG_TINC
) += tinc
187 obj-
$(TCONFIG_EMF
) += emf
188 obj-
$(TCONFIG_EMF
) += igs
191 # additional modules for nginx
192 ifeq (obj-
$(TCONFIG_NGINX
),y
)
193 ifndef ($(ADDITIONAL_MODULES
))
196 ifeq ($(TCONFIG_IPV6
),y
)
197 ADDITIONAL_MODULES
+= --with-ipv6
201 obj-
$(TCONFIG_NGINX
) += libncurses
202 obj-
$(TCONFIG_NGINX
) += mysql
203 obj-
$(TCONFIG_NGINX
) += openssl
204 obj-
$(TCONFIG_NGINX
) += spawn-fcgi
205 obj-
$(TCONFIG_NGINX
) += pcre
206 obj-
$(TCONFIG_NGINX
) += sqlite
207 obj-
$(TCONFIG_NGINX
) += libiconv
208 obj-
$(TCONFIG_NGINX
) += libxml2
209 obj-
$(TCONFIG_NGINX
) += libpng
210 obj-
$(TCONFIG_NGINX
) += jpeg
211 obj-
$(TCONFIG_NGINX
) += php
212 obj-
$(TCONFIG_NGINX
) += nginx
214 obj-
$(TCONFIG_NANO
) += libncurses
215 obj-
$(TCONFIG_NANO
) += nano
217 obj-
$(TCONFIG_BBT
) += openssl
218 obj-
$(TCONFIG_BBT
) += libevent
219 obj-
$(TCONFIG_BBT
) += libcurl
220 obj-
$(TCONFIG_BBT
) += transmission
221 obj-
$(TCONFIG_BT
) += btgui
222 obj-
$(TCONFIG_BBT
) += zlib
223 #obj-$(TCONFIG_BBT) += libiconv
225 obj-
$(CONFIG_LINUX26
) += hotplug2
226 obj-
$(CONFIG_LINUX26
) += udevtrigger
228 ifeq ($(TCONFIG_OPENVPN
),y
)
229 export FULL_OPENSSL
:= y
231 ifeq ($(TCONFIG_FTP_SSL
),y
)
232 export FULL_OPENSSL
:= y
234 ifeq ($(TCONFIG_BBT
),y
)
235 export FULL_OPENSSL
:= y
237 ifeq ($(TCONFIG_TOR
),y
)
238 export FULL_OPENSSL
:= y
240 ifeq ($(TCONFIG_TOR
),y
)
241 export FULL_OPENSSL
:= y
243 ifeq ($(TCONFIG_TINC
),y
)
244 export FULL_OPENSSL
:= y
256 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
257 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
265 all: clean-build libc
$(obj-y
) kernel
268 kernel
: $(LINUXDIR
)/.config
271 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
272 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
274 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
275 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
277 ifeq ($(CONFIG_LINUX26
),y
)
278 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
) $(PARALLEL_BUILD
)
283 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
) $(PARALLEL_BUILD
)
285 lzma-loader-install
: lzma-loader
290 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
)
293 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
294 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
296 install package
: $(obj-install
) $(LINUXDIR
)/.config
299 install -d
$(TARGETDIR
)
303 $(MAKE
) -C
$(LINUXDIR
) modules_install \
304 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" \
305 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
307 ifneq ($(CONFIG_LINUX26
),y
)
308 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
309 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
310 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
311 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
312 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
313 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
314 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
316 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
319 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
322 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
323 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
324 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
325 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
326 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
327 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
328 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
329 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
330 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
331 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
334 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
335 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
336 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
337 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
338 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
339 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
340 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
341 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
342 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
343 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
344 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
345 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfs
/* .
&& rm -rf hfs || true
346 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
347 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
348 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
349 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
350 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
351 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
352 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
353 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
354 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
355 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
356 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
357 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
358 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
359 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
360 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
361 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
362 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
363 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
364 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
365 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
366 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
367 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv core
/* .
&& rm -rf core || true
368 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv card
/* .
&& rm -rf card || true
369 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv host
/* .
&& rm -rf host || true
370 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
371 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
372 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
373 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
374 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
375 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
376 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
377 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
378 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
379 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
380 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
381 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
383 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
384 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
385 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
386 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
387 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv usb
/* .
&& rm -rf usb || true
388 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
391 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
392 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
395 ifneq ($(TCONFIG_L7
),y
)
396 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
400 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
401 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
402 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
403 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
404 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
405 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
406 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
407 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
408 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
409 ifeq ($(TCONFIG_SSH
),y
)
410 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
412 ifeq ($(TCONFIG_BBT
),y
)
413 install $(LIBDIR
)/librt-0.9
.30.1.so
$(TARGETDIR
)/lib
/librt.so
.0
415 ifeq ($(TCONFIG_NGINX
),y
)
416 install $(LIBDIR
)/libstdc
++.so
.6 $(TARGETDIR
)/lib
/libstdc
++.so
.6
417 cd
$(TARGETDIR
)/lib
&& ln
-sf libstdc
++.so
.6 libstdc
++.so
418 $(STRIP
) $(TARGETDIR
)/lib
/libstdc
++.so
.6
420 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
421 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
422 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
425 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
429 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
430 @
$(SRCBASE
)/btools
/libfoo.pl
432 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
434 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
435 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
437 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
438 # separated/copied extra stuff
439 @
rm -rf
$(PLATFORMDIR
)/extras
440 @mkdir
$(PLATFORMDIR
)/extras
441 @mkdir
$(PLATFORMDIR
)/extras
/ipsec
442 @mkdir
$(PLATFORMDIR
)/extras
/raid
443 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
444 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/usr/lib/iptables/libipt_policy.*o $(PLATFORMDIR)/extras/ipsec/ || true
446 $(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
447 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
449 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/mdadm
$(PLATFORMDIR
)/extras
/raid
/ || true
450 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md
/*.ko
$(PLATFORMDIR
)/extras
/raid
/ || true
451 $(if
$(TCONFIG_RAID
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md || true
453 @cp
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ip_set
*o
$(PLATFORMDIR
)/extras
/ || true
454 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
455 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
456 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
457 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
458 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
459 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
460 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
461 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
462 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
463 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
464 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
465 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
466 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
467 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
468 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
469 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
471 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
472 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
473 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
474 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
475 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-acm.
*o
$(PLATFORMDIR
)/extras
/ || true
476 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
477 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
478 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
479 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
480 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
481 $(if
$(NEED_SD_MODULES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
482 $(if
$(NEED_SD_MODULES
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc || true
484 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ch341.
*o
$(PLATFORMDIR
)/extras
/ || true
485 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
486 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
487 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
488 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
489 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
490 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
491 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
492 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
493 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
494 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-wdm.
*o
$(PLATFORMDIR
)/extras
/ || true
495 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
496 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
497 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/qmi_wwan.
*o
$(PLATFORMDIR
)/extras
/ || true
498 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ipheth.
*o
$(PLATFORMDIR
)/extras
/ || true
499 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
500 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
501 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
502 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
503 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
504 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
505 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
506 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
507 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
508 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
509 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
510 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
511 $(if
$(TCONFIG_CTF
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
512 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
513 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
514 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
515 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
516 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
517 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
518 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm || true
519 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
520 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key || true
521 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/xfrm
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
522 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv*/tunnel*.ko $(PLATFORMDIR)/extras/ipsec/ || true
523 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ah
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
524 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/esp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
525 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ipcomp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
526 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_policy.ko $(PLATFORMDIR)/extras/ipsec/ || true
528 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
529 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
530 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
531 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
532 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
533 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
534 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
536 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
537 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
538 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
539 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
540 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
541 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
542 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
543 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
544 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
545 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
546 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
547 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
548 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfs.
*o
$(PLATFORMDIR
)/extras
/ || true
549 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
551 ifneq ($(TCONFIG_USB
),y
)
552 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
553 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
554 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
557 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
558 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
559 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
560 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
561 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
563 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
564 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
565 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
566 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
567 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
568 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
569 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
571 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
572 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
574 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
575 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
576 @cp
-r
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
578 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
579 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
580 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
581 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
582 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
583 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
584 ifneq ($(NEED_EX_USB
),y
)
585 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
586 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
588 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
590 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
591 ifeq ($(TCONFIG_L7PAT
),y
)
592 @cd layer7
&& .
/squish.sh
593 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
596 ifeq ($(TCONFIG_PPTPD
),y
)
597 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/vpn
598 cp rc
/vpn
/* $(TARGETDIR
)/rom
/etc
/vpn
599 chmod
+x
$(TARGETDIR
)/rom
/etc
/vpn
/*
602 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
603 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
606 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
608 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
609 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-no-duplicates | tee target.
info
611 # Package kernel and filesystem
612 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
613 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
614 # $(MAKE) -C $(LINUXDIR) zImage ; \
616 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
617 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
620 # Pad self-booting Linux to a 64 KB boundary
621 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
622 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
623 # Append filesystem to self-booting Linux
624 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
627 libc
: $(LIBDIR
)/ld-uClibc.so
.0
628 # $(MAKE) -C ../../../tools-src/uClibc all
629 # $(MAKE) -C ../../../tools-src/uClibc install
636 clean: clean-build
$(obj-clean
)
637 rm -rf layer7
/squished
638 rm -f .ipv6-y .ipv6-n
639 rm -f .fullssl-y .fullssl-n
645 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
646 rm -rf
$(PLATFORMDIR
)/extras
649 ifneq ($(INSIDE_MAK
),1)
650 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
652 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
658 CONFIG_IN
:= config
/config.in
660 config
/conf config
/mconf
:
664 @config
/conf
$(CONFIG_IN
)
667 @config
/mconf
$(CONFIG_IN
)
669 roldconf
: config
/conf
670 @config
/conf
-o
$(CONFIG_IN
)
671 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
674 @
$(MAKE
) -C
$(LINUXDIR
) config
677 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
680 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
681 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
684 @
$(MAKE
) -C busybox oldconfig
686 config conf
: rconf kconf
688 menuconfig mconf
: rmconf kmconf
691 @
rm -f .ipv6-y .ipv6-n
692 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
695 .fullssl-y .fullssl-n
:
696 @
rm -f .fullssl-y .fullssl-n
697 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
700 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
702 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
706 # overrides and extra dependencies
710 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" $(PARALLEL_BUILD
)
713 rm -rf
$(INSTALLDIR
)/busybox
714 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
717 -@
$(MAKE
) -C busybox
distclean
720 $(MAKE
) -C busybox menuconfig
723 httpd
: shared nvram mssl
728 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
732 @
$(MAKE
) -C matrixssl
/src
738 -@
$(MAKE
) -C matrixssl
/src
clean
741 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
742 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
743 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
744 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
745 PTHREAD_LIBS
="-lpthread" \
747 @touch cyassl
/stamp-h1
749 cyassl
: cyassl
/stamp-h1
754 -@
$(MAKE
) -C cyassl
clean
755 @
rm -f cyassl
/stamp-h1
760 ifeq ($(FULL_OPENSSL
),y
)
761 OPENSSL_CIPHERS
:=enable-rc5
763 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
768 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
769 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
770 shared
$(OPENSSL_CIPHERS
) no-ssl2 no-ssl3 \
771 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
772 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
773 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
774 no-zlib no-engines no-sse2 \
775 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
777 @
$(MAKE
) -C openssl
clean
778 @touch openssl
/stamp-h1
780 openssl
: openssl
/stamp-h1
783 -@
$(MAKE
) -C openssl
clean
784 @
rm -f openssl
/stamp-h1
786 openssl-install
: openssl
787 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
788 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
789 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
791 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
792 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
793 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
795 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
797 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
798 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
800 ifeq ($(FULL_OPENSSL
),y
)
801 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
802 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
803 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
806 mssl
: $(if
$(FULL_OPENSSL
),openssl
,cyassl
)
813 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
814 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
816 bridge
: bridge
/Makefile
821 -@
$(MAKE
) -C bridge
clean
822 @
rm -f bridge
/Makefile
825 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
826 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
828 dnsmasq
: $(if
$(TCONFIG_DNSSEC
),nettle
,)
830 @
$(MAKE
) -C dnsmasq
$(PARALLEL_BUILD
) \
831 COPTS
="$(if $(TCONFIG_DNSSEC),-I$(TOP)/nettle/include -I$(TOP)/gmp -DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC,) \
832 $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) \
833 $(if $(CONFIG_LINUX26),-DUSE_IPSET,-DNO_IPSET) \
834 -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
835 LDFLAGS
="$(if $(TCONFIG_DNSSEC),-L$(TOP)/nettle/lib -L$(TOP)/gmp/.libs,) -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
836 $(if
$(TCONFIG_DNSSEC
),PKG_CONFIG_PATH
="$(TOP)/nettle/lib/pkgconfig",)
839 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
840 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
843 @cd nettle
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
844 CPPFLAGS
="-I$(TOP)/gmp" \
845 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
846 LDFLAGS
="-L$(TOP)/gmp/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
847 $(CONFIGURE
) prefix=$(TOP
)/nettle
848 @touch nettle
/stamp-h1
850 nettle
: nettle
/stamp-h1
853 @
$(MAKE
) -C nettle
install
856 -@
$(MAKE
) -C nettle
clean
857 @
rm -f nettle
/stamp-h1
858 @
rm -rf nettle
/include nettle
/lib nettle
/bin nettle
/share
861 @cd gmp
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
862 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
863 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
872 @
$(MAKE
) -C gmp
clean
876 ifeq ($(CONFIG_LINUX26
),y
)
877 cp
-f iptables
/extensions
/libipt_ipp2p_K26.c iptables
/extensions
/libipt_ipp2p.c
879 cp
-f iptables
/extensions
/libipt_ipp2p_K24.c iptables
/extensions
/libipt_ipp2p.c
882 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
885 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
886 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
887 ln
-sf iptables iptables-restore
&& \
888 ln
-sf iptables iptables-save
890 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
891 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
893 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
895 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
896 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
897 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
899 ifeq ($(TCONFIG_IPV6
),y
)
900 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
901 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
902 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
903 ln
-sf ip6tables ip6tables-restore
&& \
904 ln
-sf ip6tables ip6tables-save
908 -@
$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
912 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,) $(PARALLEL_BUILD
)
913 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
916 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
918 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
919 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
920 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
921 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
922 @touch rp-pppoe
/src
/stamp-h1
924 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
925 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
$(PARALLEL_BUILD
)
928 -@
$(MAKE
) -C rp-pppoe
/src
clean
929 @
rm -f rp-pppoe
/src
/pppoe-relay
930 @
rm -f rp-pppoe
/src
/stamp-h1
932 rp-pppoe-install
: rp-pppoe
933 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
934 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
935 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
936 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
939 upnp
: nvram shared iptables
941 libnfnetlink
/stamp-h1
:
942 cd
$(TOP
)/libnfnetlink
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
943 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
944 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
945 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
946 touch libnfnetlink
/stamp-h1
948 libnfnetlink
: libnfnetlink
/stamp-h1
950 $(MAKE
) -C libnfnetlink
952 libnfnetlink-install
:
953 install -D libnfnetlink
/src
/.libs
/libnfnetlink.so
.0.2.0 $(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
954 $(STRIP
) -s
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
955 cd
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/ && \
956 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
.0 && \
957 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
960 #ifeq ($(TCONFIG_IPV6),y)
961 # @cd miniupnpd && ./genconfig.sh --leasefile --ipv6
963 @cd miniupnpd
&& .
/genconfig.sh
--leasefile
--vendorcfg
966 miniupnpd
: iptables miniupnpd-config
968 $(MAKE
) -C miniupnpd miniupnpd
-f Makefile.linux CC
=$(CC
) \
969 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include" \
970 LDFLAGS
="-L$(TOP)/iptables -liptc" LIBS
="" $(PARALLEL_BUILD
)
973 -@
$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
974 @
rm -f miniupnpd
/config.h
977 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
978 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
983 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
985 $(MAKE
) -C vsftpd
$(PARALLEL_BUILD
)
987 vsftpd-install
: vsftpd
988 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
989 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
991 ufsd
: kernel_header kernel
995 @
$(MAKE
) -C ufsd
install INSTALLDIR
=$(INSTALLDIR
)/ufsd
999 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1000 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1001 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
1002 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
1003 --disable-ntfsprogs
--disable-crypto
--without-uuid \
1004 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
1006 ntfs-3g
: ntfs-3g
/Makefile
1007 @
$(MAKE
) -C ntfs-3g
$(PARALLEL_BUILD
)
1010 -@
$(MAKE
) -C ntfs-3g
clean
1011 @
rm -f ntfs-3g
/Makefile
1013 ntfs-3g-install
: ntfs-3g
1014 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1015 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1016 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
1017 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
1018 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
1020 libusb10
/Makefile
: libusb10
/Makefile.in
1021 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
1022 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
1024 libusb10
: libusb10
/Makefile
1027 libusb10-install
: libusb10
1028 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
1029 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
1032 -@
$(MAKE
) -C
$@
clean
1033 @
rm -rf libusb10
/Makefile
1035 libusb
/Makefile
: libusb
/Makefile.in
1036 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
1037 $(CONFIGURE
) --prefix=/usr \
1038 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
1039 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
1040 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
1042 libusb
: libusb10 libusb
/Makefile
1045 libusb-install
: libusb
1046 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
1047 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
1050 -@
$(MAKE
) -C
$@
clean
1051 @
rm -rf libusb
/Makefile
1053 usbmodeswitch
: libusb10
1054 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
1055 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
1056 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
1058 usbmodeswitchdb-install
:
1059 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
1060 # compress whitespace
1061 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
1063 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
1066 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
1067 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1068 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1069 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1070 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
1072 #libdaemon: libdaemon/Makefile
1075 #libdaemon/Makefile: libdaemon/Makefile.in
1076 # cd libdaemon && $(CONFIGURE) ac_cv_func_setpgrp_void=yes \
1077 # --disable-dependency-tracking
1079 #libdaemon-install: libdaemon
1080 # install -D libdaemon/libdaemon/.libs/libdaemon.so.0.5.0 $(INSTALLDIR)/libdaemon/usr/lib/libdaemon.so.0.5.0
1081 # $(STRIP) $(INSTALLDIR)/libdaemon/usr/lib/*.so.*
1082 # cd $(INSTALLDIR)/libdaemon/usr/lib && \
1083 # ln -sf libdaemon.so.0.5.0 libdaemon.so && \
1084 # ln -sf libdaemon.so.0.5.0 libdaemon.so.0
1087 # -@$(MAKE) -C libdaemon distclean
1090 # cd radvd && CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1091 # LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1092 # $(CONFIGURE) --prefix="" --disable-dependency-tracking \
1093 # DAEMON_CFLAGS="-I$(TOP)/libdaemon" \
1094 # DAEMON_LIBS="-ldaemon -L$(TOP)/libdaemon/libdaemon/.libs"
1095 # @$(MAKE) -C radvd clean
1096 # @touch radvd/stamp-h1
1098 #radvd: libdaemon radvd/stamp-h1
1101 # -@$(MAKE) -C radvd distclean
1102 # @rm -f radvd/stamp-h1
1104 #radvd-install: radvd
1105 # install -D radvd/radvd $(INSTALLDIR)/radvd/usr/sbin/radvd
1106 # $(STRIP) $(INSTALLDIR)/radvd/usr/sbin/radvd
1110 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
1111 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1112 ac_cv_func_setpgrp_void
=yes \
1113 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
1114 @
$(MAKE
) -C dhcpv6
clean
1115 @touch dhcpv6
/stamp-h1
1117 dhcpv6
: dhcpv6
/stamp-h1
1119 @
$(MAKE
) -C dhcpv6 dhcp6c
1121 dhcpv6-install
: dhcpv6
1122 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1123 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1126 -@
$(MAKE
) -C dhcpv6
clean
1127 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
1136 prebuilt
: shared libbcmcrypto
1140 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
1143 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
1144 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
1147 pptp-client-install
:
1148 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1149 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1152 accel-pptp
: pppd accel-pptp
/Makefile
1153 @
$(MAKE
) -C accel-pptp
1155 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
1156 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
1157 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
1160 -@
$(MAKE
) -C accel-pptp
clean
1161 @
rm -f accel-pptp
/Makefile
1163 accel-pptp-install
: accel-pptp
1164 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1165 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1168 cd pptpd
&& $(CONFIGURE
) --prefix=$(INSTALLDIR
)/pptpd
--enable-bcrelay CC
=mipsel-uclibc-gcc \
1169 STRIP
=mipsel-uclibc-strip AR
=mipsel-uclibc-ar LD
=mipsel-uclibc-ld NM
=mipsel-uclibc-nm RANLIB
=mipsel-uclibc-ranlib
1170 touch pptpd
/stamp-h1
1172 pptpd
: pptpd
/stamp-h1
1174 pptpd-install
: pptpd
1176 @
install -D pptpd
/pptpd
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1177 @
install -D pptpd
/bcrelay
$(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1178 @
install -D pptpd
/pptpctrl
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1179 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1180 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1181 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1184 -@
$(MAKE
) -C pptpd
clean
1185 rm -rf pptpd
/stamp-h1 pptpd
/.deps
1187 pppd
/Makefile
: pppd
/linux
/Makefile.top
1188 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
1192 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
1195 -@
$(MAKE
) -C pppd
clean
1196 @
rm -f pppd
/Makefile
1199 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1200 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1201 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1202 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1203 ifeq ($(TCONFIG_L2TP
),y
)
1204 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
1205 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
1209 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1210 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1213 @cd zebra
&& rm -f config.cache
&& \
1214 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1215 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1216 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1217 $(CONFIGURE
) --sysconfdir
=/etc \
1218 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
1219 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
1220 @touch zebra
/stamp-h1
1222 zebra
: zebra
/stamp-h1
1223 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
1226 -@
$(MAKE
) -C zebra
clean
1227 @
rm -f zebra
/stamp-h1
1229 zebra-install
: zebra
1230 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1231 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1232 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1233 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1234 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1235 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1239 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1240 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1241 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
1242 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1243 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1244 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1245 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1248 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
1250 xl2tpd-install
: xl2tpd
1251 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1252 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1256 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1257 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1262 # @-mkdir -p libnet/lib
1263 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1267 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1270 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1273 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1274 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1279 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1281 iproute2-install
: iproute2
1282 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1283 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1284 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1285 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1291 dropbear
: dropbear
/config.h
1293 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 $(PARALLEL_BUILD
)
1296 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1297 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1298 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1299 ln
-sf dropbearmulti dropbear
&& \
1300 ln
-sf dropbearmulti dropbearconvert
&& \
1301 ln
-sf dropbearmulti dropbearkey
&& \
1302 ln
-sf dropbearmulti dbclient
&& \
1303 ln
-sf dropbearmulti ssh
&& \
1304 ln
-sf dropbearmulti scp
1307 -@
$(MAKE
) -C dropbear
clean
1308 @
rm -f dropbear
/config.h
1312 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1313 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1314 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1315 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1316 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1317 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1318 @
$(MAKE
) -C dropbear
clean
1324 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1325 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1326 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1327 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1328 touch sqlite
/stamp-h1
1330 sqlite
: sqlite
/stamp-h1
1331 @
$(MAKE
) -C sqlite
all $(PARALLEL_BUILD
)
1334 -@
$(MAKE
) -C sqlite
clean
1335 @
rm -f sqlite
/stamp-h1
1337 sqlite-install
: sqlite
1339 ifeq ($(TCONFIG_NGINX
),y
)
1340 install -D sqlite
/.libs
/libsqlite3.so
.0.8.6 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1341 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1342 cd
$(INSTALLDIR
)/sqlite
/usr
/lib
/ && \
1343 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
.0 && \
1344 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
1347 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1349 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1350 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1352 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1353 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1355 FFMPEG_PROTOCOLS
:=file
1356 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1358 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
1359 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1361 ffmpeg
/stamp-h1
: zlib
1362 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1363 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1364 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1365 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1366 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1367 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1368 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1369 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1370 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1371 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1372 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1373 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1374 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1375 --extra-libs
="-L$(TOP)/zlib -lz" \
1376 --enable-zlib
--disable-debug
--prefix=''
1377 touch ffmpeg
/stamp-h1
1379 ffmpeg
: ffmpeg
/stamp-h1 zlib
1380 @
$(MAKE
) -C ffmpeg
all $(PARALLEL_BUILD
)
1383 -@
$(MAKE
) -C ffmpeg
clean
1384 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1386 ffmpeg-install
: ffmpeg
1388 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1389 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1390 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1391 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1392 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1393 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1394 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1399 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1400 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1401 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1402 touch libogg
/stamp-h1
1404 libogg
: libogg
/stamp-h1
1405 @
$(MAKE
) -C libogg
all $(PARALLEL_BUILD
)
1408 -@
$(MAKE
) -C libogg
clean
1409 @
rm -f libogg
/stamp-h1
1411 libogg-install
: libogg
1413 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1414 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1415 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1418 flac
/stamp-h1
: libogg
1420 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1421 CPPFLAGS
="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1422 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1423 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1424 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1425 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1428 flac
: flac
/stamp-h1 libogg
1429 @
$(MAKE
) -C flac
/src
/libFLAC
all $(PARALLEL_BUILD
)
1432 -@
$(MAKE
) -C flac
clean
1433 @
rm -f flac
/stamp-h1
1437 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1438 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1439 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1444 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1448 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
$(PARALLEL_BUILD
)
1449 install -d
$(TOP
)/jpeg
/staged
/include
1450 install -d
$(TOP
)/jpeg
/staged
/lib
1451 install -d
$(TOP
)/jpeg
/staged
/bin
1452 install -d
$(TOP
)/jpeg
/staged
/man
/man1
1453 @
$(MAKE
) -C jpeg LIBTOOL
="" prefix=$(TOP
)/jpeg
/staged
install
1454 install -D jpeg
/libjpeg.so
$(TOP
)/jpeg
/staged
/lib
/libjpeg.so
1455 rm -f
$(TOP
)/jpeg
/staged
/lib
/libjpeg.la
1458 -@
$(MAKE
) -C jpeg
clean
1459 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1464 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1465 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1466 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1468 ifeq ($(TCONFIG_NGINX
),y
)
1469 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1470 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1474 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1475 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1476 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1477 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1478 touch libexif
/stamp-h1
1480 libexif
: libexif
/stamp-h1
1481 @
$(MAKE
) -C libexif
all
1484 -@
$(MAKE
) -C libexif
clean
1485 @
rm -f libexif
/stamp-h1
1487 libexif-install
: libexif
1489 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1490 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1491 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1496 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC" LDSHAREDLIBC
="$(EXTRALDFLAGS)" \
1497 .
/configure
--shared
--prefix=/usr
--libdir=/usr
/lib
1501 @
$(MAKE
) -C zlib
all
1502 @
$(MAKE
) -C zlib DESTDIR
=$(TOP
)/zlib
/staged
install
1505 -@
$(MAKE
) -C zlib
clean
1506 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1511 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1512 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1513 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1514 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1516 ifeq ($(TCONFIG_BT
),y
)
1517 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1518 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1519 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1521 ifeq ($(TCONFIG_TOR
),y
)
1522 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1523 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1524 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1526 ifeq ($(TCONFIG_NGINX
),y
)
1527 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1528 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1529 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1532 libid3tag
/stamp-h1
: zlib
1534 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1535 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1536 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1537 --disable-debugging
--disable-profiling
1538 touch libid3tag
/stamp-h1
1540 libid3tag
: libid3tag
/stamp-h1 zlib
1541 @
$(MAKE
) -C libid3tag
all $(PARALLEL_BUILD
)
1544 -@
$(MAKE
) -C libid3tag
clean
1545 @
rm -f libid3tag
/stamp-h1
1547 libid3tag-install
: libid3tag
1549 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1550 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1551 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1554 libvorbis
/stamp-h1
: libogg
1556 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1557 CPPFLAGS
="-I$(TOP)/libogg/include" \
1558 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1559 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1560 --with-ogg-includes
="$(TOP)/libogg/include" \
1561 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1562 touch libvorbis
/stamp-h1
1564 libvorbis
: libvorbis
/stamp-h1
1565 @
$(MAKE
) -C libvorbis
/lib
all $(PARALLEL_BUILD
)
1568 -@
$(MAKE
) -C libvorbis
clean
1569 @
rm -f libvorbis
/stamp-h1
1571 libvorbis-install
: libvorbis
1573 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1574 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1575 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1578 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1580 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
$(PARALLEL_BUILD
)
1583 -@
$(MAKE
) -C minidlna
clean
1584 @
rm -f minidlna
/stamp-h1
1586 minidlna-install
: minidlan
1588 install -D minidlna
/minidlna
$(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1589 $(STRIP
) $(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1591 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1592 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1593 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1594 $(CONFIGURE
) --prefix=/usr
1596 igmpproxy
: igmpproxy
/src
/Makefile
1598 @
$(MAKE
) -C igmpproxy
/src
$(PARALLEL_BUILD
)
1600 igmpproxy-install
: igmpproxy
1601 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1602 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1605 -@
$(MAKE
) -C igmpproxy
/src
clean
1606 @
rm -f igmpproxy
/src
/Makefile
1609 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1610 PROGRAMS
=udevtrigger
1613 install -d
$(INSTALLDIR
)
1614 install -d
$(TARGETDIR
)
1615 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1618 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1620 hotplug2-install
: hotplug2
1621 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1622 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1625 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1628 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1631 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1634 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1636 wanuptime
: nvram shared
1638 @
$(MAKE
) -C wanuptime
1641 -@
$(MAKE
) -C wanuptime
clean
1644 install -D wanuptime
/wanuptime
$(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1645 $(STRIP
) $(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1648 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1649 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1650 LOCKFILE
="/var/lock/ebtables" LOCKDIR
="/var/lock" \
1651 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1653 ebtables-install
: ebtables
1654 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1656 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1657 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1658 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1660 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1661 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1662 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1663 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1665 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1666 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1667 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1670 -@
$(MAKE
) -C ebtables
clean
1673 spawn-fcgi
/stamp-h1
:
1674 cd spawn-fcgi
&& CC
=$(CC
) \
1675 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1676 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1677 ac_cv_func_malloc_0_nonnull
=yes \
1678 $(CONFIGURE
) --prefix=/usr
1679 touch spawn-fcgi
/stamp-h1
1681 spawn-fcgi
: spawn-fcgi
/stamp-h1
1682 @
$(MAKE
) -C spawn-fcgi
$(PARALLEL_BUILD
)
1685 -@
$(MAKE
) -C spawn-fcgi
clean
1686 rm -f spawn-fcgi
/stamp-h1
1688 spawn-fcgi-install
: spawn-fcgi
1689 install -d
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
1690 install spawn-fcgi
/src
/spawn-fcgi
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1691 $(STRIP
) -s
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1696 @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 \
1697 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 \
1698 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 \
1699 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 \
1700 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
1705 @
$(MAKE
) -C glib
$(PARALLEL_BUILD
)
1708 -@
$(MAKE
) -C glib
clean
1712 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1714 nocat
/stamp-h1
: glib-install
1718 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1721 echo
*** integrate glib to nocat installdir
1722 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1723 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1724 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1725 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1726 touch nocat
/stamp-h1
1728 nocat
: nocat
/stamp-h1
1729 @
$(MAKE
) -C nocat
$(PARALLEL_BUILD
)
1732 -@
$(MAKE
) -C nocat
clean
1733 rm -f nocat
/stamp-h1
1736 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1737 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1738 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1739 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1745 CC
=$(CC
) CXX
=$(HOST
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1746 $(CONFIGURE
) --prefix=/usr
--disable-dependency-tracking
--enable-utf8
--enable-unicode-properties
--disable-cpp
1747 @touch pcre
/stamp-h1
1748 [ -d pcre
/m4
] || mkdir pcre
/m4
1754 install -D pcre
/.libs
/libpcre.so
.1 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1755 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1756 install -D pcre
/.libs
/libpcreposix.so
.0.0.2 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1757 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1758 cd
$(INSTALLDIR
)/pcre
/usr
/lib
/ && \
1759 ln
-sf libpcre.so
.1.2.3 libpcre.so
.1 && \
1760 ln
-sf libpcreposix.so
.0.0.2 libpcreposix.so
.0
1763 ( if
[ -f pcre
/Makefile
]; then \
1764 $(MAKE
) -C pcre
clean; \
1765 rm -rf pcre
/stamp-h1
; \
1770 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1771 $(CONFIGURE
) --prefix=/usr
--without-python
--enable-static
--enable-shared
1774 libxml2
: libxml2
/stamp-h1
1775 @
$(MAKE
) -C libxml2
all $(PARALLEL_BUILD
)
1776 @
$(MAKE
) -C libxml2 DESTDIR
=$(TOP
)/libxml2
/staged
install
1778 libxml2-install
: libxml2
1780 install -D libxml2
/.libs
/libxml2.so
.2.9.1 $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1781 $(STRIP
) $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1782 cd
$(INSTALLDIR
)/libxml2
/usr
/lib
&& \
1783 ln
-sf libxml2.so
.2.9.1 libxml2.so
.2 && \
1784 ln
-sf libxml2.so
.2.9.1 libxml2.so
1787 -@
$(MAKE
) -C libxml2
clean
1788 @
rm -f libxml2
/stamp-h1
1789 @
rm -rf libxml2
/staged
1791 libpng
/stamp-h1
: zlib
1793 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall -I$(TOP)/zlib $(EXTRACFLAGS)" LDFLAGS
="-L$(TOP)/zlib" \
1794 $(CONFIGURE
) --prefix=/usr
--enable-static
--enable-shared
1797 libpng
: libpng
/stamp-h1
1798 @
$(MAKE
) -C libpng
all $(PARALLEL_BUILD
)
1799 @
$(MAKE
) -C libpng DESTDIR
=$(TOP
)/libpng
/staged
install
1801 libpng-install
: libpng
1803 install -D libpng
/.libs
/libpng.so
.3.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1804 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1805 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1806 ln
-sf libpng.so
.3.51.0 libpng.so
&& \
1807 ln
-sf libpng.so
.3.51.0 libpng.so
.3
1808 install -D libpng
/.libs
/libpng12.so
.0.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1809 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1810 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1811 ln
-sf libpng12.so
.0.51.0 libpng12.so
&& \
1812 ln
-sf libpng12.so
.0.51.0 libpng12.so
.0
1815 -@
$(MAKE
) -C libpng
clean
1816 @
rm -f libpng
/stamp-h1
1817 @
rm -rf libpng
/staged
1819 php
/stamp-h1
: pcre zlib libiconv sqlite libxml2 libpng jpeg
1821 cd php
&& CC
=$(CC
) CXX
=$(ARCH
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1822 CFLAGS
="-Os -Wall -I$(TOP)/zlib -I$(TOP)/libxml2/include/libxml -I$(TOP)/libxml2/include -I$(TOP)/pcre -I$(TOP)/libiconv/include -I$(TOP)/libpng/staged/usr/include" \
1823 LDFLAGS
="-L$(TOP)/pcre/.libs -L$(TOP)/sqlite/.libs -L$(TOP)/zlib -L$(TOP)/libxml2/.libs -L$(TOP)/libiconv/lib/.libs -L$(TOP)/libpng/.libs" \
1824 CPPFLAGS
="-L$(TOP)/pcre/.libs -L$(TOP)/sqlite/.libs -L$(TOP)/zlib -L$(TOP)/libxml2/.libs -L$(TOP)/libiconv/lib/.libs -L$(TOP)/libpng/.libs" \
1825 LIBS
="-L$(TOP)/pcre/.libs -L$(TOP)/sqlite/.libs -L$(TOP)/zlib -L$(TOP)/libxml2/.libs -L$(TOP)/libiconv/lib/.libs -L$(TOP)/libpng/.libs -lsqlite3 -ldl -lpthread -liconv -lxml2" \
1826 PHP_FCGI_LIBXML_DIR
="$(TOP)/libxml2/staged/usr" \
1827 ac_cv_func_memcmp_working
=yes \
1828 cv_php_mbstring_stdarg
=yes \
1829 $(CONFIGURE
) --prefix=/usr \
1835 --with-config-file-path
=/etc \
1836 --with-config-file-scan-dir
=/etc
/php5 \
1837 --disable-short-tags \
1839 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
1843 --disable-calendar \
1853 --with-png-dir
="$(TOP)/libpng/staged/usr" \
1854 --with-jpeg-dir
="$(TOP)/jpeg/staged" \
1856 --with-iconv
="$(TOP)/libiconv/staged/usr" \
1857 --with-iconv-dir
="$(TOP)/libiconv/staged/usr" \
1866 --with-mysql-sock
="/var/run/mysqld.sock" \
1868 --without-pdo-pgsql \
1874 --enable-simplexml \
1881 --disable-tokenizer \
1883 --enable-xmlreader \
1884 --enable-xmlwriter \
1887 --with-libxml-dir
="$(TOP)/libxml2/staged/usr"
1895 -@
$(MAKE
) -C php
clean
1900 install -d
$(INSTALLDIR
)/php
/usr
/sbin
1901 install -D php
/sapi
/cli
/.libs
/php
$(INSTALLDIR
)/php
/usr
/sbin
/php-cli
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
1902 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
1903 install -D php
/sapi
/cgi
/.libs
/php-cgi
$(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
1904 cd
$(INSTALLDIR
)/php
/usr
/sbin
&& ln
-sf php-cgi php-fcgi
1905 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
1907 nginx
/stamp-h1
: openssl zlib pcre
1909 cd
$(TOP
)/nginx
&& .
/configure
--crossbuild
=Linux
::$(ARCH
) \
1911 --sbin-path
=/usr
/sbin \
1912 --conf-path
=/etc
/nginx
/nginx.conf \
1913 --error-log-path
=/tmp
/var
/log
/nginx
/error.log \
1914 --http-log-path
=/tmp
/var
/log
/nginx
/access.log \
1915 --pid-path
=/tmp
/var
/run
/nginx.pid \
1916 --lock-path
=/tmp
/var
/run
/nginx.lock.accept \
1917 --http-client-body-temp-path
=/tmp
/var
/lib
/nginx
/client \
1918 --http-fastcgi-temp-path
=/tmp
/var
/lib
/nginx
/fastcgi \
1919 --with-http_flv_module \
1920 --with-http_ssl_module \
1921 --with-http_gzip_static_module \
1922 --http-uwsgi-temp-path
=/tmp
/var
/lib
/nginx
/uwsgi \
1923 --http-scgi-temp-path
=/tmp
/var
/lib
/nginx
/scgi \
1924 --http-proxy-temp-path
=/tmp
/var
/lib
/nginx
/proxy \
1926 --with-ld-opt
="$(LDFLAGS) -L $(TOP)/pcre/.libs -L $(TOP)/zlib -L $(TOP)/openssl" \
1927 --with-cc-opt
="$(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) -I $(TOP)/openssl/include -I $(TOP)/openssl/include/openssl -I $(TOP)/pcre -I $(TOP)/zlib" \
1928 $(ADDITIONAL_MODULES
)
1930 nginx
: nginx
/stamp-h1
1935 -@
$(MAKE
) -C nginx
clean
1936 -@
rm -f nginx
/stamp-h1
1938 nginx-install
: nginx
1939 install -d
$(INSTALLDIR
)/nginx
/usr
/sbin
1940 install -D nginx
/objs
/nginx
$(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
&& chmod
755 $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
1941 $(STRIP
) $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
1943 libncurses
/stamp-h1
:
1944 cd libncurses
&& CC
=$(CC
) \
1945 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC" \
1946 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1948 $(CONFIGURE
) --prefix=/usr
--with-shared
--with-normal
--disable-debug
--without-ada
--without-manpages
--without-progs
--without-tests
1949 touch libncurses
/stamp-h1
1951 libncurses
: libncurses
/stamp-h1
1953 $(MAKE
) -C libncurses
$(PARALLEL_BUILD
)
1954 $(MAKE
) -C libncurses DESTDIR
=$(TOP
)/libncurses
/staged
install
1957 -@
$(MAKE
) -C libncurses
clean
1958 @
rm -f libncurses
/stamp-h1 libncurses
/Makefile
1959 @
rm -rf libncurses
/staged
1961 libncurses-install
: libncurses
1962 install -d
$(INSTALLDIR
)/libncurses
/usr
/lib
1963 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
1964 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/l
1965 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
1966 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/x
1967 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/l
/linux
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/l
1968 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/v
/vt100
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
1969 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/v
/vt220
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
1970 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/x
/xterm
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/x
1971 cd
$(INSTALLDIR
)/libncurses
/usr
/lib
&& ln
-sf ..
/share
/terminfo terminfo
1972 install libncurses
/lib
/libncurses.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libncurses.so
.5
1973 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libncurses.so
.5
1974 install libncurses
/lib
/libpanel.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libpanel.so
.5
1975 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libpanel.so
.5
1976 install libncurses
/lib
/libform.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libform.so
.5
1977 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libform.so
.5
1978 install libncurses
/lib
/libmenu.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libmenu.so
.5
1979 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libmenu.so
.5
1980 cd
$(INSTALLDIR
)/libncurses
/usr
/lib
/ && \
1981 ln
-sf libncurses.so
.5 libncurses.so
&& \
1982 ln
-sf libpanel.so
.5 libpanel.so
&& \
1983 ln
-sf libform.so
.5 libform.so
&& \
1984 ln
-sf libmenu.so
.5 libmenu.so
1986 mysql
/stamp-h1
: openssl zlib libncurses
1989 CFLAGS
="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 \
1990 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$(TOP)/zlib \
1991 -I$(TOP)/openssl/include -I$(TOP)/libncurses/include" \
1992 CPPFLAGS
="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 \
1993 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$(TOP)/zlib \
1994 -I$(TOP)/openssl/include -I$(TOP)/libncurses/include" \
1995 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/zlib/staged/usr/lib -L$(TOP)/libncurses/lib -fPIC -EL" \
1996 LIBS
="-lcrypt -lz -lstdc++ -lssl -lcrypto -lncurses" \
1997 $(CONFIGURE
) --prefix=/usr \
1998 --without-debug
--without-docs
--without-man
--with-charset
=utf8
--with-extra-charsets
=ascii
,latin1
,gb2312
,gbk \
1999 --enable-shared
--disable-static \
2000 --without-mysqlmanager \
2006 --enable-assembler \
2007 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
2008 ac_cv_c_stack_direction
=-1
2009 cd mysql
&& tar xvfz .host.tgz
2010 # Update time of config.status to avoid run 'config.status --recheck'
2011 touch mysql
/config.status
2012 # Update time of Makefile to avoid regenerate it when do make
2014 -find mysql
-name Makefile
-print | xargs
-i touch
{}
2015 touch mysql
/stamp-h1
2017 mysql
: mysql
/stamp-h1
2020 @
$(MAKE
) -C mysql DESTDIR
=$(TOP
)/mysql
/staged
install
2023 -@
$(MAKE
) -C mysql
clean
2024 -@
rm -f mysql
/stamp-h1
2025 -@
rm -rf mysql
/staged mysql
/host
2028 install -d
$(INSTALLDIR
)/mysql
/usr
/bin
2029 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
2030 install -d
$(INSTALLDIR
)/mysql
/usr
/libexec
2031 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2032 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/plugin
2033 install -d
$(INSTALLDIR
)/mysql
/usr
/share
2034 install -d
$(INSTALLDIR
)/mysql
/usr
/share
/mysql
2035 install -D
-m
755 mysql
/mycheck
$(INSTALLDIR
)/mysql
/usr
/bin
2036 install -D
-m
755 mysql
/staged
/usr
/bin
/my_print_defaults
$(INSTALLDIR
)/mysql
/usr
/bin
2037 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/my_print_defaults
2038 install -D
-m
755 mysql
/staged
/usr
/bin
/myisamchk
$(INSTALLDIR
)/mysql
/usr
/bin
2039 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/myisamchk
2040 install -D
-m
755 mysql
/staged
/usr
/bin
/mysql
$(INSTALLDIR
)/mysql
/usr
/bin
2041 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysql
2042 install -D
-m
755 mysql
/staged
/usr
/bin
/mysql_install_db
$(INSTALLDIR
)/mysql
/usr
/bin
2043 install -D
-m
755 mysql
/staged
/usr
/bin
/mysqladmin
$(INSTALLDIR
)/mysql
/usr
/bin
2044 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysqladmin
2045 install -D
-m
755 mysql
/staged
/usr
/bin
/mysqldump
$(INSTALLDIR
)/mysql
/usr
/bin
2046 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysqldump
2047 install -D
-m
755 mysql
/staged
/usr
/libexec
/mysqld
$(INSTALLDIR
)/mysql
/usr
/libexec
2048 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/libexec
/mysqld
2049 cd
$(INSTALLDIR
)/mysql
/usr
/bin
&& ln
-sf ..
/libexec
/mysqld mysqld
2050 # install -D -m 755 mysql/staged/usr/bin/mysqld_safe $(INSTALLDIR)/mysql/usr/bin
2051 install -D
-m
755 mysql
/staged
/usr
/lib
/mysql
/libmysqlclient.so
.16.0.0 $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2052 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/libmysqlclient.so
.16.0.0
2053 -@cd
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
&& \
2054 ln
-sf libmysqlclient.so
.16.0.0 libmysqlclient.so
.16 && \
2055 ln
-sf libmysqlclient.so
.16.0.0 libmysqlclient.so
2056 install -D
-m
755 mysql
/staged
/usr
/lib
/mysql
/libmysqlclient_r.so
.16.0.0 $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2057 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/libmysqlclient_r.so
.16.0.0
2058 -@cd
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
&& \
2059 ln
-sf libmysqlclient_r.so
.16.0.0 libmysqlclient_r.so
.16 && \
2060 ln
-sf libmysqlclient_r.so
.16.0.0 libmysqlclient_r.so
2061 # -@cd $(INSTALLDIR)/mysql/usr/lib/mysql/plugin && cp -arfpu $(TOP)/mysql/staged/usr/lib/mysql/plugin/* . && \
2062 # rm -f *.la *.a && \
2064 -@cd
$(INSTALLDIR
)/mysql
/usr
/share
/mysql
&& \
2065 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/english .
&& \
2066 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/fill_help_tables.sql .
&& \
2067 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/mysql_system_tables.sql .
&& \
2068 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/mysql_system_tables_data.sql .
2072 CFLAGS
="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
2076 @
$(MAKE
) -C lzo
$(PARALLEL_BUILD
)
2079 -@
$(MAKE
) -C lzo
clean
2083 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
2084 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
2085 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& \
2086 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
.2 && \
2087 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
2089 openvpn
/.conf
: openssl lzo
2090 cd openvpn
&& .
/autogen.sh
&& \
2091 CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2092 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
2093 CPPFLAGS
="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
2094 $(CONFIGURE
) --prefix= \
2095 --with-crypto-library
=openssl \
2096 --disable-debug
--disable-plugin-auth-pam
--disable-plugin-down-root
--with-plugindir
=/lib
--enable-management
--enable-small \
2097 --disable-selinux
--disable-socks
--enable-password-save \
2098 OPENSSL_SSL_CFLAGS
="-I$(TOP)/openssl/include" \
2099 OPENSSL_SSL_LIBS
="-L$(TOP)/openssl -lssl" \
2100 ac_cv_lib_resolv_gethostbyname
=no
2103 openvpn
: openvpn
/.conf
2104 @
$(MAKE
) -C openvpn
$(PARALLEL_BUILD
)
2107 -@
$(MAKE
) -C openvpn
clean
2108 @
rm -f openvpn
/.conf
2110 openvpn-install
: openvpn
2111 install -D openvpn
/src
/openvpn
/.libs
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2112 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2113 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2115 openvpn_plugin_auth_nvram
:nvram
2118 nano
/stamp-h1
: libncurses
2119 cd nano
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2120 CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -I$(TOP)/libncurses/staged/usr/include -ffunction-sections -fdata-sections" \
2121 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -I$(TOP)/libncurses/staged/usr/include -ffunction-sections -fdata-sections" \
2122 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libncurses/staged/usr/lib -fPIC" \
2123 ac_cv_lib_ncursesw_get_wch
=no \
2124 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-all
--without-libiconv-prefix
--disable-utf8
2128 @
$(MAKE
) -C nano
$(PARALLEL_BUILD
)
2131 -@
$(MAKE
) -C nano
clean
2132 @
rm -f nano
/stamp-h1 nano
/Makefile nano
/src
/Makefile
2135 install -d
$(INSTALLDIR
)/nano
/usr
/sbin
2136 install -D nano
/src
/nano
$(INSTALLDIR
)/nano
/usr
/sbin
/nano
2137 $(STRIP
) -s
$(INSTALLDIR
)/nano
/usr
/sbin
/nano
2139 libcurl
/stamp-h1
: zlib openssl
2140 cd libcurl
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2141 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -I$(TOP)/zlib" \
2142 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2143 $(CONFIGURE
) --prefix=/usr
--disable-thread
--enable-shared
--enable-static \
2144 --enable-ares
--enable-cookies
--enable-crypto-auth
--enable-nonblocking \
2145 --enable-file
--enable-ftp
--enable-http
--enable-ipv6
--enable-tftp \
2146 --disable-nls
--disable-ares
--disable-dict
--disable-debug
--disable-gopher \
2147 --disable-ldap
--disable-manual
--disable-telnet
--disable-verbose \
2148 --with-random
="/dev/urandom" --with-ssl
="$(TOP)/openssl" \
2149 --without-gnutls
--without-krb4
--without-libidn \
2150 --with-linux-headers
=$(LINUXDIR
)/include \
2151 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2152 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
2153 touch libcurl
/stamp-h1
2155 libcurl
: libcurl
/stamp-h1
2156 @
$(MAKE
) -C libcurl
$(PARALLEL_BUILD
)
2159 -@
$(MAKE
) -C libcurl
clean
2160 @
rm -f libcurl
/stamp-h1 libcurl
/Makefile
2162 libcurl-install
: libcurl
2163 install -d
$(INSTALLDIR
)/libcurl
/usr
/lib
2164 install -D libcurl
/lib
/.libs
/libcurl.so
.4.3.0 $(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2165 $(STRIP
) -s
$(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2166 cd
$(INSTALLDIR
)/libcurl
/usr
/lib
/ && \
2167 ln
-sf libcurl.so
.4.3.0 libcurl.so
.4 && \
2168 ln
-sf libcurl.so
.4.3.0 libcurl.so
2171 cd libevent
&& CC
=$(CC
) \
2172 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2173 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2175 touch libevent
/stamp-h1
2177 libevent
: libevent
/stamp-h1
2179 $(MAKE
) -C libevent
$(PARALLEL_BUILD
)
2180 $(MAKE
) -C libevent DESTDIR
=$(TOP
)/libevent
/staged
install
2183 -@
$(MAKE
) -C libevent
clean
2184 @
rm -f libevent
/stamp-h1 libevent
/Makefile
2185 @
rm -rf libevent
/staged
2187 libevent-install
: libevent
2188 install -d
$(INSTALLDIR
)/libevent
/usr
/lib
2189 install libevent
/.libs
/libevent-2.0.so
.5.1.9 $(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2190 $(STRIP
) -s
$(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2193 cd libiconv
&& CC
=$(CC
) \
2194 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2195 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2196 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-static
--enable-shared
2197 touch libiconv
/stamp-h1
2199 libiconv
: libiconv
/stamp-h1
2201 $(MAKE
) -C libiconv
$(PARALLEL_BUILD
)
2202 $(MAKE
) -C libiconv DESTDIR
=$(TOP
)/libiconv
/staged
install
2205 -@
$(MAKE
) -C libiconv
clean
2206 @
rm -rf libiconv
/stamp-h1 libiconv
/Makefile
2207 @
rm -rf libiconv
/staged
2209 libiconv-install
: libiconv
2210 install -d
$(INSTALLDIR
)/libiconv
/usr
/lib
2211 install libiconv
/lib
/.libs
/libiconv.so
.2.5.1 $(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2212 $(STRIP
)-s
$(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2213 cd
$(INSTALLDIR
)/libiconv
/usr
/lib
/ && \
2214 ln
-sf libiconv.so
.2.5.1 libiconv.so
.2 && \
2215 ln
-sf libiconv.so
.2.5.1 libiconv.so
2217 transmission
/stamp-h1
: openssl libcurl libevent zlib
2218 cd transmission
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2220 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2221 --param large-function-growth=800 --param max-inline-insns-single=3000 \
2222 -ffunction-sections -fdata-sections" \
2223 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC \
2224 -L$(TOP)/zlib -L$(TOP)/openssl -L$(TOP)/libcurl/lib/.libs -L$(TOP)/libevent/.libs" \
2226 $(CONFIGURE
) --target
=mipsel-linux
--host
=mipsel-linux
--build
=x86_64-linux-gnu
--prefix=/usr
--disable-nls \
2227 --enable-lightweight
--enable-largefile
--enable-utp
--without-gtk \
2228 LIBCURL_CFLAGS
="-I$(TOP)/libcurl/include" \
2229 LIBCURL_LDFLAGS
="-L$(TOP)/libcurl/lib/.libs/" \
2230 LIBCURL_LIBS
="-lcurl" \
2231 LIBEVENT_CFLAGS
="-I$(TOP)/libevent/include" \
2232 LIBEVENT_LDFLAGS
="-L$(TOP)/libevent/.libs" \
2233 LIBEVENT_LIBS
="-levent" \
2234 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2235 OPENSSL_LDFLAGS
="-L$(TOP)/openssl" \
2236 OPENSSL_LIBS
="-lcrypto -lssl" \
2237 ZLIB_CFLAGS
="-I$(TOP)/zlib" \
2238 ZLIB_LDFLAGS
="-L$(TOP)/zlib" \
2240 touch transmission
/stamp-h1
2242 transmission
: transmission
/stamp-h1
2244 $(MAKE
) -C transmission
$(PARALLEL_BUILD
)
2247 -@
$(MAKE
) -C transmission
clean
2248 @
rm -f transmission
/stamp-h1 transmission
/Makefile
2250 transmission-install
: transmission
2251 $(MAKE
) -C transmission DESTDIR
=$(INSTALLDIR
)/transmission install-strip
2252 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/share
/man
2253 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-cli
2254 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-show
2255 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-edit
2256 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-create
2257 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-daemon
2258 ifeq ($(TCONFIG_TR_EXTRAS
),y
)
2259 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2261 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2267 btgui-install
: btgui
2268 install -d
$(INSTALLDIR
)/btgui
/usr
/bin
2269 install -D transmission
/btcheck
$(INSTALLDIR
)/btgui
/usr
/bin
/btcheck
2271 libnfsidmap
/stamp-h1
:
2273 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2274 ac_cv_func_malloc_0_nonnull
=yes \
2275 ac_cv_func_realloc_0_nonnull
=yes \
2276 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
2277 touch libnfsidmap
/stamp-h1
2279 libnfsidmap
: libnfsidmap
/stamp-h1
2281 $(MAKE
) -C libnfsidmap
$(PARALLEL_BUILD
)
2284 -@
$(MAKE
) -C libnfsidmap
clean
2285 @
rm -f libnfsidmap
/stamp-h1
2286 @
rm -rf libnfsidmap
/staged
2288 libnfsidmap-install
: libnfsidmap
2289 install -d
$(TOP
)/libnfsidmap
/staged
2290 $(MAKE
) -C libnfsidmap DESTDIR
=$(TOP
)/libnfsidmap
/staged
install
2294 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2295 $(MAKE
) -C portmap CC
=$(CC
) AR
=$(AR
) LD
=$(LD
) RANLIB
=$(RANLIB
) RPCUSER
="nobody"
2296 touch portmap
/stamp-h1
2298 portmap
: portmap
/stamp-h1
2300 $(MAKE
) -C portmap
$(PARALLEL_BUILD
)
2303 -@
$(MAKE
) -C portmap
clean
2304 @
rm -f portmap
/stamp-h1
2306 portmap-install
: portmap
2307 install -d
$(INSTALLDIR
)/portmap
/usr
/sbin
2308 install -D portmap
/portmap
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2309 $(STRIP
) -s
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2313 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2314 $(CONFIGURE
) --prefix=$(TOP
)/e2fsprogs
/staged
--enable-shared
--enable-static
2315 touch e2fsprogs
/stamp-h1
2317 e2fsprogs
: e2fsprogs
/stamp-h1
2319 $(MAKE
) -C e2fsprogs
$(PARALLEL_BUILD
)
2322 -@
$(MAKE
) -C e2fsprogs
clean
2323 @
rm -f e2fsprogs
/stamp-h1
2324 @
rm -f e2fsprogs
/Makefile
2325 @
rm -rf e2fsprogs
/staged
2327 nfs-utils
/stamp-h1
: libevent-install e2fsprogs portmap libnfsidmap-install
2328 cd nfs-utils
&& STRIP
='mipsel-uclibc-strip' \
2329 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2330 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
2331 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
2332 LDFLAGS
="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
2333 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2334 ac_cv_func_malloc_0_nonnull
=yes \
2335 ac_cv_func_realloc_0_nonnull
=yes \
2336 $(CONFIGURE
) --disable-gss
--without-tcp-wrappers
--enable-static
--enable-shared \
2337 --enable-nfsv4
--enable-nfsv3
2338 touch nfs-utils
/stamp-h1
2340 nfs-utils
: nfs-utils
/stamp-h1
2342 $(MAKE
) -C nfs-utils
$(PARALLEL_BUILD
)
2345 -@
$(MAKE
) -C nfs-utils
clean
2346 @
rm -f nfs-utils
/stamp-h1
2348 nfs-utils-install
: nfs-utils
2349 install -d
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
2350 install -D nfs-utils
/utils
/mount
/mount.nfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2351 install -D nfs-utils
/utils
/nfsd
/nfsd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2352 install -D nfs-utils
/utils
/showmount
/showmount
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2353 install -D nfs-utils
/utils
/exportfs
/exportfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2354 install -D nfs-utils
/utils
/statd
/statd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2355 install -D nfs-utils
/utils
/mountd
/mountd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2356 install -D nfs-utils
/nfs.rc
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfs.rc
2357 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2358 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2359 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2360 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2361 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2362 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2364 tinc
/stamp-h1
: openssl zlib lzo
2365 @cd tinc
&& autoreconf
-fsi
&& \
2366 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
2367 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
2368 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2372 --localstatedir
=/var \
2373 --with-zlib-include
="$(TOP)/zlib" \
2374 --with-zlib-lib
="$(TOP)/zlib" \
2375 --with-lzo-include
="$(TOP)/lzo/include" \
2376 --with-lzo-lib
="$(TOP)/lzo/src/.libs" \
2377 --with-openssl-include
="$(TOP)/openssl/include" \
2378 --with-openssl-lib
="$(TOP)/openssl" \
2381 @touch tinc
/stamp-h1
2385 @
$(MAKE
) -C tinc LIBS
="-lcrypto $(TOP)/zlib/libz.a -llzo2" $(PARALLEL_BUILD
)
2388 -@
$(MAKE
) -C tinc
clean
2389 @
rm -f tinc
/stamp-h1
2392 install -D tinc
/src
/tinc
$(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2393 install -D tinc
/src
/tincd
$(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2394 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2395 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2399 CFLAGS
="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
2401 chmod
0755 sd-idle
/sd-idle
2402 touch sd-idle
/stamp-h1
2405 -@
$(MAKE
) -C sd-idle
clean
2406 @
rm -f sd-idle
/stamp-h1
2408 sd-idle-install
: sd-idle
/stamp-h1
2409 install -d
$(INSTALLDIR
)/sd-idle
/usr
/bin
2410 install -D sd-idle
/sd-idle
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2411 $(STRIP
) -s
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2415 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2416 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
2417 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
2418 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
2419 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
2420 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
2421 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
2422 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
2423 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
2431 -@
$(MAKE
) -C snmp
clean
2432 @
rm -f snmp
/stamp-h1
2435 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2436 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2439 cd apcupsd
&& touch autoconf
/variables.mak
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2440 $(MAKE
) configure
&& \
2441 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2442 LDFLAGS
="-L$(TOOLCHAIN)/lib -ffunction-sections -fdata-sections" \
2443 $(CONFIGURE
) --prefix=/usr
--without-x
--enable-usb
--disable-pcnet
--enable-cgi \
2444 --disable-lgd
--enable-net
--sysconfdir
=/usr
/local
/apcupsd
--bindir=/bin \
2445 --disable-dumb
--disable-snmp
--disable-net-snmp
--with-cgi-bin
=/www
/apcupsd
--with-serial-dev
=
2446 touch apcupsd
/stamp-h1
2448 apcupsd
: apcupsd
/stamp-h1
2449 $(MAKE
) -C apcupsd
$(PARALLEL_BUILD
)
2452 -@
$(MAKE
) -C apcupsd
clean
2453 @
rm -f apcupsd
/stamp-h1
2454 @
rm -f apcupsd
/config
*
2456 apcupsd-install
: apcupsd
2457 $(MAKE
) -C apcupsd DESTDIR
=$(INSTALLDIR
)/apcupsd
install
2458 @
rm -rf
$(INSTALLDIR
)/apcupsd
/sbin
/apctest
2459 @
rm -rf
$(INSTALLDIR
)/apcupsd
/www
/apcupsd
/ups
*.cgi
2460 $(STRIP
) $(INSTALLDIR
)/apcupsd
/sbin
/*
2461 $(STRIP
) $(INSTALLDIR
)/apcupsd
/www
/apcupsd
/*
2464 cd
$(TOP
)/libsodium
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2465 $(CONFIGURE
) --prefix=/usr
--disable-ssp
--enable-minimal
2466 touch libsodium
/stamp-h1
2468 libsodium
: libsodium
/stamp-h1
2469 $(MAKE
) -C libsodium
$(PARALLEL_BUILD
)
2471 libsodium-install
: libsodium
2472 install -d
$(INSTALLDIR
)/libsodium
/usr
/lib
2473 install -D libsodium
/src
/libsodium
/.libs
/libsodium.so
.13.0.2 $(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.2
2474 $(STRIP
) -s
$(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.2
2475 cd
$(INSTALLDIR
)/libsodium
/usr
/lib
/ && \
2476 ln
-sf libsodium.so
.13.0.2 libsodium.so
.13 && \
2477 ln
-sf libsodium.so
.13.0.2 libsodium.so
2480 -$(MAKE
) -C libsodium
clean
2481 @
rm -rf libsodium
/stamp-h1
2483 dnscrypt
/stamp-h1
: libsodium
2484 cd
$(TOP
)/dnscrypt
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2485 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2486 CPPFLAGS
="-I$(TOP)/libsodium/src/libsodium/include" \
2487 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libsodium/src/libsodium/.libs" \
2488 $(CONFIGURE
) --prefix=/usr
--disable-ssp
2489 touch dnscrypt
/stamp-h1
2491 dnscrypt
: dnscrypt
/stamp-h1
2492 $(MAKE
) -C dnscrypt
$(PARALLEL_BUILD
)
2494 dnscrypt-install
: dnscrypt
2495 install -D dnscrypt
/src
/proxy
/.libs
/dnscrypt-proxy
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2496 install -D dnscrypt
/src
/hostip
/.libs
/hostip
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2497 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2498 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2501 -@
$(MAKE
) -C dnscrypt
clean
2502 @
rm -rf dnscrypt
/stamp-h1 dnscrypt
/src
/dnscrypt-proxy
/.deps dnscrypt
/Makefile
2504 tor
/stamp-h1
: openssl zlib libevent
2505 cd
$(TOP
)/tor
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2506 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2507 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
2508 $(CONFIGURE
) --prefix=/usr
--with-libevent-dir
=$(TOP
)/libevent
/staged
/usr
/local \
2509 --with-openssl-dir
=$(TOP
)/openssl
--with-zlib-dir
=$(TOP
)/zlib \
2510 --disable-asciidoc
--disable-threads
2514 $(MAKE
) -C tor
$(PARALLEL_BUILD
)
2517 install -D tor
/src
/or
/tor
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2518 $(STRIP
) -s
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2521 -@
$(MAKE
) -C tor
clean
2522 @
rm -rf tor
/stamp-h1 tor
/Makefile
2526 $(MAKE
) -C udpxy CFLAGS
="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
2527 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections"
2528 touch udpxy
/stamp-h1
2531 -@
$(MAKE
) -C udpxy
clean
2532 @
rm -f udpxy
/stamp-h1
2534 udpxy-install
: udpxy
/stamp-h1
2535 install -d
$(INSTALLDIR
)/udpxy
/usr
/bin
2536 install -D udpxy
/udpxy
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2537 $(STRIP
) -s
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2540 $(MAKE
) -C mdadm
$(PARALLEL_BUILD
)
2542 mdadm-install
: mdadm
2543 install -D mdadm
/mdadm
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2544 $(STRIP
) -s
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2547 -@
$(MAKE
) -C mdadm
clean
2550 $(MAKE
) -C ipset binaries
2552 ipset-install
: ipset
2553 install -D ipset
/ipset
$(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2554 install -d
$(INSTALLDIR
)/ipset
/usr
/lib
/
2555 install ipset
/*.so
$(INSTALLDIR
)/ipset
/usr
/lib
/
2556 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/lib
/*.so
2557 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2560 -@
$(MAKE
) -C ipset
clean
2563 @
$(MAKE
) -C comgt CC
=$(CC
) CFLAGS
="$(EXTRACFLAGS)" LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" comgt
2565 comgt-install
: comgt
2566 install -D comgt
/comgt
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2567 cd
$(INSTALLDIR
)/comgt
/usr
/sbin
/ && \
2569 $(STRIP
) -s
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2570 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/gcom
2571 @cp
-f comgt
/gcom
/* $(TARGETDIR
)/rom
/etc
/gcom
/
2574 -@
$(MAKE
) -C comgt
clean
2581 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
2585 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
2588 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
2591 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
2596 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
2598 .PHONY
: all clean distclean mrproper
install package
2599 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
2600 .PHONY
: dummy libnet libpcap