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
) += openssl
202 obj-
$(TCONFIG_NGINX
) += spawn-fcgi
203 obj-
$(TCONFIG_NGINX
) += pcre
204 obj-
$(TCONFIG_NGINX
) += sqlite
205 obj-
$(TCONFIG_NGINX
) += libiconv
206 obj-
$(TCONFIG_NGINX
) += libxml2
207 obj-
$(TCONFIG_NGINX
) += libpng
208 obj-
$(TCONFIG_NGINX
) += jpeg
209 obj-
$(TCONFIG_NGINX
) += php
210 obj-
$(TCONFIG_NGINX
) += nginx
212 obj-
$(TCONFIG_BBT
) += openssl
213 obj-
$(TCONFIG_BBT
) += libevent
214 obj-
$(TCONFIG_BBT
) += libcurl
215 obj-
$(TCONFIG_BBT
) += transmission
216 obj-
$(TCONFIG_BT
) += btgui
217 obj-
$(TCONFIG_BBT
) += zlib
218 #obj-$(TCONFIG_BBT) += libiconv
220 obj-
$(CONFIG_LINUX26
) += hotplug2
221 obj-
$(CONFIG_LINUX26
) += udevtrigger
223 ifeq ($(TCONFIG_OPENVPN
),y
)
224 export FULL_OPENSSL
:= y
226 ifeq ($(TCONFIG_FTP_SSL
),y
)
227 export FULL_OPENSSL
:= y
229 ifeq ($(TCONFIG_BBT
),y
)
230 export FULL_OPENSSL
:= y
232 ifeq ($(TCONFIG_TOR
),y
)
233 export FULL_OPENSSL
:= y
235 ifeq ($(TCONFIG_TOR
),y
)
236 export FULL_OPENSSL
:= y
238 ifeq ($(TCONFIG_TINC
),y
)
239 export FULL_OPENSSL
:= y
251 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
252 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
260 all: clean-build libc
$(obj-y
) kernel
263 kernel
: $(LINUXDIR
)/.config
266 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
267 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
269 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
270 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
272 ifeq ($(CONFIG_LINUX26
),y
)
273 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
) $(PARALLEL_BUILD
)
278 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
) $(PARALLEL_BUILD
)
280 lzma-loader-install
: lzma-loader
285 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
)
288 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
289 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
291 install package
: $(obj-install
) $(LINUXDIR
)/.config
294 install -d
$(TARGETDIR
)
298 $(MAKE
) -C
$(LINUXDIR
) modules_install \
299 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" \
300 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
302 ifneq ($(CONFIG_LINUX26
),y
)
303 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
304 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
305 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
306 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
307 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
308 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
309 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
311 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
314 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
317 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
318 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
319 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
320 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
321 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
322 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
323 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
324 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
325 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
326 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
329 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
330 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
331 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
332 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
333 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
334 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
335 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
336 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
337 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
338 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
339 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
340 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfs
/* .
&& rm -rf hfs || true
341 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
342 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
343 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
344 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
345 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
346 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
347 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
348 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
349 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
350 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
351 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
352 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
353 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
354 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
355 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
356 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
357 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
358 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
359 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
360 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
361 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
362 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv core
/* .
&& rm -rf core || true
363 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv card
/* .
&& rm -rf card || true
364 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv host
/* .
&& rm -rf host || true
365 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
366 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
367 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
368 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
369 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
370 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
371 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
372 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
373 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
374 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
375 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
376 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
378 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
379 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
380 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
381 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
382 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv usb
/* .
&& rm -rf usb || true
383 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
386 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
387 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
390 ifneq ($(TCONFIG_L7
),y
)
391 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
395 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
396 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
397 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
398 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
399 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
400 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
401 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
402 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
403 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
404 ifeq ($(TCONFIG_SSH
),y
)
405 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
407 ifeq ($(TCONFIG_BBT
),y
)
408 install $(LIBDIR
)/librt-0.9
.30.1.so
$(TARGETDIR
)/lib
/librt.so
.0
410 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
411 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
412 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
415 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
419 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
420 @
$(SRCBASE
)/btools
/libfoo.pl
422 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
424 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
425 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
427 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
428 # separated/copied extra stuff
429 @
rm -rf
$(PLATFORMDIR
)/extras
430 @mkdir
$(PLATFORMDIR
)/extras
431 @mkdir
$(PLATFORMDIR
)/extras
/ipsec
432 @mkdir
$(PLATFORMDIR
)/extras
/raid
433 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
434 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/usr/lib/iptables/libipt_policy.*o $(PLATFORMDIR)/extras/ipsec/ || true
436 $(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
437 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
439 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/mdadm
$(PLATFORMDIR
)/extras
/raid
/ || true
440 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md
/*.ko
$(PLATFORMDIR
)/extras
/raid
/ || true
441 $(if
$(TCONFIG_RAID
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md || true
443 @cp
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ip_set
*o
$(PLATFORMDIR
)/extras
/ || true
444 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
445 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
446 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
447 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
448 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
449 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
450 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
451 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
452 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
453 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
454 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
455 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
456 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
457 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
458 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
459 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
461 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
462 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
463 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
464 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
465 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-acm.
*o
$(PLATFORMDIR
)/extras
/ || true
466 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
467 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
468 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
469 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
470 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
471 $(if
$(NEED_SD_MODULES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
472 $(if
$(NEED_SD_MODULES
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc || true
474 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ch341.
*o
$(PLATFORMDIR
)/extras
/ || true
475 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
476 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
477 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
478 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
479 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
480 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
481 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
482 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
483 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
484 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-wdm.
*o
$(PLATFORMDIR
)/extras
/ || true
485 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
486 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
487 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/qmi_wwan.
*o
$(PLATFORMDIR
)/extras
/ || true
488 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ipheth.
*o
$(PLATFORMDIR
)/extras
/ || true
489 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
490 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
491 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
492 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
493 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
494 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
495 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
496 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
497 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
498 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
499 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
500 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
501 $(if
$(TCONFIG_CTF
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
502 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
503 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
504 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
505 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
506 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
507 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
508 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm || true
509 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
510 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key || true
511 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/xfrm
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
512 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv*/tunnel*.ko $(PLATFORMDIR)/extras/ipsec/ || true
513 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ah
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
514 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/esp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
515 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ipcomp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
516 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_policy.ko $(PLATFORMDIR)/extras/ipsec/ || true
518 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
519 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
520 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
521 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
522 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
523 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
524 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
526 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
527 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
528 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
529 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
530 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
531 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
532 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
533 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
534 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
535 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
536 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
537 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
538 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfs.
*o
$(PLATFORMDIR
)/extras
/ || true
539 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
541 ifneq ($(TCONFIG_USB
),y
)
542 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
543 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
544 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
547 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
548 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
549 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
550 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
551 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
553 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
554 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
555 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
556 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
557 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
558 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
559 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
561 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
562 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
564 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
565 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
566 @cp
-r
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
568 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
569 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
570 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
571 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
572 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
573 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
574 ifneq ($(NEED_EX_USB
),y
)
575 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
576 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
578 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
580 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
581 ifeq ($(TCONFIG_L7PAT
),y
)
582 @cd layer7
&& .
/squish.sh
583 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
586 ifeq ($(TCONFIG_PPTPD
),y
)
587 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/vpn
588 cp rc
/vpn
/* $(TARGETDIR
)/rom
/etc
/vpn
589 chmod
+x
$(TARGETDIR
)/rom
/etc
/vpn
/*
592 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
593 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
596 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
598 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
599 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-no-duplicates | tee target.
info
601 # Package kernel and filesystem
602 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
603 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
604 # $(MAKE) -C $(LINUXDIR) zImage ; \
606 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
607 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
610 # Pad self-booting Linux to a 64 KB boundary
611 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
612 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
613 # Append filesystem to self-booting Linux
614 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
617 libc
: $(LIBDIR
)/ld-uClibc.so
.0
618 # $(MAKE) -C ../../../tools-src/uClibc all
619 # $(MAKE) -C ../../../tools-src/uClibc install
626 clean: clean-build
$(obj-clean
)
627 rm -rf layer7
/squished
628 rm -f .ipv6-y .ipv6-n
629 rm -f .fullssl-y .fullssl-n
635 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
636 rm -rf
$(PLATFORMDIR
)/extras
639 ifneq ($(INSIDE_MAK
),1)
640 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
642 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
648 CONFIG_IN
:= config
/config.in
650 config
/conf config
/mconf
:
654 @config
/conf
$(CONFIG_IN
)
657 @config
/mconf
$(CONFIG_IN
)
659 roldconf
: config
/conf
660 @config
/conf
-o
$(CONFIG_IN
)
661 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
664 @
$(MAKE
) -C
$(LINUXDIR
) config
667 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
670 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
671 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
674 @
$(MAKE
) -C busybox oldconfig
676 config conf
: rconf kconf
678 menuconfig mconf
: rmconf kmconf
681 @
rm -f .ipv6-y .ipv6-n
682 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
685 .fullssl-y .fullssl-n
:
686 @
rm -f .fullssl-y .fullssl-n
687 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
690 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
692 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
696 # overrides and extra dependencies
700 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" $(PARALLEL_BUILD
)
703 rm -rf
$(INSTALLDIR
)/busybox
704 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
707 -@
$(MAKE
) -C busybox
distclean
710 $(MAKE
) -C busybox menuconfig
713 httpd
: shared nvram mssl
718 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
722 @
$(MAKE
) -C matrixssl
/src
728 -@
$(MAKE
) -C matrixssl
/src
clean
731 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
732 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
733 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
734 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
735 PTHREAD_LIBS
="-lpthread" \
737 @touch cyassl
/stamp-h1
739 cyassl
: cyassl
/stamp-h1
744 -@
$(MAKE
) -C cyassl
clean
745 @
rm -f cyassl
/stamp-h1
750 ifeq ($(FULL_OPENSSL
),y
)
751 OPENSSL_CIPHERS
:=enable-rc5
753 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
758 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
759 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
760 shared
$(OPENSSL_CIPHERS
) \
761 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
762 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
763 $(if
$(TCONFIG_TINC
),,no-ec no-ecdh no-ecdsa
) no-err no-hw no-jpake no-threads \
764 no-zlib no-engines no-sse2 \
765 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
767 @
$(MAKE
) -C openssl
clean
768 @touch openssl
/stamp-h1
770 openssl
: openssl
/stamp-h1
773 -@
$(MAKE
) -C openssl
clean
774 @
rm -f openssl
/stamp-h1
776 openssl-install
: openssl
777 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
778 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
779 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
781 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
782 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
783 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
785 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
787 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
788 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
790 ifeq ($(FULL_OPENSSL
),y
)
791 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
792 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
793 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
796 mssl
: $(if
$(FULL_OPENSSL
),openssl
,cyassl
)
803 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
804 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
806 bridge
: bridge
/Makefile
811 -@
$(MAKE
) -C bridge
clean
812 @
rm -f bridge
/Makefile
815 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
816 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
818 dnsmasq
: $(if
$(TCONFIG_DNSSEC
),nettle
,)
820 @
$(MAKE
) -C dnsmasq
$(PARALLEL_BUILD
) \
821 COPTS
="$(if $(TCONFIG_DNSSEC),-I$(TOP)/nettle/include -I$(TOP)/gmp -DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC,) \
822 $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) \
823 $(if $(CONFIG_LINUX26),-DUSE_IPSET,-DNO_IPSET) \
824 -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
825 LDFLAGS
="$(if $(TCONFIG_DNSSEC),-L$(TOP)/nettle/lib -L$(TOP)/gmp/.libs,) -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
826 $(if
$(TCONFIG_DNSSEC
),PKG_CONFIG_PATH
="$(TOP)/nettle/lib/pkgconfig",)
829 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
830 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
833 @cd nettle
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
834 CPPFLAGS
="-I$(TOP)/gmp" \
835 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
836 LDFLAGS
="-L$(TOP)/gmp/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
837 $(CONFIGURE
) prefix=$(TOP
)/nettle
838 @touch nettle
/stamp-h1
840 nettle
: nettle
/stamp-h1
843 @
$(MAKE
) -C nettle
install
846 -@
$(MAKE
) -C nettle
clean
847 @
rm -f nettle
/stamp-h1
848 @
rm -rf nettle
/include nettle
/lib nettle
/bin nettle
/share
851 @cd gmp
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
852 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
853 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
862 @
$(MAKE
) -C gmp
clean
866 ifeq ($(CONFIG_LINUX26
),y
)
867 cp
-f iptables
/extensions
/libipt_ipp2p_K26.c iptables
/extensions
/libipt_ipp2p.c
869 cp
-f iptables
/extensions
/libipt_ipp2p_K24.c iptables
/extensions
/libipt_ipp2p.c
872 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
875 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
876 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
877 ln
-sf iptables iptables-restore
&& \
878 ln
-sf iptables iptables-save
880 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
881 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
883 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
885 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
886 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
887 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
889 ifeq ($(TCONFIG_IPV6
),y
)
890 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
891 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
892 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
893 ln
-sf ip6tables ip6tables-restore
&& \
894 ln
-sf ip6tables ip6tables-save
898 -@
$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
902 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,) $(PARALLEL_BUILD
)
903 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
906 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
908 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
909 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
910 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
911 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
912 @touch rp-pppoe
/src
/stamp-h1
914 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
915 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
$(PARALLEL_BUILD
)
918 -@
$(MAKE
) -C rp-pppoe
/src
clean
919 @
rm -f rp-pppoe
/src
/pppoe-relay
920 @
rm -f rp-pppoe
/src
/stamp-h1
922 rp-pppoe-install
: rp-pppoe
923 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
924 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
925 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
926 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
929 upnp
: nvram shared iptables
931 libnfnetlink
/stamp-h1
:
932 cd
$(TOP
)/libnfnetlink
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
933 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
934 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
935 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
936 touch libnfnetlink
/stamp-h1
938 libnfnetlink
: libnfnetlink
/stamp-h1
940 $(MAKE
) -C libnfnetlink
942 libnfnetlink-install
:
943 install -D libnfnetlink
/src
/.libs
/libnfnetlink.so
.0.2.0 $(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
944 $(STRIP
) -s
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
945 cd
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/ && \
946 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
.0 && \
947 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
950 #ifeq ($(TCONFIG_IPV6),y)
951 # @cd miniupnpd && ./genconfig.sh --leasefile --ipv6
953 @cd miniupnpd
&& .
/genconfig.sh
--leasefile
--vendorcfg
956 miniupnpd
: iptables miniupnpd-config
958 $(MAKE
) -C miniupnpd miniupnpd
-f Makefile.linux CC
=$(CC
) \
959 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include" \
960 LDFLAGS
="-L$(TOP)/iptables -liptc" LIBS
="" $(PARALLEL_BUILD
)
963 -@
$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
964 @
rm -f miniupnpd
/config.h
967 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
968 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
973 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
975 $(MAKE
) -C vsftpd
$(PARALLEL_BUILD
)
977 vsftpd-install
: vsftpd
978 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
979 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
981 ufsd
: kernel_header kernel
985 @
$(MAKE
) -C ufsd
install INSTALLDIR
=$(INSTALLDIR
)/ufsd
989 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
990 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
991 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
992 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
993 --disable-ntfsprogs
--disable-crypto
--without-uuid \
994 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
996 ntfs-3g
: ntfs-3g
/Makefile
997 @
$(MAKE
) -C ntfs-3g
$(PARALLEL_BUILD
)
1000 -@
$(MAKE
) -C ntfs-3g
clean
1001 @
rm -f ntfs-3g
/Makefile
1003 ntfs-3g-install
: ntfs-3g
1004 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1005 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1006 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
1007 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
1008 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
1010 libusb10
/Makefile
: libusb10
/Makefile.in
1011 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
1012 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
1014 libusb10
: libusb10
/Makefile
1017 libusb10-install
: libusb10
1018 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
1019 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
1022 -@
$(MAKE
) -C
$@
clean
1023 @
rm -rf libusb10
/Makefile
1025 libusb
/Makefile
: libusb
/Makefile.in
1026 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
1027 $(CONFIGURE
) --prefix=/usr \
1028 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
1029 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
1030 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
1032 libusb
: libusb10 libusb
/Makefile
1035 libusb-install
: libusb
1036 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
1037 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
1040 -@
$(MAKE
) -C
$@
clean
1041 @
rm -rf libusb
/Makefile
1043 usbmodeswitch
: libusb10
1044 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
1045 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
1046 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
1048 usbmodeswitchdb-install
:
1049 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
1050 # compress whitespace
1051 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
1053 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
1056 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
1057 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1058 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1059 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1060 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
1062 #libdaemon: libdaemon/Makefile
1065 #libdaemon/Makefile: libdaemon/Makefile.in
1066 # cd libdaemon && $(CONFIGURE) ac_cv_func_setpgrp_void=yes \
1067 # --disable-dependency-tracking
1069 #libdaemon-install: libdaemon
1070 # install -D libdaemon/libdaemon/.libs/libdaemon.so.0.5.0 $(INSTALLDIR)/libdaemon/usr/lib/libdaemon.so.0.5.0
1071 # $(STRIP) $(INSTALLDIR)/libdaemon/usr/lib/*.so.*
1072 # cd $(INSTALLDIR)/libdaemon/usr/lib && \
1073 # ln -sf libdaemon.so.0.5.0 libdaemon.so && \
1074 # ln -sf libdaemon.so.0.5.0 libdaemon.so.0
1077 # -@$(MAKE) -C libdaemon distclean
1080 # cd radvd && CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1081 # LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1082 # $(CONFIGURE) --prefix="" --disable-dependency-tracking \
1083 # DAEMON_CFLAGS="-I$(TOP)/libdaemon" \
1084 # DAEMON_LIBS="-ldaemon -L$(TOP)/libdaemon/libdaemon/.libs"
1085 # @$(MAKE) -C radvd clean
1086 # @touch radvd/stamp-h1
1088 #radvd: libdaemon radvd/stamp-h1
1091 # -@$(MAKE) -C radvd distclean
1092 # @rm -f radvd/stamp-h1
1094 #radvd-install: radvd
1095 # install -D radvd/radvd $(INSTALLDIR)/radvd/usr/sbin/radvd
1096 # $(STRIP) $(INSTALLDIR)/radvd/usr/sbin/radvd
1100 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
1101 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1102 ac_cv_func_setpgrp_void
=yes \
1103 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
1104 @
$(MAKE
) -C dhcpv6
clean
1105 @touch dhcpv6
/stamp-h1
1107 dhcpv6
: dhcpv6
/stamp-h1
1109 @
$(MAKE
) -C dhcpv6 dhcp6c
1111 dhcpv6-install
: dhcpv6
1112 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1113 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1116 -@
$(MAKE
) -C dhcpv6
clean
1117 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
1126 prebuilt
: shared libbcmcrypto
1130 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
1133 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
1134 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
1137 pptp-client-install
:
1138 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1139 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1142 accel-pptp
: pppd accel-pptp
/Makefile
1143 @
$(MAKE
) -C accel-pptp
1145 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
1146 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
1147 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
1150 -@
$(MAKE
) -C accel-pptp
clean
1151 @
rm -f accel-pptp
/Makefile
1153 accel-pptp-install
: accel-pptp
1154 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1155 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1158 cd pptpd
&& $(CONFIGURE
) --prefix=$(INSTALLDIR
)/pptpd
--enable-bcrelay CC
=mipsel-uclibc-gcc \
1159 STRIP
=mipsel-uclibc-strip AR
=mipsel-uclibc-ar LD
=mipsel-uclibc-ld NM
=mipsel-uclibc-nm RANLIB
=mipsel-uclibc-ranlib
1160 touch pptpd
/stamp-h1
1162 pptpd
: pptpd
/stamp-h1
1164 pptpd-install
: pptpd
1166 @
install -D pptpd
/pptpd
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1167 @
install -D pptpd
/bcrelay
$(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1168 @
install -D pptpd
/pptpctrl
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1169 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1170 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1171 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1174 -@
$(MAKE
) -C pptpd
clean
1175 rm -rf pptpd
/stamp-h1 pptpd
/.deps
1177 pppd
/Makefile
: pppd
/linux
/Makefile.top
1178 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
1182 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
1185 -@
$(MAKE
) -C pppd
clean
1186 @
rm -f pppd
/Makefile
1189 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1190 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1191 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1192 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1193 ifeq ($(TCONFIG_L2TP
),y
)
1194 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
1195 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
1199 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1200 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1203 @cd zebra
&& rm -f config.cache
&& \
1204 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1205 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1206 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1207 $(CONFIGURE
) --sysconfdir
=/etc \
1208 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
1209 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
1210 @touch zebra
/stamp-h1
1212 zebra
: zebra
/stamp-h1
1213 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
1216 -@
$(MAKE
) -C zebra
clean
1217 @
rm -f zebra
/stamp-h1
1219 zebra-install
: zebra
1220 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1221 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1222 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1223 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1224 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1225 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1229 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1230 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1231 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
1232 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1233 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1234 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1235 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1238 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
1240 xl2tpd-install
: xl2tpd
1241 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1242 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1246 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1247 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1252 # @-mkdir -p libnet/lib
1253 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1257 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1260 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1263 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1264 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1269 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1271 iproute2-install
: iproute2
1272 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1273 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1274 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1275 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1281 dropbear
: dropbear
/config.h
1283 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 $(PARALLEL_BUILD
)
1286 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1287 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1288 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1289 ln
-sf dropbearmulti dropbear
&& \
1290 ln
-sf dropbearmulti dropbearconvert
&& \
1291 ln
-sf dropbearmulti dropbearkey
&& \
1292 ln
-sf dropbearmulti dbclient
&& \
1293 ln
-sf dropbearmulti ssh
&& \
1294 ln
-sf dropbearmulti scp
1297 -@
$(MAKE
) -C dropbear
clean
1298 @
rm -f dropbear
/config.h
1302 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1303 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1304 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1305 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1306 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1307 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1308 @
$(MAKE
) -C dropbear
clean
1314 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1315 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1316 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1317 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1318 touch sqlite
/stamp-h1
1320 sqlite
: sqlite
/stamp-h1
1321 @
$(MAKE
) -C sqlite
all $(PARALLEL_BUILD
)
1324 -@
$(MAKE
) -C sqlite
clean
1325 @
rm -f sqlite
/stamp-h1
1327 sqlite-install
: sqlite
1329 ifeq ($(TCONFIG_NGINX
),y
)
1330 install -D sqlite
/.libs
/libsqlite3.so
.0.8.6 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1331 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1332 cd
$(INSTALLDIR
)/sqlite
/usr
/lib
/ && \
1333 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
.0 && \
1334 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
1337 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1339 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1340 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1342 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1343 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1345 FFMPEG_PROTOCOLS
:=file
1346 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1348 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
1349 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1351 ffmpeg
/stamp-h1
: zlib
1352 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1353 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1354 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1355 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1356 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1357 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1358 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1359 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1360 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1361 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1362 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1363 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1364 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1365 --extra-libs
="-L$(TOP)/zlib -lz" \
1366 --enable-zlib
--disable-debug
--prefix=''
1367 touch ffmpeg
/stamp-h1
1369 ffmpeg
: ffmpeg
/stamp-h1 zlib
1370 @
$(MAKE
) -C ffmpeg
all $(PARALLEL_BUILD
)
1373 -@
$(MAKE
) -C ffmpeg
clean
1374 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1376 ffmpeg-install
: ffmpeg
1378 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1379 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1380 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1381 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1382 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1383 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1384 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1389 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1390 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1391 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1392 touch libogg
/stamp-h1
1394 libogg
: libogg
/stamp-h1
1395 @
$(MAKE
) -C libogg
all $(PARALLEL_BUILD
)
1398 -@
$(MAKE
) -C libogg
clean
1399 @
rm -f libogg
/stamp-h1
1401 libogg-install
: libogg
1403 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1404 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1405 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1408 flac
/stamp-h1
: libogg
1410 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1411 CPPFLAGS
="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1412 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1413 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1414 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1415 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1418 flac
: flac
/stamp-h1 libogg
1419 @
$(MAKE
) -C flac
/src
/libFLAC
all $(PARALLEL_BUILD
)
1422 -@
$(MAKE
) -C flac
clean
1423 @
rm -f flac
/stamp-h1
1427 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1428 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1429 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1434 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1438 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
$(PARALLEL_BUILD
)
1439 install -d
$(TOP
)/jpeg
/staged
/include
1440 install -d
$(TOP
)/jpeg
/staged
/lib
1441 install -d
$(TOP
)/jpeg
/staged
/bin
1442 install -d
$(TOP
)/jpeg
/staged
/man
/man1
1443 @
$(MAKE
) -C jpeg LIBTOOL
="" prefix=$(TOP
)/jpeg
/staged
install
1444 install -D jpeg
/libjpeg.so
$(TOP
)/jpeg
/staged
/lib
/libjpeg.so
1445 rm -f
$(TOP
)/jpeg
/staged
/lib
/libjpeg.la
1448 -@
$(MAKE
) -C jpeg
clean
1449 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1454 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1455 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1456 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1458 ifeq ($(TCONFIG_NGINX
),y
)
1459 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1460 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1464 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1465 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1466 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1467 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1468 touch libexif
/stamp-h1
1470 libexif
: libexif
/stamp-h1
1471 @
$(MAKE
) -C libexif
all
1474 -@
$(MAKE
) -C libexif
clean
1475 @
rm -f libexif
/stamp-h1
1477 libexif-install
: libexif
1479 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1480 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1481 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1486 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC" LDSHAREDLIBC
="$(EXTRALDFLAGS)" \
1487 .
/configure
--shared
--prefix=/usr
--libdir=/usr
/lib
1491 @
$(MAKE
) -C zlib
all
1492 @
$(MAKE
) -C zlib DESTDIR
=$(TOP
)/zlib
/staged
install
1495 -@
$(MAKE
) -C zlib
clean
1496 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1501 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1502 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1503 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1504 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1506 ifeq ($(TCONFIG_BT
),y
)
1507 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1508 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1509 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1511 ifeq ($(TCONFIG_TOR
),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_NGINX
),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
1522 libid3tag
/stamp-h1
: zlib
1524 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1525 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1526 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1527 --disable-debugging
--disable-profiling
1528 touch libid3tag
/stamp-h1
1530 libid3tag
: libid3tag
/stamp-h1 zlib
1531 @
$(MAKE
) -C libid3tag
all $(PARALLEL_BUILD
)
1534 -@
$(MAKE
) -C libid3tag
clean
1535 @
rm -f libid3tag
/stamp-h1
1537 libid3tag-install
: libid3tag
1539 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1540 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1541 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1544 libvorbis
/stamp-h1
: libogg
1546 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1547 CPPFLAGS
="-I$(TOP)/libogg/include" \
1548 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1549 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1550 --with-ogg-includes
="$(TOP)/libogg/include" \
1551 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1552 touch libvorbis
/stamp-h1
1554 libvorbis
: libvorbis
/stamp-h1
1555 @
$(MAKE
) -C libvorbis
/lib
all $(PARALLEL_BUILD
)
1558 -@
$(MAKE
) -C libvorbis
clean
1559 @
rm -f libvorbis
/stamp-h1
1561 libvorbis-install
: libvorbis
1563 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1564 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1565 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1568 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1570 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
$(PARALLEL_BUILD
)
1573 -@
$(MAKE
) -C minidlna
clean
1574 @
rm -f minidlna
/stamp-h1
1576 minidlna-install
: minidlan
1578 install -D minidlna
/minidlna
$(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1579 $(STRIP
) $(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1581 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1582 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1583 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1584 $(CONFIGURE
) --prefix=/usr
1586 igmpproxy
: igmpproxy
/src
/Makefile
1588 @
$(MAKE
) -C igmpproxy
/src
$(PARALLEL_BUILD
)
1590 igmpproxy-install
: igmpproxy
1591 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1592 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1595 -@
$(MAKE
) -C igmpproxy
/src
clean
1596 @
rm -f igmpproxy
/src
/Makefile
1599 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1600 PROGRAMS
=udevtrigger
1603 install -d
$(INSTALLDIR
)
1604 install -d
$(TARGETDIR
)
1605 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1608 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1610 hotplug2-install
: hotplug2
1611 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1612 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1615 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1618 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1621 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1624 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1626 wanuptime
: nvram shared
1628 @
$(MAKE
) -C wanuptime
1631 -@
$(MAKE
) -C wanuptime
clean
1634 install -D wanuptime
/wanuptime
$(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1635 $(STRIP
) $(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1638 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1639 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1640 LOCKFILE
="/var/lock/ebtables" LOCKDIR
="/var/lock" \
1641 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1643 ebtables-install
: ebtables
1644 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1646 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1647 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1648 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1650 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1651 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1652 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1653 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1655 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1656 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1657 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1660 -@
$(MAKE
) -C ebtables
clean
1663 spawn-fcgi
/stamp-h1
:
1664 cd spawn-fcgi
&& CC
=$(CC
) \
1665 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1666 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1667 ac_cv_func_malloc_0_nonnull
=yes \
1668 $(CONFIGURE
) --prefix=/usr
1669 touch spawn-fcgi
/stamp-h1
1671 spawn-fcgi
: spawn-fcgi
/stamp-h1
1672 @
$(MAKE
) -C spawn-fcgi
$(PARALLEL_BUILD
)
1675 -@
$(MAKE
) -C spawn-fcgi
clean
1676 rm -f spawn-fcgi
/stamp-h1
1678 spawn-fcgi-install
: spawn-fcgi
1679 install -d
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
1680 install spawn-fcgi
/src
/spawn-fcgi
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1681 $(STRIP
) -s
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1686 @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 \
1687 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 \
1688 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 \
1689 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 \
1690 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
1695 @
$(MAKE
) -C glib
$(PARALLEL_BUILD
)
1698 -@
$(MAKE
) -C glib
clean
1702 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1704 nocat
/stamp-h1
: glib-install
1708 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1711 echo
*** integrate glib to nocat installdir
1712 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1713 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1714 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1715 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1716 touch nocat
/stamp-h1
1718 nocat
: nocat
/stamp-h1
1719 @
$(MAKE
) -C nocat
$(PARALLEL_BUILD
)
1722 -@
$(MAKE
) -C nocat
clean
1723 rm -f nocat
/stamp-h1
1726 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1727 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1728 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1729 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1735 CC
=$(CC
) CXX
=$(HOST
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1736 $(CONFIGURE
) --prefix=/usr
--disable-dependency-tracking
--enable-utf8
--enable-unicode-properties
--disable-cpp
1737 @touch pcre
/stamp-h1
1738 [ -d pcre
/m4
] || mkdir pcre
/m4
1744 install -D pcre
/.libs
/libpcre.so
.1 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1745 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1746 install -D pcre
/.libs
/libpcreposix.so
.0.0.2 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1747 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1748 cd
$(INSTALLDIR
)/pcre
/usr
/lib
/ && \
1749 ln
-sf libpcre.so
.1.2.3 libpcre.so
.1 && \
1750 ln
-sf libpcreposix.so
.0.0.2 libpcreposix.so
.0
1753 ( if
[ -f pcre
/Makefile
]; then \
1754 $(MAKE
) -C pcre
clean; \
1755 rm -rf pcre
/stamp-h1
; \
1760 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1761 $(CONFIGURE
) --prefix=/usr
--without-python
--enable-static
--enable-shared
1764 libxml2
: libxml2
/stamp-h1
1765 @
$(MAKE
) -C libxml2
all $(PARALLEL_BUILD
)
1766 @
$(MAKE
) -C libxml2 DESTDIR
=$(TOP
)/libxml2
/staged
install
1768 libxml2-install
: libxml2
1770 install -D libxml2
/.libs
/libxml2.so
.2.9.1 $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1771 $(STRIP
) $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1772 cd
$(INSTALLDIR
)/libxml2
/usr
/lib
&& \
1773 ln
-sf libxml2.so
.2.9.1 libxml2.so
.2 && \
1774 ln
-sf libxml2.so
.2.9.1 libxml2.so
1777 -@
$(MAKE
) -C libxml2
clean
1778 @
rm -f libxml2
/stamp-h1
1779 @
rm -rf libxml2
/staged
1781 libpng
/stamp-h1
: zlib
1783 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall -I$(TOP)/zlib $(EXTRACFLAGS)" LDFLAGS
="-L$(TOP)/zlib" \
1784 $(CONFIGURE
) --prefix=/usr
--enable-static
--enable-shared
1787 libpng
: libpng
/stamp-h1
1788 @
$(MAKE
) -C libpng
all $(PARALLEL_BUILD
)
1789 @
$(MAKE
) -C libpng DESTDIR
=$(TOP
)/libpng
/staged
install
1791 libpng-install
: libpng
1793 install -D libpng
/.libs
/libpng.so
.3.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1794 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1795 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1796 ln
-sf libpng.so
.3.51.0 libpng.so
&& \
1797 ln
-sf libpng.so
.3.51.0 libpng.so
.3
1798 install -D libpng
/.libs
/libpng12.so
.0.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1799 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1800 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1801 ln
-sf libpng12.so
.0.51.0 libpng12.so
&& \
1802 ln
-sf libpng12.so
.0.51.0 libpng12.so
.0
1805 -@
$(MAKE
) -C libpng
clean
1806 @
rm -f libpng
/stamp-h1
1807 @
rm -rf libpng
/staged
1809 php
/stamp-h1
: pcre zlib libiconv sqlite libxml2 libpng jpeg
1811 cd php
&& CC
=$(CC
) CXX
=$(ARCH
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1812 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" \
1813 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" \
1814 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" \
1815 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" \
1816 PHP_FCGI_LIBXML_DIR
="$(TOP)/libxml2/staged/usr" \
1817 ac_cv_func_memcmp_working
=yes \
1818 cv_php_mbstring_stdarg
=yes \
1819 $(CONFIGURE
) --prefix=/usr \
1825 --with-config-file-path
=/etc \
1826 --with-config-file-scan-dir
=/etc
/php5 \
1827 --disable-short-tags \
1829 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
1833 --disable-calendar \
1843 --with-png-dir
="$(TOP)/libpng/staged/usr" \
1844 --with-jpeg-dir
="$(TOP)/jpeg/staged" \
1846 --with-iconv
="$(TOP)/libiconv/staged/usr" \
1847 --with-iconv-dir
="$(TOP)/libiconv/staged/usr" \
1855 --without-pdo-mysql \
1856 --without-pdo-pgsql \
1862 --enable-simplexml \
1869 --disable-tokenizer \
1871 --enable-xmlreader \
1872 --enable-xmlwriter \
1875 --with-libxml-dir
="$(TOP)/libxml2/staged/usr"
1883 -@
$(MAKE
) -C php
clean
1888 install -d
$(INSTALLDIR
)/php
/usr
/sbin
1889 install -D php
/sapi
/cli
/.libs
/php
$(INSTALLDIR
)/php
/usr
/sbin
/php-cli
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
1890 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
1891 install -D php
/sapi
/cgi
/.libs
/php-cgi
$(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
1892 cd
$(INSTALLDIR
)/php
/usr
/sbin
&& ln
-sf php-cgi php-fcgi
1893 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
1895 nginx
/stamp-h1
: openssl zlib pcre
1897 cd
$(TOP
)/nginx
&& .
/configure
--crossbuild
=Linux
::$(ARCH
) \
1899 --sbin-path
=/usr
/sbin \
1900 --conf-path
=/etc
/nginx
/nginx.conf \
1901 --error-log-path
=/tmp
/var
/log
/nginx
/error.log \
1902 --http-log-path
=/tmp
/var
/log
/nginx
/access.log \
1903 --pid-path
=/tmp
/var
/run
/nginx.pid \
1904 --lock-path
=/tmp
/var
/run
/nginx.lock.accept \
1905 --http-client-body-temp-path
=/tmp
/var
/lib
/nginx
/client \
1906 --http-fastcgi-temp-path
=/tmp
/var
/lib
/nginx
/fastcgi \
1907 --with-http_flv_module \
1908 --with-http_ssl_module \
1909 --with-http_gzip_static_module \
1910 --http-uwsgi-temp-path
=/tmp
/var
/lib
/nginx
/uwsgi \
1911 --http-scgi-temp-path
=/tmp
/var
/lib
/nginx
/scgi \
1912 --http-proxy-temp-path
=/tmp
/var
/lib
/nginx
/proxy \
1914 --with-ld-opt
="$(LDFLAGS) -L $(TOP)/pcre/.libs -L $(TOP)/zlib -L $(TOP)/openssl" \
1915 --with-cc-opt
="$(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) -I $(TOP)/openssl/include -I $(TOP)/openssl/include/openssl -I $(TOP)/pcre -I $(TOP)/zlib" \
1916 $(ADDITIONAL_MODULES
)
1918 nginx
: nginx
/stamp-h1
1923 -@
$(MAKE
) -C nginx
clean
1924 -@
rm -f nginx
/stamp-h1
1926 nginx-install
: nginx
1927 install -d
$(INSTALLDIR
)/nginx
/usr
/sbin
1928 install -D nginx
/objs
/nginx
$(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
&& chmod
755 $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
1929 $(STRIP
) $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
1933 CFLAGS
="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1937 @
$(MAKE
) -C lzo
$(PARALLEL_BUILD
)
1940 -@
$(MAKE
) -C lzo
clean
1944 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
1945 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
1946 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& \
1947 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
.2 && \
1948 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
1950 openvpn
/.conf
: openssl lzo
1951 cd openvpn
&& CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1952 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1953 CPPFLAGS
="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
1954 $(CONFIGURE
) --prefix= \
1955 --with-crypto-library
=openssl \
1956 --disable-debug
--disable-plugin-auth-pam
--disable-plugin-down-root
--with-plugindir
=/lib
--enable-management
--enable-small \
1957 --disable-selinux
--disable-socks
--enable-password-save \
1958 OPENSSL_SSL_CFLAGS
="-I$(TOP)/openssl/include" \
1959 OPENSSL_SSL_LIBS
="-L$(TOP)/openssl -lssl" \
1960 ac_cv_lib_resolv_gethostbyname
=no
1963 openvpn
: openvpn
/.conf
1964 @
$(MAKE
) -C openvpn
$(PARALLEL_BUILD
)
1967 -@
$(MAKE
) -C openvpn
clean
1968 @
rm -f openvpn
/.conf
1970 openvpn-install
: openvpn
1971 install -D openvpn
/src
/openvpn
/.libs
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1972 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1973 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1975 openvpn_plugin_auth_nvram
:nvram
1978 libcurl
/stamp-h1
: zlib openssl
1979 cd libcurl
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
1980 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -I$(TOP)/zlib" \
1981 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1982 $(CONFIGURE
) --prefix=/usr
--disable-thread
--enable-shared
--enable-static \
1983 --enable-ares
--enable-cookies
--enable-crypto-auth
--enable-nonblocking \
1984 --enable-file
--enable-ftp
--enable-http
--enable-ipv6
--enable-tftp \
1985 --disable-nls
--disable-ares
--disable-dict
--disable-debug
--disable-gopher \
1986 --disable-ldap
--disable-manual
--disable-telnet
--disable-verbose \
1987 --with-random
="/dev/urandom" --with-ssl
="$(TOP)/openssl" \
1988 --without-gnutls
--without-krb4
--without-libidn \
1989 --with-linux-headers
=$(LINUXDIR
)/include \
1990 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
1991 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
1992 touch libcurl
/stamp-h1
1994 libcurl
: libcurl
/stamp-h1
1995 @
$(MAKE
) -C libcurl
$(PARALLEL_BUILD
)
1998 -@
$(MAKE
) -C libcurl
clean
1999 @
rm -f libcurl
/stamp-h1 libcurl
/Makefile
2001 libcurl-install
: libcurl
2002 install -d
$(INSTALLDIR
)/libcurl
/usr
/lib
2003 install -D libcurl
/lib
/.libs
/libcurl.so
.4.3.0 $(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2004 $(STRIP
) -s
$(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2005 cd
$(INSTALLDIR
)/libcurl
/usr
/lib
/ && \
2006 ln
-sf libcurl.so
.4.3.0 libcurl.so
.4 && \
2007 ln
-sf libcurl.so
.4.3.0 libcurl.so
2010 cd libevent
&& CC
=$(CC
) \
2011 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2012 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2014 touch libevent
/stamp-h1
2016 libevent
: libevent
/stamp-h1
2018 $(MAKE
) -C libevent
$(PARALLEL_BUILD
)
2019 $(MAKE
) -C libevent DESTDIR
=$(TOP
)/libevent
/staged
install
2022 -@
$(MAKE
) -C libevent
clean
2023 @
rm -f libevent
/stamp-h1 libevent
/Makefile
2024 @
rm -rf libevent
/staged
2026 libevent-install
: libevent
2027 install -d
$(INSTALLDIR
)/libevent
/usr
/lib
2028 install libevent
/.libs
/libevent-2.0.so
.5.1.9 $(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2029 $(STRIP
) -s
$(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2032 cd libiconv
&& CC
=$(CC
) \
2033 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2034 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2035 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-static
--enable-shared
2036 touch libiconv
/stamp-h1
2038 libiconv
: libiconv
/stamp-h1
2040 $(MAKE
) -C libiconv
$(PARALLEL_BUILD
)
2041 $(MAKE
) -C libiconv DESTDIR
=$(TOP
)/libiconv
/staged
install
2044 -@
$(MAKE
) -C libiconv
clean
2045 @
rm -rf libiconv
/stamp-h1 libiconv
/Makefile
2046 @
rm -rf libiconv
/staged
2048 libiconv-install
: libiconv
2049 install -d
$(INSTALLDIR
)/libiconv
/usr
/lib
2050 install libiconv
/lib
/.libs
/libiconv.so
.2.5.1 $(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2051 $(STRIP
)-s
$(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2052 cd
$(INSTALLDIR
)/libiconv
/usr
/lib
/ && \
2053 ln
-sf libiconv.so
.2.5.1 libiconv.so
.2 && \
2054 ln
-sf libiconv.so
.2.5.1 libiconv.so
2056 transmission
/stamp-h1
: openssl libcurl libevent zlib
2057 cd transmission
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2059 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2060 --param large-function-growth=800 --param max-inline-insns-single=3000 \
2061 -ffunction-sections -fdata-sections" \
2062 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC \
2063 -L$(TOP)/zlib -L$(TOP)/openssl -L$(TOP)/libcurl/lib/.libs -L$(TOP)/libevent/.libs" \
2065 $(CONFIGURE
) --target
=mipsel-linux
--host
=mipsel-linux
--build
=x86_64-linux-gnu
--prefix=/usr
--disable-nls \
2066 --enable-lightweight
--enable-largefile
--enable-utp
--without-gtk \
2067 LIBCURL_CFLAGS
="-I$(TOP)/libcurl/include" \
2068 LIBCURL_LDFLAGS
="-L$(TOP)/libcurl/lib/.libs/" \
2069 LIBCURL_LIBS
="-lcurl" \
2070 LIBEVENT_CFLAGS
="-I$(TOP)/libevent/include" \
2071 LIBEVENT_LDFLAGS
="-L$(TOP)/libevent/.libs" \
2072 LIBEVENT_LIBS
="-levent" \
2073 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2074 OPENSSL_LDFLAGS
="-L$(TOP)/openssl" \
2075 OPENSSL_LIBS
="-lcrypto -lssl" \
2076 ZLIB_CFLAGS
="-I$(TOP)/zlib" \
2077 ZLIB_LDFLAGS
="-L$(TOP)/zlib" \
2079 touch transmission
/stamp-h1
2081 transmission
: transmission
/stamp-h1
2083 $(MAKE
) -C transmission
$(PARALLEL_BUILD
)
2086 -@
$(MAKE
) -C transmission
clean
2087 @
rm -f transmission
/stamp-h1 transmission
/Makefile
2089 transmission-install
: transmission
2090 $(MAKE
) -C transmission DESTDIR
=$(INSTALLDIR
)/transmission install-strip
2091 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/share
/man
2092 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-cli
2093 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-show
2094 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-edit
2095 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-create
2096 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-daemon
2097 ifeq ($(TCONFIG_TR_EXTRAS
),y
)
2098 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2100 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2106 btgui-install
: btgui
2107 install -d
$(INSTALLDIR
)/btgui
/usr
/bin
2108 install -D transmission
/btcheck
$(INSTALLDIR
)/btgui
/usr
/bin
/btcheck
2110 libnfsidmap
/stamp-h1
:
2112 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2113 ac_cv_func_malloc_0_nonnull
=yes \
2114 ac_cv_func_realloc_0_nonnull
=yes \
2115 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
2116 touch libnfsidmap
/stamp-h1
2118 libnfsidmap
: libnfsidmap
/stamp-h1
2120 $(MAKE
) -C libnfsidmap
$(PARALLEL_BUILD
)
2123 -@
$(MAKE
) -C libnfsidmap
clean
2124 @
rm -f libnfsidmap
/stamp-h1
2125 @
rm -rf libnfsidmap
/staged
2127 libnfsidmap-install
: libnfsidmap
2128 install -d
$(TOP
)/libnfsidmap
/staged
2129 $(MAKE
) -C libnfsidmap DESTDIR
=$(TOP
)/libnfsidmap
/staged
install
2133 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2134 $(MAKE
) -C portmap CC
=$(CC
) AR
=$(AR
) LD
=$(LD
) RANLIB
=$(RANLIB
) RPCUSER
="nobody"
2135 touch portmap
/stamp-h1
2137 portmap
: portmap
/stamp-h1
2139 $(MAKE
) -C portmap
$(PARALLEL_BUILD
)
2142 -@
$(MAKE
) -C portmap
clean
2143 @
rm -f portmap
/stamp-h1
2145 portmap-install
: portmap
2146 install -d
$(INSTALLDIR
)/portmap
/usr
/sbin
2147 install -D portmap
/portmap
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2148 $(STRIP
) -s
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2152 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2153 $(CONFIGURE
) --prefix=$(TOP
)/e2fsprogs
/staged
--enable-shared
--enable-static
2154 touch e2fsprogs
/stamp-h1
2156 e2fsprogs
: e2fsprogs
/stamp-h1
2158 $(MAKE
) -C e2fsprogs
$(PARALLEL_BUILD
)
2161 -@
$(MAKE
) -C e2fsprogs
clean
2162 @
rm -f e2fsprogs
/stamp-h1
2163 @
rm -f e2fsprogs
/Makefile
2164 @
rm -rf e2fsprogs
/staged
2166 nfs-utils
/stamp-h1
: libevent-install e2fsprogs portmap libnfsidmap-install
2167 cd nfs-utils
&& STRIP
='mipsel-uclibc-strip' \
2168 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2169 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
2170 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
2171 LDFLAGS
="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
2172 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2173 ac_cv_func_malloc_0_nonnull
=yes \
2174 ac_cv_func_realloc_0_nonnull
=yes \
2175 $(CONFIGURE
) --disable-gss
--without-tcp-wrappers
--enable-static
--enable-shared \
2176 --enable-nfsv4
--enable-nfsv3
2177 touch nfs-utils
/stamp-h1
2179 nfs-utils
: nfs-utils
/stamp-h1
2181 $(MAKE
) -C nfs-utils
$(PARALLEL_BUILD
)
2184 -@
$(MAKE
) -C nfs-utils
clean
2185 @
rm -f nfs-utils
/stamp-h1
2187 nfs-utils-install
: nfs-utils
2188 install -d
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
2189 install -D nfs-utils
/utils
/mount
/mount.nfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2190 install -D nfs-utils
/utils
/nfsd
/nfsd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2191 install -D nfs-utils
/utils
/showmount
/showmount
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2192 install -D nfs-utils
/utils
/exportfs
/exportfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2193 install -D nfs-utils
/utils
/statd
/statd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2194 install -D nfs-utils
/utils
/mountd
/mountd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2195 install -D nfs-utils
/nfs.rc
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfs.rc
2196 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2197 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2198 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2199 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2200 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2201 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2203 tinc
/stamp-h1
: openssl zlib lzo
2204 @cd tinc
&& autoreconf
-fsi
&& \
2205 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
2206 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
2207 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2211 --localstatedir
=/var \
2212 --with-zlib-include
="$(TOP)/zlib" \
2213 --with-zlib-lib
="$(TOP)/zlib" \
2214 --with-lzo-include
="$(TOP)/lzo/include" \
2215 --with-lzo-lib
="$(TOP)/lzo/src/.libs" \
2216 --with-openssl-include
="$(TOP)/openssl/include" \
2217 --with-openssl-lib
="$(TOP)/openssl" \
2220 @touch tinc
/stamp-h1
2224 @
$(MAKE
) -C tinc LIBS
="-lcrypto $(TOP)/zlib/libz.a -llzo2" $(PARALLEL_BUILD
)
2227 -@
$(MAKE
) -C tinc
clean
2228 @
rm -f tinc
/stamp-h1
2231 install -D tinc
/src
/tinc
$(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2232 install -D tinc
/src
/tincd
$(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2233 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2234 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2238 CFLAGS
="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
2240 chmod
0755 sd-idle
/sd-idle
2241 touch sd-idle
/stamp-h1
2244 -@
$(MAKE
) -C sd-idle
clean
2245 @
rm -f sd-idle
/stamp-h1
2247 sd-idle-install
: sd-idle
/stamp-h1
2248 install -d
$(INSTALLDIR
)/sd-idle
/usr
/bin
2249 install -D sd-idle
/sd-idle
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2250 $(STRIP
) -s
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2254 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2255 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
2256 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
2257 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
2258 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
2259 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
2260 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
2261 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
2262 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
2270 -@
$(MAKE
) -C snmp
clean
2271 @
rm -f snmp
/stamp-h1
2274 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2275 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2278 cd apcupsd
&& touch autoconf
/variables.mak
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2279 $(MAKE
) configure
&& \
2280 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2281 LDFLAGS
="-L$(TOOLCHAIN)/lib -ffunction-sections -fdata-sections" \
2282 $(CONFIGURE
) --prefix=/usr
--without-x
--enable-usb
--disable-pcnet
--enable-cgi \
2283 --disable-lgd
--enable-net
--sysconfdir
=/usr
/local
/apcupsd
--bindir=/bin \
2284 --disable-dumb
--disable-snmp
--disable-net-snmp
--with-cgi-bin
=/www
/apcupsd
--with-serial-dev
=
2285 touch apcupsd
/stamp-h1
2287 apcupsd
: apcupsd
/stamp-h1
2288 $(MAKE
) -C apcupsd
$(PARALLEL_BUILD
)
2291 -@
$(MAKE
) -C apcupsd
clean
2292 @
rm -f apcupsd
/stamp-h1
2293 @
rm -f apcupsd
/config
*
2295 apcupsd-install
: apcupsd
2296 $(MAKE
) -C apcupsd DESTDIR
=$(INSTALLDIR
)/apcupsd
install
2297 @
rm -rf
$(INSTALLDIR
)/apcupsd
/sbin
/apctest
2298 @
rm -rf
$(INSTALLDIR
)/apcupsd
/www
/apcupsd
/ups
*.cgi
2299 $(STRIP
) $(INSTALLDIR
)/apcupsd
/sbin
/*
2300 $(STRIP
) $(INSTALLDIR
)/apcupsd
/www
/apcupsd
/*
2303 cd
$(TOP
)/libsodium
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2304 $(CONFIGURE
) --prefix=/usr
--disable-ssp
--enable-minimal
2305 touch libsodium
/stamp-h1
2307 libsodium
: libsodium
/stamp-h1
2308 $(MAKE
) -C libsodium
$(PARALLEL_BUILD
)
2310 libsodium-install
: libsodium
2311 install -d
$(INSTALLDIR
)/libsodium
/usr
/lib
2312 install -D libsodium
/src
/libsodium
/.libs
/libsodium.so
.13.0.2 $(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.2
2313 $(STRIP
) -s
$(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.2
2314 cd
$(INSTALLDIR
)/libsodium
/usr
/lib
/ && \
2315 ln
-sf libsodium.so
.13.0.2 libsodium.so
.13 && \
2316 ln
-sf libsodium.so
.13.0.2 libsodium.so
2319 -$(MAKE
) -C libsodium
clean
2320 @
rm -rf libsodium
/stamp-h1
2322 dnscrypt
/stamp-h1
: libsodium
2323 cd
$(TOP
)/dnscrypt
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2324 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2325 CPPFLAGS
="-I$(TOP)/libsodium/src/libsodium/include" \
2326 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libsodium/src/libsodium/.libs" \
2327 $(CONFIGURE
) --prefix=/usr
--disable-ssp
2328 touch dnscrypt
/stamp-h1
2330 dnscrypt
: dnscrypt
/stamp-h1
2331 $(MAKE
) -C dnscrypt
$(PARALLEL_BUILD
)
2333 dnscrypt-install
: dnscrypt
2334 install -D dnscrypt
/src
/proxy
/.libs
/dnscrypt-proxy
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2335 install -D dnscrypt
/src
/hostip
/.libs
/hostip
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2336 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2337 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2340 -@
$(MAKE
) -C dnscrypt
clean
2341 @
rm -rf dnscrypt
/stamp-h1 dnscrypt
/src
/dnscrypt-proxy
/.deps dnscrypt
/Makefile
2343 tor
/stamp-h1
: openssl zlib libevent
2344 cd
$(TOP
)/tor
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2345 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2346 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
2347 $(CONFIGURE
) --prefix=/usr
--with-libevent-dir
=$(TOP
)/libevent
/staged
/usr
/local \
2348 --with-openssl-dir
=$(TOP
)/openssl
--with-zlib-dir
=$(TOP
)/zlib \
2349 --disable-asciidoc
--disable-threads
2353 $(MAKE
) -C tor
$(PARALLEL_BUILD
)
2356 install -D tor
/src
/or
/tor
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2357 $(STRIP
) -s
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2360 -@
$(MAKE
) -C tor
clean
2361 @
rm -rf tor
/stamp-h1 tor
/Makefile
2365 $(MAKE
) -C udpxy CFLAGS
="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
2366 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections"
2367 touch udpxy
/stamp-h1
2370 -@
$(MAKE
) -C udpxy
clean
2371 @
rm -f udpxy
/stamp-h1
2373 udpxy-install
: udpxy
/stamp-h1
2374 install -d
$(INSTALLDIR
)/udpxy
/usr
/bin
2375 install -D udpxy
/udpxy
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2376 $(STRIP
) -s
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2379 $(MAKE
) -C mdadm
$(PARALLEL_BUILD
)
2381 mdadm-install
: mdadm
2382 install -D mdadm
/mdadm
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2383 $(STRIP
) -s
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2386 -@
$(MAKE
) -C mdadm
clean
2389 $(MAKE
) -C ipset binaries
2391 ipset-install
: ipset
2392 install -D ipset
/ipset
$(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2393 install -d
$(INSTALLDIR
)/ipset
/usr
/lib
/
2394 install ipset
/*.so
$(INSTALLDIR
)/ipset
/usr
/lib
/
2395 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/lib
/*.so
2396 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2399 -@
$(MAKE
) -C ipset
clean
2402 @
$(MAKE
) -C comgt CC
=$(CC
) CFLAGS
="$(EXTRACFLAGS)" LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" comgt
2404 comgt-install
: comgt
2405 install -D comgt
/comgt
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2406 cd
$(INSTALLDIR
)/comgt
/usr
/sbin
/ && \
2408 $(STRIP
) -s
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2409 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/gcom
2410 @cp
-f comgt
/gcom
/* $(TARGETDIR
)/rom
/etc
/gcom
/
2413 -@
$(MAKE
) -C comgt
clean
2420 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
2424 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
2427 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
2430 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
2435 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
2437 .PHONY
: all clean distclean mrproper
install package
2438 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
2439 .PHONY
: dummy libnet libpcap