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
)
106 ifeq ($(TCONFIG_SAMBASRV
),y
)
107 ifeq ($(TCONFIG_SAMBA3
),y
)
114 ifeq ($(TCONFIG_IPV6
),y
)
115 export TCONFIG_IPV6
:= y
120 ifeq ($(TCONFIG_IPSEC
),y
)
121 export TCONFIG_IPSEC
:= y
126 ifeq ($(TCONFIG_RAID
),y
)
127 export TCONFIG_RAID
:= y
132 obj-
$(NEED_SAMBA2
) += samba
133 obj-
$(NEED_SAMBA3
) += samba3
134 obj-
$(TCONFIG_NTFS
) += ntfs-3g
135 obj-
$(TCONFIG_EBTABLES
) += ebtables
136 #obj-$(TCONFIG_IPV6) += libdaemon
137 #obj-$(TCONFIG_IPV6) += radvd
138 obj-
$(TCONFIG_IPV6
) += dhcpv6
140 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
141 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
142 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
143 #obj-$(TCONFIG_MEDIA_SERVER) += libiconv
144 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
145 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
146 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
147 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
148 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
149 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
150 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
151 MEDIA_SERVER_STATIC
=y
152 #MEDIA_SERVER_STATIC :=
154 #obj-y += libnfnetlink
157 obj-
$(CONFIG_LINUX26
) += ipset
161 # configurable packages
163 obj-
$(TCONFIG_L2TP
) += xl2tpd
164 obj-
$(TCONFIG_PPTP
) += accel-pptp
165 obj-
$(TCONFIG_PPTPD
) += pptpd
166 obj-
$(TCONFIG_HTTPS
) += openssl
167 obj-
$(TCONFIG_SSH
) += dropbear
168 obj-
$(TCONFIG_ZEBRA
) += zebra
169 # obj-$(TCONFIG_IPP2P) += ipp2p
170 obj-
$(TCONFIG_LZO
) += lzo
171 obj-
$(TCONFIG_OPENVPN
) += openvpn
172 obj-
$(TCONFIG_OPENVPN
) += openvpn_plugin_auth_nvram
173 obj-
$(TCONFIG_TINC
) += tinc
174 obj-
$(TCONFIG_EMF
) += emf
175 obj-
$(TCONFIG_EMF
) += igs
178 # additional modules for nginx
179 ifeq (obj-
$(TCONFIG_NGINX
),y
)
180 ifndef ($(ADDITIONAL_MODULES
))
183 ifeq ($(TCONFIG_IPV6
),y
)
184 ADDITIONAL_MODULES
+= --with-ipv6
188 obj-
$(TCONFIG_NGINX
) += openssl
189 obj-
$(TCONFIG_NGINX
) += spawn-fcgi
190 obj-
$(TCONFIG_NGINX
) += pcre
191 obj-
$(TCONFIG_NGINX
) += sqlite
192 obj-
$(TCONFIG_NGINX
) += libiconv
193 obj-
$(TCONFIG_NGINX
) += libxml2
194 obj-
$(TCONFIG_NGINX
) += libpng
195 obj-
$(TCONFIG_NGINX
) += libjpeg
196 obj-
$(TCONFIG_NGINX
) += php
197 obj-
$(TCONFIG_NGINX
) += nginx
199 obj-
$(TCONFIG_BBT
) += openssl
200 obj-
$(TCONFIG_BBT
) += libevent
201 obj-
$(TCONFIG_BBT
) += libcurl
202 obj-
$(TCONFIG_BBT
) += transmission
203 obj-
$(TCONFIG_BT
) += btgui
204 obj-
$(TCONFIG_BBT
) += zlib
205 #obj-$(TCONFIG_BBT) += libiconv
207 obj-
$(CONFIG_LINUX26
) += hotplug2
208 obj-
$(CONFIG_LINUX26
) += udevtrigger
210 ifeq ($(TCONFIG_OPENVPN
),y
)
211 export FULL_OPENSSL
:= y
213 ifeq ($(TCONFIG_FTP_SSL
),y
)
214 export FULL_OPENSSL
:= y
216 ifeq ($(TCONFIG_BBT
),y
)
217 export FULL_OPENSSL
:= y
219 ifeq ($(TCONFIG_TOR
),y
)
220 export FULL_OPENSSL
:= y
222 ifeq ($(TCONFIG_TOR
),y
)
223 export FULL_OPENSSL
:= y
225 ifeq ($(TCONFIG_TINC
),y
)
226 export FULL_OPENSSL
:= y
238 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
239 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
247 all: clean-build libc
$(obj-y
) kernel
250 kernel
: $(LINUXDIR
)/.config
253 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
254 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
256 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
257 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
259 ifeq ($(CONFIG_LINUX26
),y
)
260 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
) $(PARALLEL_BUILD
)
265 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
) $(PARALLEL_BUILD
)
267 lzma-loader-install
: lzma-loader
272 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
)
275 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
276 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
278 install package
: $(obj-install
) $(LINUXDIR
)/.config
281 install -d
$(TARGETDIR
)
285 $(MAKE
) -C
$(LINUXDIR
) modules_install \
286 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" \
287 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
289 ifneq ($(CONFIG_LINUX26
),y
)
290 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
291 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
292 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
293 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
294 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
295 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
296 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
298 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
301 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
304 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
305 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
306 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
307 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
308 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
309 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
310 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
311 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
312 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
313 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
316 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
317 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
318 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
319 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
320 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
321 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
322 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
323 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
324 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
325 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
326 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
327 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfs
/* .
&& rm -rf hfs || true
328 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
329 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
330 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
331 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
332 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
333 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
334 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
335 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
336 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
337 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
338 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
339 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
340 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
341 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
342 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
343 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
344 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
345 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
346 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
347 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
348 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
349 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
350 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
351 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
352 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
353 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
354 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
355 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
356 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
357 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
358 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
359 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
360 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
362 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
363 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
364 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
365 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
366 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv usb
/* .
&& rm -rf usb || true
367 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
370 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
371 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
374 ifneq ($(TCONFIG_L7
),y
)
375 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
379 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
380 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
381 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
382 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
383 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
384 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
385 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
386 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
387 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
388 ifeq ($(TCONFIG_SSH
),y
)
389 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
391 ifeq ($(TCONFIG_BBT
),y
)
392 install $(LIBDIR
)/librt-0.9
.30.1.so
$(TARGETDIR
)/lib
/librt.so
.0
394 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
395 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
396 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
399 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
403 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
404 @
$(SRCBASE
)/btools
/libfoo.pl
406 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
408 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
409 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
411 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
412 # separated/copied extra stuff
413 @
rm -rf
$(PLATFORMDIR
)/extras
414 @mkdir
$(PLATFORMDIR
)/extras
415 @mkdir
$(PLATFORMDIR
)/extras
/ipsec
416 @mkdir
$(PLATFORMDIR
)/extras
/raid
417 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
418 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/usr/lib/iptables/libipt_policy.*o $(PLATFORMDIR)/extras/ipsec/ || true
420 $(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
421 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
423 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/mdadm
$(PLATFORMDIR
)/extras
/raid
/ || true
424 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md
/*.ko
$(PLATFORMDIR
)/extras
/raid
/ || true
425 $(if
$(TCONFIG_RAID
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md || true
427 @cp
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ip_set
*o
$(PLATFORMDIR
)/extras
/ || true
428 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
429 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
430 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
431 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
432 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
433 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
434 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
435 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
436 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
437 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
438 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
439 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
440 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
441 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
442 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
443 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
445 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
446 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
447 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
448 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
449 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-acm.
*o
$(PLATFORMDIR
)/extras
/ || true
450 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
451 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
452 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
453 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
454 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
456 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ch341.
*o
$(PLATFORMDIR
)/extras
/ || true
457 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
458 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
459 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
460 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
461 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
462 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
463 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
464 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
465 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
466 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-wdm.
*o
$(PLATFORMDIR
)/extras
/ || true
467 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
468 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
469 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/qmi_wwan.
*o
$(PLATFORMDIR
)/extras
/ || true
470 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ipheth.
*o
$(PLATFORMDIR
)/extras
/ || true
471 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
472 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
473 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
474 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
475 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
476 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
477 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
478 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
479 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
480 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
481 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
482 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
483 $(if
$(TCONFIG_CTF
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
484 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
485 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
486 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
487 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
488 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
489 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
490 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm || true
491 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
492 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key || true
493 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/xfrm
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
494 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv*/tunnel*.ko $(PLATFORMDIR)/extras/ipsec/ || true
495 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ah
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
496 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/esp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
497 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ipcomp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
498 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_policy.ko $(PLATFORMDIR)/extras/ipsec/ || true
500 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
501 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
502 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
503 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
504 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
505 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
506 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
508 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
509 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
510 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
511 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
512 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
513 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
514 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
515 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
516 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
517 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
518 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
519 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
520 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfs.
*o
$(PLATFORMDIR
)/extras
/ || true
521 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
523 ifneq ($(TCONFIG_USB
),y
)
524 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
525 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
526 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
529 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
530 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
531 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
532 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
533 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
535 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
536 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
537 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
538 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
539 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
540 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
541 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
543 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
544 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
546 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
547 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
548 @cp
-r
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
550 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
551 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
552 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
553 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
554 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
555 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
556 ifneq ($(NEED_EX_USB
),y
)
557 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
558 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
560 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
562 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
563 ifeq ($(TCONFIG_L7PAT
),y
)
564 @cd layer7
&& .
/squish.sh
565 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
568 ifeq ($(TCONFIG_PPTPD
),y
)
569 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/vpn
570 cp rc
/vpn
/* $(TARGETDIR
)/rom
/etc
/vpn
571 chmod
+x
$(TARGETDIR
)/rom
/etc
/vpn
/*
574 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
575 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
578 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
580 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
581 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-no-duplicates | tee target.
info
583 # Package kernel and filesystem
584 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
585 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
586 # $(MAKE) -C $(LINUXDIR) zImage ; \
588 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
589 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
592 # Pad self-booting Linux to a 64 KB boundary
593 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
594 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
595 # Append filesystem to self-booting Linux
596 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
599 libc
: $(LIBDIR
)/ld-uClibc.so
.0
600 # $(MAKE) -C ../../../tools-src/uClibc all
601 # $(MAKE) -C ../../../tools-src/uClibc install
608 clean: clean-build
$(obj-clean
)
609 rm -rf layer7
/squished
610 rm -f .ipv6-y .ipv6-n
611 rm -f .fullssl-y .fullssl-n
617 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
618 rm -rf
$(PLATFORMDIR
)/extras
621 ifneq ($(INSIDE_MAK
),1)
622 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
624 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
630 CONFIG_IN
:= config
/config.in
632 config
/conf config
/mconf
:
636 @config
/conf
$(CONFIG_IN
)
639 @config
/mconf
$(CONFIG_IN
)
641 roldconf
: config
/conf
642 @config
/conf
-o
$(CONFIG_IN
)
643 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
646 @
$(MAKE
) -C
$(LINUXDIR
) config
649 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
652 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
653 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
656 @
$(MAKE
) -C busybox oldconfig
658 config conf
: rconf kconf
660 menuconfig mconf
: rmconf kmconf
663 @
rm -f .ipv6-y .ipv6-n
664 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
667 .fullssl-y .fullssl-n
:
668 @
rm -f .fullssl-y .fullssl-n
669 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
672 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
674 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
678 # overrides and extra dependencies
682 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" $(PARALLEL_BUILD
)
685 rm -rf
$(INSTALLDIR
)/busybox
686 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
689 -@
$(MAKE
) -C busybox
distclean
692 $(MAKE
) -C busybox menuconfig
695 httpd
: shared nvram mssl
700 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
704 @
$(MAKE
) -C matrixssl
/src
710 -@
$(MAKE
) -C matrixssl
/src
clean
713 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
714 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
715 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
716 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
717 PTHREAD_LIBS
="-lpthread" \
719 @touch cyassl
/stamp-h1
721 cyassl
: cyassl
/stamp-h1
726 -@
$(MAKE
) -C cyassl
clean
727 @
rm -f cyassl
/stamp-h1
732 ifeq ($(FULL_OPENSSL
),y
)
733 OPENSSL_CIPHERS
:=enable-rc5
735 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
740 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
741 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
742 shared
$(OPENSSL_CIPHERS
) \
743 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
744 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
745 $(if
$(TCONFIG_TINC
),,no-ec no-ecdh no-ecdsa
) no-err no-hw no-jpake no-threads \
746 no-zlib no-engines no-sse2 \
747 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
749 @
$(MAKE
) -C openssl
clean
750 @touch openssl
/stamp-h1
752 openssl
: openssl
/stamp-h1
755 -@
$(MAKE
) -C openssl
clean
756 @
rm -f openssl
/stamp-h1
758 openssl-install
: openssl
759 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
760 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
761 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
763 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
764 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
765 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
767 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
769 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
770 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
772 ifeq ($(FULL_OPENSSL
),y
)
773 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
774 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
775 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
778 mssl
: $(if
$(FULL_OPENSSL
),openssl
,cyassl
)
785 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
786 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
788 bridge
: bridge
/Makefile
793 -@
$(MAKE
) -C bridge
clean
794 @
rm -f bridge
/Makefile
797 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
798 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
800 dnsmasq
: $(if
$(TCONFIG_DNSSEC
),nettle
,)
802 @
$(MAKE
) -C dnsmasq
$(PARALLEL_BUILD
) \
803 COPTS
="$(if $(TCONFIG_DNSSEC),-I$(TOP)/nettle/include -I$(TOP)/gmp -DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC,) \
804 $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) \
805 $(if $(CONFIG_LINUX26),-DUSE_IPSET,-DNO_IPSET) \
806 -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
807 LDFLAGS
="$(if $(TCONFIG_DNSSEC),-L$(TOP)/nettle/lib -L$(TOP)/gmp/.libs,) -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
808 $(if
$(TCONFIG_DNSSEC
),PKG_CONFIG_PATH
="$(TOP)/nettle/lib/pkgconfig",)
811 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
812 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
815 @cd nettle
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
816 CPPFLAGS
="-I$(TOP)/gmp" \
817 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
818 LDFLAGS
="-L$(TOP)/gmp/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
819 $(CONFIGURE
) prefix=$(TOP
)/nettle
820 @touch nettle
/stamp-h1
822 nettle
: nettle
/stamp-h1
825 @
$(MAKE
) -C nettle
install
828 -@
$(MAKE
) -C nettle
clean
829 @
rm -f nettle
/stamp-h1
830 @
rm -rf nettle
/include nettle
/lib nettle
/bin nettle
/share
833 @cd gmp
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
834 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
835 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
844 @
$(MAKE
) -C gmp
clean
848 ifeq ($(CONFIG_LINUX26
),y
)
849 cp
-f iptables
/extensions
/libipt_ipp2p_K26.c iptables
/extensions
/libipt_ipp2p.c
851 cp
-f iptables
/extensions
/libipt_ipp2p_K24.c iptables
/extensions
/libipt_ipp2p.c
854 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
857 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
858 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
859 ln
-sf iptables iptables-restore
&& \
860 ln
-sf iptables iptables-save
862 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
863 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
865 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
867 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
868 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
869 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
871 ifeq ($(TCONFIG_IPV6
),y
)
872 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
873 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
874 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
875 ln
-sf ip6tables ip6tables-restore
&& \
876 ln
-sf ip6tables ip6tables-save
880 -@
$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
884 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,) $(PARALLEL_BUILD
)
885 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
888 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
890 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
891 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
892 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
893 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
894 @touch rp-pppoe
/src
/stamp-h1
896 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
897 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
$(PARALLEL_BUILD
)
900 -@
$(MAKE
) -C rp-pppoe
/src
clean
901 @
rm -f rp-pppoe
/src
/pppoe-relay
902 @
rm -f rp-pppoe
/src
/stamp-h1
904 rp-pppoe-install
: rp-pppoe
905 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
906 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
907 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
908 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
911 upnp
: nvram shared iptables
913 libnfnetlink
/stamp-h1
:
914 cd
$(TOP
)/libnfnetlink
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
915 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
916 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
917 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
918 touch libnfnetlink
/stamp-h1
920 libnfnetlink
: libnfnetlink
/stamp-h1
922 $(MAKE
) -C libnfnetlink
924 libnfnetlink-install
:
925 install -D libnfnetlink
/src
/.libs
/libnfnetlink.so
.0.2.0 $(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
926 $(STRIP
) -s
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
927 cd
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/ && \
928 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
.0 && \
929 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
932 #ifeq ($(TCONFIG_IPV6),y)
933 # @cd miniupnpd && ./genconfig.sh --leasefile --ipv6
935 @cd miniupnpd
&& .
/genconfig.sh
--leasefile
938 miniupnpd
: iptables miniupnpd-config
940 $(MAKE
) -C miniupnpd miniupnpd
-f Makefile.linux CC
=$(CC
) \
941 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include" \
942 LDFLAGS
="-L$(TOP)/iptables -liptc" LIBS
="" $(PARALLEL_BUILD
)
945 -@
$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
946 @
rm -f miniupnpd
/config.h
949 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
950 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
955 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
957 $(MAKE
) -C vsftpd
$(PARALLEL_BUILD
)
959 vsftpd-install
: vsftpd
960 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
961 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
965 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
966 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
967 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
968 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
969 --disable-ntfsprogs
--disable-crypto
--without-uuid \
970 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
972 ntfs-3g
: ntfs-3g
/Makefile
973 @
$(MAKE
) -C ntfs-3g
$(PARALLEL_BUILD
)
976 -@
$(MAKE
) -C ntfs-3g
clean
977 @
rm -f ntfs-3g
/Makefile
979 ntfs-3g-install
: ntfs-3g
980 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
981 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
982 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
983 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
984 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
986 libusb10
/Makefile
: libusb10
/Makefile.in
987 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
988 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
990 libusb10
: libusb10
/Makefile
993 libusb10-install
: libusb10
994 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
995 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
998 -@
$(MAKE
) -C
$@
clean
999 @
rm -rf libusb10
/Makefile
1001 libusb
/Makefile
: libusb
/Makefile.in
1002 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
1003 $(CONFIGURE
) --prefix=/usr \
1004 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
1005 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
1006 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
1008 libusb
: libusb10 libusb
/Makefile
1011 libusb-install
: libusb
1012 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
1013 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
1016 -@
$(MAKE
) -C
$@
clean
1017 @
rm -rf libusb
/Makefile
1019 usbmodeswitch
: libusb10
1020 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
1021 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
1022 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
1024 usbmodeswitchdb-install
:
1025 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
1026 # compress whitespace
1027 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
1029 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
1032 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
1033 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1034 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1035 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1036 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
1038 #libdaemon: libdaemon/Makefile
1041 #libdaemon/Makefile: libdaemon/Makefile.in
1042 # cd libdaemon && $(CONFIGURE) ac_cv_func_setpgrp_void=yes \
1043 # --disable-dependency-tracking
1045 #libdaemon-install: libdaemon
1046 # install -D libdaemon/libdaemon/.libs/libdaemon.so.0.5.0 $(INSTALLDIR)/libdaemon/usr/lib/libdaemon.so.0.5.0
1047 # $(STRIP) $(INSTALLDIR)/libdaemon/usr/lib/*.so.*
1048 # cd $(INSTALLDIR)/libdaemon/usr/lib && \
1049 # ln -sf libdaemon.so.0.5.0 libdaemon.so && \
1050 # ln -sf libdaemon.so.0.5.0 libdaemon.so.0
1053 # -@$(MAKE) -C libdaemon distclean
1056 # cd radvd && CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1057 # LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1058 # $(CONFIGURE) --prefix="" --disable-dependency-tracking \
1059 # DAEMON_CFLAGS="-I$(TOP)/libdaemon" \
1060 # DAEMON_LIBS="-ldaemon -L$(TOP)/libdaemon/libdaemon/.libs"
1061 # @$(MAKE) -C radvd clean
1062 # @touch radvd/stamp-h1
1064 #radvd: libdaemon radvd/stamp-h1
1067 # -@$(MAKE) -C radvd distclean
1068 # @rm -f radvd/stamp-h1
1070 #radvd-install: radvd
1071 # install -D radvd/radvd $(INSTALLDIR)/radvd/usr/sbin/radvd
1072 # $(STRIP) $(INSTALLDIR)/radvd/usr/sbin/radvd
1076 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
1077 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1078 ac_cv_func_setpgrp_void
=yes \
1079 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
1080 @
$(MAKE
) -C dhcpv6
clean
1081 @touch dhcpv6
/stamp-h1
1083 dhcpv6
: dhcpv6
/stamp-h1
1085 @
$(MAKE
) -C dhcpv6 dhcp6c
1087 dhcpv6-install
: dhcpv6
1088 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1089 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1092 -@
$(MAKE
) -C dhcpv6
clean
1093 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
1106 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
1109 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
1110 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
1113 pptp-client-install
:
1114 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1115 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1118 accel-pptp
: pppd accel-pptp
/Makefile
1119 @
$(MAKE
) -C accel-pptp
1121 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
1122 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
1123 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
1126 -@
$(MAKE
) -C accel-pptp
clean
1127 @
rm -f accel-pptp
/Makefile
1129 accel-pptp-install
: accel-pptp
1130 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1131 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1134 cd pptpd
&& $(CONFIGURE
) --prefix=$(INSTALLDIR
)/pptpd
--enable-bcrelay CC
=mipsel-uclibc-gcc \
1135 STRIP
=mipsel-uclibc-strip AR
=mipsel-uclibc-ar LD
=mipsel-uclibc-ld NM
=mipsel-uclibc-nm RANLIB
=mipsel-uclibc-ranlib
1136 touch pptpd
/stamp-h1
1138 pptpd
: pptpd
/stamp-h1
1140 pptpd-install
: pptpd
1142 @
install -D pptpd
/pptpd
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1143 @
install -D pptpd
/bcrelay
$(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1144 @
install -D pptpd
/pptpctrl
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1145 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1146 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1147 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1150 -@
$(MAKE
) -C pptpd
clean
1151 rm -rf pptpd
/stamp-h1 pptpd
/.deps
1153 pppd
/Makefile
: pppd
/linux
/Makefile.top
1154 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
1158 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
1161 -@
$(MAKE
) -C pppd
clean
1162 @
rm -f pppd
/Makefile
1165 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1166 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1167 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1168 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1169 ifeq ($(TCONFIG_L2TP
),y
)
1170 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
1171 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
1175 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1176 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1179 @cd zebra
&& rm -f config.cache
&& \
1180 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1181 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1182 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1183 $(CONFIGURE
) --sysconfdir
=/etc \
1184 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
1185 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
1186 @touch zebra
/stamp-h1
1188 zebra
: zebra
/stamp-h1
1189 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
1192 -@
$(MAKE
) -C zebra
clean
1193 @
rm -f zebra
/stamp-h1
1195 zebra-install
: zebra
1196 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1197 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1198 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1199 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1200 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1201 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1205 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1206 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1207 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
1208 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1209 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1210 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1211 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1214 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
1216 xl2tpd-install
: xl2tpd
1217 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1218 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1222 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1223 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1228 # @-mkdir -p libnet/lib
1229 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1233 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1236 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1239 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1240 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1245 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1247 iproute2-install
: iproute2
1248 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1249 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1250 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1251 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1257 dropbear
: dropbear
/config.h
1259 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 $(PARALLEL_BUILD
)
1262 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1263 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1264 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1265 ln
-sf dropbearmulti dropbear
&& \
1266 ln
-sf dropbearmulti dropbearconvert
&& \
1267 ln
-sf dropbearmulti dropbearkey
&& \
1268 ln
-sf dropbearmulti dbclient
&& \
1269 ln
-sf dropbearmulti ssh
&& \
1270 ln
-sf dropbearmulti scp
1273 -@
$(MAKE
) -C dropbear
clean
1274 @
rm -f dropbear
/config.h
1278 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1279 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1280 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1281 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1282 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1283 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1284 @
$(MAKE
) -C dropbear
clean
1290 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1291 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1292 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1293 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1294 touch sqlite
/stamp-h1
1296 sqlite
: sqlite
/stamp-h1
1297 @
$(MAKE
) -C sqlite
all $(PARALLEL_BUILD
)
1300 -@
$(MAKE
) -C sqlite
clean
1301 @
rm -f sqlite
/stamp-h1
1303 sqlite-install
: sqlite
1305 ifeq ($(TCONFIG_NGINX
),y
)
1306 install -D sqlite
/.libs
/libsqlite3.so
.0.8.6 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1307 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1308 cd
$(INSTALLDIR
)/sqlite
/usr
/lib
/ && \
1309 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
.0 && \
1310 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
1313 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1315 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1316 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1318 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1319 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1321 FFMPEG_PROTOCOLS
:=file
1322 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1324 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
1325 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1327 ffmpeg
/stamp-h1
: zlib
1328 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1329 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1330 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1331 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1332 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1333 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1334 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1335 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1336 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1337 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1338 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1339 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1340 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1341 --extra-libs
="-L$(TOP)/zlib -lz" \
1342 --enable-zlib
--disable-debug
--prefix=''
1343 touch ffmpeg
/stamp-h1
1345 ffmpeg
: ffmpeg
/stamp-h1 zlib
1346 @
$(MAKE
) -C ffmpeg
all $(PARALLEL_BUILD
)
1349 -@
$(MAKE
) -C ffmpeg
clean
1350 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1352 ffmpeg-install
: ffmpeg
1354 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1355 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1356 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1357 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1358 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1359 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1360 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1365 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1366 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1367 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1368 touch libogg
/stamp-h1
1370 libogg
: libogg
/stamp-h1
1371 @
$(MAKE
) -C libogg
all $(PARALLEL_BUILD
)
1374 -@
$(MAKE
) -C libogg
clean
1375 @
rm -f libogg
/stamp-h1
1377 libogg-install
: libogg
1379 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1380 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1381 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1384 flac
/stamp-h1
: libogg
1386 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1387 CPPFLAGS
="-I$(TOP)/libogg/include" \
1388 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1389 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1390 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1391 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1394 flac
: flac
/stamp-h1 libogg
1395 @
$(MAKE
) -C flac
/src
/libFLAC
all $(PARALLEL_BUILD
)
1398 -@
$(MAKE
) -C flac
clean
1399 @
rm -f flac
/stamp-h1
1403 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1404 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1405 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1410 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1414 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
$(PARALLEL_BUILD
)
1417 -@
$(MAKE
) -C jpeg
clean
1418 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1422 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1423 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1424 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1428 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1429 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1430 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1431 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1432 touch libexif
/stamp-h1
1434 libexif
: libexif
/stamp-h1
1435 @
$(MAKE
) -C libexif
all
1438 -@
$(MAKE
) -C libexif
clean
1439 @
rm -f libexif
/stamp-h1
1441 libexif-install
: libexif
1443 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1444 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1445 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1450 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC" LDSHAREDLIBC
="$(EXTRALDFLAGS)" \
1451 .
/configure
--shared
--prefix=/usr
--libdir=/usr
/lib
1455 @
$(MAKE
) -C zlib
all
1456 @
$(MAKE
) -C zlib DESTDIR
=$(TOP
)/zlib
/staged
install
1459 -@
$(MAKE
) -C zlib
clean
1460 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1465 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1466 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1467 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1468 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1470 ifeq ($(TCONFIG_BT
),y
)
1471 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1472 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1473 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1475 ifeq ($(TCONFIG_TOR
),y
)
1476 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1477 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1478 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1481 libid3tag
/stamp-h1
: zlib
1483 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1484 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1485 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1486 --disable-debugging
--disable-profiling
1487 touch libid3tag
/stamp-h1
1489 libid3tag
: libid3tag
/stamp-h1 zlib
1490 @
$(MAKE
) -C libid3tag
all $(PARALLEL_BUILD
)
1493 -@
$(MAKE
) -C libid3tag
clean
1494 @
rm -f libid3tag
/stamp-h1
1496 libid3tag-install
: libid3tag
1498 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1499 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1500 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1503 libvorbis
/stamp-h1
: libogg
1505 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1506 CPPFLAGS
="-I$(TOP)/libogg/include" \
1507 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1508 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1509 --with-ogg-includes
="$(TOP)/libogg/include" \
1510 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1511 touch libvorbis
/stamp-h1
1513 libvorbis
: libvorbis
/stamp-h1
1514 @
$(MAKE
) -C libvorbis
/lib
all $(PARALLEL_BUILD
)
1517 -@
$(MAKE
) -C libvorbis
clean
1518 @
rm -f libvorbis
/stamp-h1
1520 libvorbis-install
: libvorbis
1522 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1523 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1524 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1527 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1529 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
$(PARALLEL_BUILD
)
1532 -@
$(MAKE
) -C minidlna
clean
1533 @
rm -f minidlna
/stamp-h1
1535 minidlna-install
: minidlan
1537 install -D minidlna
/minidlna
$(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1538 $(STRIP
) $(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1540 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1541 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1542 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1543 $(CONFIGURE
) --prefix=/usr
1545 igmpproxy
: igmpproxy
/src
/Makefile
1547 @
$(MAKE
) -C igmpproxy
/src
$(PARALLEL_BUILD
)
1549 igmpproxy-install
: igmpproxy
1550 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1551 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1554 -@
$(MAKE
) -C igmpproxy
/src
clean
1555 @
rm -f igmpproxy
/src
/Makefile
1558 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1559 PROGRAMS
=udevtrigger
1562 install -d
$(INSTALLDIR
)
1563 install -d
$(TARGETDIR
)
1564 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1567 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1569 hotplug2-install
: hotplug2
1570 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1571 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1574 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1577 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1580 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1583 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1585 wanuptime
: nvram shared
1587 @
$(MAKE
) -C wanuptime
1590 -@
$(MAKE
) -C wanuptime
clean
1593 install -D wanuptime
/wanuptime
$(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1594 $(STRIP
) $(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1597 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1598 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1599 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1601 ebtables-install
: ebtables
1602 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1604 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1605 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1606 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1608 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1609 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1610 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1611 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1613 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1614 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1615 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1618 -@
$(MAKE
) -C ebtables
clean
1621 spawn-fcgi
/stamp-h1
:
1622 cd spawn-fcgi
&& CC
=$(CC
) \
1623 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1624 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1625 ac_cv_func_malloc_0_nonnull
=yes \
1626 $(CONFIGURE
) --prefix=/usr
1627 touch spawn-fcgi
/stamp-h1
1629 spawn-fcgi
: spawn-fcgi
/stamp-h1
1630 @
$(MAKE
) -C spawn-fcgi
$(PARALLEL_BUILD
)
1633 -@
$(MAKE
) -C spawn-fcgi
clean
1634 rm -f spawn-fcgi
/stamp-h1
1636 spawn-fcgi-install
: spawn-fcgi
1637 install -d
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
1638 install spawn-fcgi
/src
/spawn-fcgi
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1639 $(STRIP
) -s
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1644 @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 \
1645 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 \
1646 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 \
1647 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 \
1648 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
1653 @
$(MAKE
) -C glib
$(PARALLEL_BUILD
)
1656 -@
$(MAKE
) -C glib
clean
1660 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1662 nocat
/stamp-h1
: glib-install
1666 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1669 echo
*** integrate glib to nocat installdir
1670 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1671 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1672 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1673 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1674 touch nocat
/stamp-h1
1676 nocat
: nocat
/stamp-h1
1677 @
$(MAKE
) -C nocat
$(PARALLEL_BUILD
)
1680 -@
$(MAKE
) -C nocat
clean
1681 rm -f nocat
/stamp-h1
1684 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1685 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1686 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1687 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1693 CC
=$(CC
) CXX
=$(HOST
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1694 $(CONFIGURE
) --prefix=/usr
--disable-dependency-tracking
--enable-utf8
--enable-unicode-properties
--disable-cpp
1695 @touch pcre
/stamp-h1
1696 [ -d pcre
/m4
] || mkdir pcre
/m4
1702 install -D pcre
/.libs
/libpcre.so
.1 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1703 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1704 install -D pcre
/.libs
/libpcreposix.so
.0.0.2 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1705 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1706 cd
$(INSTALLDIR
)/pcre
/usr
/lib
/ && \
1707 ln
-sf libpcre.so
.1.2.3 libpcre.so
.1 && \
1708 ln
-sf libpcreposix.so
.0.0.2 libpcreposix.so
.0
1711 ( if
[ -f pcre
/Makefile
]; then \
1712 $(MAKE
) -C pcre
clean; \
1713 rm -rf pcre
/stamp-h1
; \
1718 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1719 $(CONFIGURE
) --prefix=/usr
--without-python
--enable-static
--enable-shared
1722 libxml2
: libxml2
/stamp-h1
1723 @
$(MAKE
) -C libxml2
all $(PARALLEL_BUILD
)
1724 @
$(MAKE
) -C libxml2 DESTDIR
=$(TOP
)/libxml2
/staged
install
1726 libxml2-install
: libxml2
1728 install -D libxml2
/.libs
/libxml2.so
.2.9.1 $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1729 $(STRIP
) $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1730 cd
$(INSTALLDIR
)/libxml2
/usr
/lib
&& \
1731 ln
-sf libxml2.so
.2.9.1 libxml2.so
.2 && \
1732 ln
-sf libxml2.so
.2.9.1 libxml2.so
1735 -@
$(MAKE
) -C libxml2
clean
1736 @
rm -f libxml2
/stamp-h1
1737 @
rm -rf libxml2
/staged
1741 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1742 $(CONFIGURE
) --prefix=/usr
--enable-static
--enable-shared
1745 libpng
: libpng
/stamp-h1
1746 @
$(MAKE
) -C libpng
all $(PARALLEL_BUILD
)
1747 @
$(MAKE
) -C libpng DESTDIR
=$(TOP
)/libpng
/staged
install
1749 libpng-install
: libpng
1751 install -D libpng
/.libs
/libpng.so
.3.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1752 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1753 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1754 ln
-sf libpng.so
.3.51.0 libpng.so
&& \
1755 ln
-sf libpng.so
.3.51.0 libpng.so
.3
1756 install -D libpng
/.libs
/libpng12.so
.0.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1757 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1758 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1759 ln
-sf libpng12.so
.0.51.0 libpng12.so
&& \
1760 ln
-sf libpng12.so
.0.51.0 libpng12.so
.0
1763 -@
$(MAKE
) -C libpng
clean
1764 @
rm -f libpng
/stamp-h1
1765 @
rm -rf libpng
/staged
1769 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1770 $(CONFIGURE
) --prefix=/usr
--enable-static
--enable-shared
1773 libjpeg
: libjpeg
/stamp-h1
1774 @
$(MAKE
) -C libjpeg
$(PARALLEL_BUILD
)
1775 install -d
$(TOP
)/libjpeg
/staged
/include
1776 install -d
$(TOP
)/libjpeg
/staged
/lib
1777 install -d
$(TOP
)/libjpeg
/staged
/bin
1778 install -d
$(TOP
)/libjpeg
/staged
/man
/man1
1779 @
$(MAKE
) -C libjpeg
prefix=$(TOP
)/libjpeg
/staged
install
1780 rm -f
$(TOP
)/libjpeg
/staged
/lib
/libjpeg.la
1782 libjpeg-install
: libjpeg
1784 install -D libjpeg
/.libs
/libjpeg.so
.62.0.0 $(INSTALLDIR
)/libjpeg
/usr
/lib
/libjpeg.so
.62.0.0
1785 $(STRIP
) $(INSTALLDIR
)/libjpeg
/usr
/lib
/libjpeg.so
.62.0.0
1786 cd
$(INSTALLDIR
)/libjpeg
/usr
/lib
&& \
1787 ln
-sf libjpeg.so
.62.0.0 libjpeg.so
.62 && \
1788 ln
-sf libjpeg.so
.62.0.0 libjpeg.so
1791 -@
$(MAKE
) -C libjpeg
clean
1792 @
rm -f libjpeg
/stamp-h1
1793 @
rm -rf libjpeg
/staged
1795 php
/stamp-h1
: pcre zlib libiconv sqlite libxml2 libpng libjpeg
1797 cd php
&& CC
=$(CC
) CXX
=$(ARCH
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1798 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" \
1799 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" \
1800 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" \
1801 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 -lz -lsqlite3 -ldl -lpthread -liconv -lxml2" \
1802 PHP_FCGI_LIBXML_DIR
="$(TOP)/libxml2/staged/usr" \
1803 ac_cv_func_memcmp_working
=yes \
1804 cv_php_mbstring_stdarg
=yes \
1805 $(CONFIGURE
) --prefix=/usr \
1811 --with-config-file-path
=/etc \
1812 --with-config-file-scan-dir
=/etc
/php5 \
1813 --disable-short-tags \
1815 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
1819 --disable-calendar \
1829 --with-png-dir
="$(TOP)/libpng/staged/usr" \
1830 --with-jpeg-dir
="$(TOP)/libjpeg/staged" \
1832 --with-iconv
="$(TOP)/libiconv/staged/usr" \
1833 --with-iconv-dir
="$(TOP)/libiconv/staged/usr" \
1841 --without-pdo-mysql \
1842 --without-pdo-pgsql \
1848 --enable-simplexml \
1855 --disable-tokenizer \
1857 --enable-xmlreader \
1858 --enable-xmlwriter \
1861 --with-libxml-dir
="$(TOP)/libxml2/staged/usr"
1869 -@
$(MAKE
) -C php
clean
1874 install -d
$(INSTALLDIR
)/php
/usr
/sbin
1875 install -D php
/sapi
/cli
/.libs
/php
$(INSTALLDIR
)/php
/usr
/sbin
/php-cli
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
1876 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
1877 install -D php
/sapi
/cgi
/.libs
/php-cgi
$(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
1878 cd
$(INSTALLDIR
)/php
/usr
/sbin
&& ln
-sf php-cgi php-fcgi
1879 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
1881 nginx
/stamp-h1
: openssl zlib pcre
1883 cd
$(TOP
)/nginx
&& .
/configure
--crossbuild
=Linux
::$(ARCH
) \
1885 --sbin-path
=/usr
/sbin \
1886 --conf-path
=/etc
/nginx
/nginx.conf \
1887 --error-log-path
=/tmp
/var
/log
/nginx
/error.log \
1888 --http-log-path
=/tmp
/var
/log
/nginx
/access.log \
1889 --pid-path
=/tmp
/var
/run
/nginx.pid \
1890 --lock-path
=/tmp
/var
/run
/nginx.lock.accept \
1891 --http-client-body-temp-path
=/tmp
/var
/lib
/nginx
/client \
1892 --http-fastcgi-temp-path
=/tmp
/var
/lib
/nginx
/fastcgi \
1893 --with-http_flv_module \
1894 --with-http_ssl_module \
1895 --with-http_gzip_static_module \
1896 --http-uwsgi-temp-path
=/tmp
/var
/lib
/nginx
/uwsgi \
1897 --http-scgi-temp-path
=/tmp
/var
/lib
/nginx
/scgi \
1898 --http-proxy-temp-path
=/tmp
/var
/lib
/nginx
/proxy \
1900 --with-ld-opt
="$(LDFLAGS) -L $(TOP)/pcre/.libs -L $(TOP)/zlib -L $(TOP)/openssl" \
1901 --with-cc-opt
="$(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) -I $(TOP)/openssl/include -I $(TOP)/openssl/include/openssl -I $(TOP)/pcre -I $(TOP)/zlib" \
1902 $(ADDITIONAL_MODULES
)
1904 nginx
: nginx
/stamp-h1
1909 -@
$(MAKE
) -C nginx
clean
1910 -@
rm -f nginx
/stamp-h1
1912 nginx-install
: nginx
1913 install -d
$(INSTALLDIR
)/nginx
/usr
/sbin
1914 install -D nginx
/objs
/nginx
$(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
&& chmod
755 $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
1915 $(STRIP
) $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
1919 CFLAGS
="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1923 @
$(MAKE
) -C lzo
$(PARALLEL_BUILD
)
1926 -@
$(MAKE
) -C lzo
clean
1930 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1931 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1932 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1934 openvpn
/.conf
: openssl lzo
1935 cd openvpn
&& CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1936 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1937 CPPFLAGS
="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
1938 $(CONFIGURE
) --prefix= \
1939 --with-crypto-library
=openssl \
1940 --disable-debug
--disable-plugin-auth-pam
--disable-plugin-down-root
--with-plugindir
=/lib
--enable-management
--enable-small \
1941 --disable-selinux
--disable-socks
--enable-password-save \
1942 OPENSSL_SSL_CFLAGS
="-I$(TOP)/openssl/include" \
1943 OPENSSL_SSL_LIBS
="-L$(TOP)/openssl -lssl" \
1944 ac_cv_lib_resolv_gethostbyname
=no
1947 openvpn
: openvpn
/.conf
1948 @
$(MAKE
) -C openvpn
$(PARALLEL_BUILD
)
1951 -@
$(MAKE
) -C openvpn
clean
1952 @
rm -f openvpn
/.conf
1954 openvpn-install
: openvpn
1955 install -D openvpn
/src
/openvpn
/.libs
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1956 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1957 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1959 openvpn_plugin_auth_nvram
:nvram
1962 libcurl
/stamp-h1
: zlib openssl
1963 cd libcurl
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
1964 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -I$(TOP)/zlib" \
1965 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1966 $(CONFIGURE
) --prefix=/usr
--disable-thread
--enable-shared
--enable-static \
1967 --enable-ares
--enable-cookies
--enable-crypto-auth
--enable-nonblocking \
1968 --enable-file
--enable-ftp
--enable-http
--enable-ipv6
--enable-tftp \
1969 --disable-nls
--disable-ares
--disable-dict
--disable-debug
--disable-gopher \
1970 --disable-ldap
--disable-manual
--disable-telnet
--disable-verbose \
1971 --with-random
="/dev/urandom" --with-ssl
="$(TOP)/openssl" \
1972 --without-gnutls
--without-krb4
--without-libidn \
1973 --with-linux-headers
=$(LINUXDIR
)/include \
1974 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
1975 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
1976 touch libcurl
/stamp-h1
1978 libcurl
: libcurl
/stamp-h1
1979 @
$(MAKE
) -C libcurl
$(PARALLEL_BUILD
)
1982 -@
$(MAKE
) -C libcurl
clean
1983 @
rm -f libcurl
/stamp-h1 libcurl
/Makefile
1985 libcurl-install
: libcurl
1986 install -d
$(INSTALLDIR
)/libcurl
/usr
/lib
1987 install -D libcurl
/lib
/.libs
/libcurl.so
.4.3.0 $(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
1988 $(STRIP
) -s
$(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
1989 cd
$(INSTALLDIR
)/libcurl
/usr
/lib
/ && \
1990 ln
-sf libcurl.so
.4.3.0 libcurl.so
.4 && \
1991 ln
-sf libcurl.so
.4.3.0 libcurl.so
1994 cd libevent
&& CC
=$(CC
) \
1995 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1996 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1998 touch libevent
/stamp-h1
2000 libevent
: libevent
/stamp-h1
2002 $(MAKE
) -C libevent
$(PARALLEL_BUILD
)
2003 $(MAKE
) -C libevent DESTDIR
=$(TOP
)/libevent
/staged
install
2006 -@
$(MAKE
) -C libevent
clean
2007 @
rm -f libevent
/stamp-h1 libevent
/Makefile
2008 @
rm -rf libevent
/staged
2010 libevent-install
: libevent
2011 install -d
$(INSTALLDIR
)/libevent
/usr
/lib
2012 install libevent
/.libs
/libevent-2.0.so
.5.1.9 $(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2013 $(STRIP
) -s
$(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2016 cd libiconv
&& CC
=$(CC
) \
2017 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2018 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2019 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-static
--enable-shared
2020 touch libiconv
/stamp-h1
2022 libiconv
: libiconv
/stamp-h1
2024 $(MAKE
) -C libiconv
$(PARALLEL_BUILD
)
2025 $(MAKE
) -C libiconv DESTDIR
=$(TOP
)/libiconv
/staged
install
2028 -@
$(MAKE
) -C libiconv
clean
2029 @
rm -rf libiconv
/stamp-h1 libiconv
/Makefile
2030 @
rm -rf libiconv
/staged
2032 libiconv-install
: libiconv
2033 install -d
$(INSTALLDIR
)/libiconv
/usr
/lib
2034 install libiconv
/lib
/.libs
/libiconv.so
.2.5.1 $(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2035 $(STRIP
)-s
$(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2036 cd
$(INSTALLDIR
)/libiconv
/usr
/lib
/ && \
2037 ln
-sf libiconv.so
.2.5.1 libiconv.so
.2 && \
2038 ln
-sf libiconv.so
.2.5.1 libiconv.so
2040 transmission
/stamp-h1
: openssl libcurl libevent zlib
2041 cd transmission
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2043 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2044 --param large-function-growth=800 --param max-inline-insns-single=3000 \
2045 -ffunction-sections -fdata-sections" \
2046 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC \
2047 -L$(TOP)/zlib -L$(TOP)/openssl -L$(TOP)/libcurl/lib/.libs -L$(TOP)/libevent/.libs" \
2049 $(CONFIGURE
) --target
=mipsel-linux
--host
=mipsel-linux
--build
=x86_64-linux-gnu
--prefix=/usr
--disable-nls \
2050 --enable-lightweight
--enable-largefile
--enable-utp
--without-gtk \
2051 LIBCURL_CFLAGS
="-I$(TOP)/libcurl/include" \
2052 LIBCURL_LDFLAGS
="-L$(TOP)/libcurl/lib/.libs/" \
2053 LIBCURL_LIBS
="-lcurl" \
2054 LIBEVENT_CFLAGS
="-I$(TOP)/libevent/include" \
2055 LIBEVENT_LDFLAGS
="-L$(TOP)/libevent/.libs" \
2056 LIBEVENT_LIBS
="-levent" \
2057 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2058 OPENSSL_LDFLAGS
="-L$(TOP)/openssl" \
2059 OPENSSL_LIBS
="-lcrypto -lssl" \
2060 ZLIB_CFLAGS
="-I$(TOP)/zlib" \
2061 ZLIB_LDFLAGS
="-L$(TOP)/zlib" \
2063 touch transmission
/stamp-h1
2065 transmission
: transmission
/stamp-h1
2067 $(MAKE
) -C transmission
$(PARALLEL_BUILD
)
2070 -@
$(MAKE
) -C transmission
clean
2071 @
rm -f transmission
/stamp-h1 transmission
/Makefile
2073 transmission-install
: transmission
2074 $(MAKE
) -C transmission DESTDIR
=$(INSTALLDIR
)/transmission install-strip
2075 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/share
/man
2076 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-cli
2077 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-show
2078 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-edit
2079 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-create
2080 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-daemon
2081 ifeq ($(TCONFIG_TR_EXTRAS
),y
)
2082 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2084 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2090 btgui-install
: btgui
2091 install -d
$(INSTALLDIR
)/btgui
/usr
/bin
2092 install -D transmission
/btcheck
$(INSTALLDIR
)/btgui
/usr
/bin
/btcheck
2094 libnfsidmap
/stamp-h1
:
2096 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2097 ac_cv_func_malloc_0_nonnull
=yes \
2098 ac_cv_func_realloc_0_nonnull
=yes \
2099 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
2100 touch libnfsidmap
/stamp-h1
2102 libnfsidmap
: libnfsidmap
/stamp-h1
2104 $(MAKE
) -C libnfsidmap
$(PARALLEL_BUILD
)
2107 -@
$(MAKE
) -C libnfsidmap
clean
2108 @
rm -f libnfsidmap
/stamp-h1
2109 @
rm -rf libnfsidmap
/staged
2111 libnfsidmap-install
: libnfsidmap
2112 install -d
$(TOP
)/libnfsidmap
/staged
2113 $(MAKE
) -C libnfsidmap DESTDIR
=$(TOP
)/libnfsidmap
/staged
install
2117 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2118 $(MAKE
) -C portmap CC
=$(CC
) AR
=$(AR
) LD
=$(LD
) RANLIB
=$(RANLIB
) RPCUSER
="nobody"
2119 touch portmap
/stamp-h1
2121 portmap
: portmap
/stamp-h1
2123 $(MAKE
) -C portmap
$(PARALLEL_BUILD
)
2126 -@
$(MAKE
) -C portmap
clean
2127 @
rm -f portmap
/stamp-h1
2129 portmap-install
: portmap
2130 install -d
$(INSTALLDIR
)/portmap
/usr
/sbin
2131 install -D portmap
/portmap
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2132 $(STRIP
) -s
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2136 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2137 $(CONFIGURE
) --prefix=$(TOP
)/e2fsprogs
/staged
--enable-shared
--enable-static
2138 touch e2fsprogs
/stamp-h1
2140 e2fsprogs
: e2fsprogs
/stamp-h1
2142 $(MAKE
) -C e2fsprogs
$(PARALLEL_BUILD
)
2145 -@
$(MAKE
) -C e2fsprogs
clean
2146 @
rm -f e2fsprogs
/stamp-h1
2147 @
rm -f e2fsprogs
/Makefile
2148 @
rm -rf e2fsprogs
/staged
2150 nfs-utils
/stamp-h1
: libevent-install e2fsprogs portmap libnfsidmap-install
2151 cd nfs-utils
&& STRIP
='mipsel-uclibc-strip' \
2152 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2153 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
2154 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
2155 LDFLAGS
="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
2156 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2157 ac_cv_func_malloc_0_nonnull
=yes \
2158 ac_cv_func_realloc_0_nonnull
=yes \
2159 $(CONFIGURE
) --disable-gss
--without-tcp-wrappers
--enable-static
--enable-shared \
2160 --enable-nfsv4
--enable-nfsv3
2161 touch nfs-utils
/stamp-h1
2163 nfs-utils
: nfs-utils
/stamp-h1
2165 $(MAKE
) -C nfs-utils
$(PARALLEL_BUILD
)
2168 -@
$(MAKE
) -C nfs-utils
clean
2169 @
rm -f nfs-utils
/stamp-h1
2171 nfs-utils-install
: nfs-utils
2172 install -d
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
2173 install -D nfs-utils
/utils
/mount
/mount.nfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2174 install -D nfs-utils
/utils
/nfsd
/nfsd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2175 install -D nfs-utils
/utils
/showmount
/showmount
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2176 install -D nfs-utils
/utils
/exportfs
/exportfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2177 install -D nfs-utils
/utils
/statd
/statd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2178 install -D nfs-utils
/utils
/mountd
/mountd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2179 install -D nfs-utils
/nfs.rc
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfs.rc
2180 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2181 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2182 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2183 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2184 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2185 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2187 tinc
/stamp-h1
: openssl zlib lzo
2188 @cd tinc
&& autoreconf
-fsi
&& \
2189 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
2190 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
2191 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2195 --localstatedir
=/var \
2196 --with-zlib-include
="$(TOP)/zlib" \
2197 --with-zlib-lib
="$(TOP)/zlib" \
2198 --with-lzo-include
="$(TOP)/lzo/include" \
2199 --with-lzo-lib
="$(TOP)/lzo/src/.libs" \
2200 --with-openssl-include
="$(TOP)/openssl/include" \
2201 --with-openssl-lib
="$(TOP)/openssl" \
2204 @touch tinc
/stamp-h1
2208 @
$(MAKE
) -C tinc LIBS
="-lcrypto $(TOP)/zlib/libz.a -llzo2" $(PARALLEL_BUILD
)
2211 -@
$(MAKE
) -C tinc
clean
2212 @
rm -f tinc
/stamp-h1
2215 install -D tinc
/src
/tinc
$(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2216 install -D tinc
/src
/tincd
$(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2217 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2218 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2222 CFLAGS
="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
2224 chmod
0755 sd-idle
/sd-idle
2225 touch sd-idle
/stamp-h1
2228 -@
$(MAKE
) -C sd-idle
clean
2229 @
rm -f sd-idle
/stamp-h1
2231 sd-idle-install
: sd-idle
/stamp-h1
2232 install -d
$(INSTALLDIR
)/sd-idle
/usr
/bin
2233 install -D sd-idle
/sd-idle
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2234 $(STRIP
) -s
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2238 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2239 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
2240 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
2241 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
2242 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
2243 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
2244 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
2245 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
2246 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
2254 -@
$(MAKE
) -C snmp
clean
2255 @
rm -f snmp
/stamp-h1
2258 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2259 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2262 cd apcupsd
&& touch autoconf
/variables.mak
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2263 $(MAKE
) configure
&& \
2264 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2265 LDFLAGS
="-L$(TOOLCHAIN)/lib -ffunction-sections -fdata-sections" \
2266 $(CONFIGURE
) --prefix=/usr
--without-x
--enable-usb
--disable-pcnet
--enable-cgi \
2267 --disable-lgd
--enable-net
--sysconfdir
=/usr
/local
/apcupsd
--bindir=/bin \
2268 --disable-dumb
--disable-snmp
--disable-net-snmp
--with-cgi-bin
=/www
/apcupsd
--with-serial-dev
=
2269 touch apcupsd
/stamp-h1
2271 apcupsd
: apcupsd
/stamp-h1
2272 $(MAKE
) -C apcupsd
$(PARALLEL_BUILD
)
2275 -@
$(MAKE
) -C apcupsd
clean
2276 @
rm -f apcupsd
/stamp-h1
2277 @
rm -f apcupsd
/config
*
2279 apcupsd-install
: apcupsd
2280 $(MAKE
) -C apcupsd DESTDIR
=$(INSTALLDIR
)/apcupsd
install
2281 @
rm -rf
$(INSTALLDIR
)/apcupsd
/sbin
/apctest
2282 @
rm -rf
$(INSTALLDIR
)/apcupsd
/www
/apcupsd
/ups
*.cgi
2283 $(STRIP
) $(INSTALLDIR
)/apcupsd
/sbin
/*
2284 $(STRIP
) $(INSTALLDIR
)/apcupsd
/www
/apcupsd
/*
2287 cd
$(TOP
)/libsodium
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2288 $(CONFIGURE
) --prefix=/usr
--disable-ssp
--enable-minimal
2289 touch libsodium
/stamp-h1
2291 libsodium
: libsodium
/stamp-h1
2292 $(MAKE
) -C libsodium
$(PARALLEL_BUILD
)
2294 libsodium-install
: libsodium
2295 install -d
$(INSTALLDIR
)/libsodium
/usr
/lib
2296 install -D libsodium
/src
/libsodium
/.libs
/libsodium.so
.13.0.0 $(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.0
2297 $(STRIP
) -s
$(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.0
2298 cd
$(INSTALLDIR
)/libsodium
/usr
/lib
/ && \
2299 ln
-sf libsodium.so
.13.0.0 libsodium.so
.13 && \
2300 ln
-sf libsodium.so
.13.0.0 libsodium.so
2303 -$(MAKE
) -C libsodium
clean
2304 @
rm -rf libsodium
/stamp-h1
2306 dnscrypt
/stamp-h1
: libsodium
2307 cd
$(TOP
)/dnscrypt
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2308 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2309 CPPFLAGS
="-I$(TOP)/libsodium/src/libsodium/include" \
2310 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libsodium/src/libsodium/.libs" \
2311 $(CONFIGURE
) --prefix=/usr
--disable-ssp
2312 touch dnscrypt
/stamp-h1
2314 dnscrypt
: dnscrypt
/stamp-h1
2315 $(MAKE
) -C dnscrypt
$(PARALLEL_BUILD
)
2317 dnscrypt-install
: dnscrypt
2318 install -D dnscrypt
/src
/proxy
/.libs
/dnscrypt-proxy
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2319 install -D dnscrypt
/src
/hostip
/.libs
/hostip
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2320 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2321 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2324 -@
$(MAKE
) -C dnscrypt
clean
2325 @
rm -rf dnscrypt
/stamp-h1 dnscrypt
/src
/dnscrypt-proxy
/.deps dnscrypt
/Makefile
2327 tor
/stamp-h1
: openssl zlib libevent
2328 cd
$(TOP
)/tor
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
2329 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2330 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
2331 $(CONFIGURE
) --prefix=/usr
--with-libevent-dir
=$(TOP
)/libevent
/staged
/usr
/local \
2332 --with-openssl-dir
=$(TOP
)/openssl
--with-zlib-dir
=$(TOP
)/zlib \
2333 --disable-asciidoc
--disable-threads
2337 $(MAKE
) -C tor
$(PARALLEL_BUILD
)
2340 install -D tor
/src
/or
/tor
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2341 $(STRIP
) -s
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2344 -@
$(MAKE
) -C tor
clean
2345 @
rm -rf tor
/stamp-h1 tor
/Makefile
2349 $(MAKE
) -C udpxy CFLAGS
="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
2350 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections"
2351 touch udpxy
/stamp-h1
2354 -@
$(MAKE
) -C udpxy
clean
2355 @
rm -f udpxy
/stamp-h1
2357 udpxy-install
: udpxy
/stamp-h1
2358 install -d
$(INSTALLDIR
)/udpxy
/usr
/bin
2359 install -D udpxy
/udpxy
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2360 $(STRIP
) -s
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2363 $(MAKE
) -C mdadm
$(PARALLEL_BUILD
)
2365 mdadm-install
: mdadm
2366 install -D mdadm
/mdadm
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2367 $(STRIP
) -s
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2370 -@
$(MAKE
) -C mdadm
clean
2373 $(MAKE
) -C ipset binaries
2375 ipset-install
: ipset
2376 install -D ipset
/ipset
$(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2377 install -d
$(INSTALLDIR
)/ipset
/usr
/lib
/
2378 install ipset
/*.so
$(INSTALLDIR
)/ipset
/usr
/lib
/
2379 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/lib
/*.so
2380 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2383 -@
$(MAKE
) -C ipset
clean
2386 @
$(MAKE
) -C comgt CC
=$(CC
) CFLAGS
="$(EXTRACFLAGS)" LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" comgt
2388 comgt-install
: comgt
2389 install -D comgt
/comgt
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2390 cd
$(INSTALLDIR
)/comgt
/usr
/sbin
/ && \
2392 $(STRIP
) -s
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2393 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/gcom
2394 @cp
-f comgt
/gcom
/* $(TARGETDIR
)/rom
/etc
/gcom
/
2397 -@
$(MAKE
) -C comgt
clean
2404 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
2408 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
2411 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
2414 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
2419 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
2421 .PHONY
: all clean distclean mrproper
install package
2422 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
2423 .PHONY
: dummy libnet libpcap