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`
24 SEP
=echo
"\033[41;1m $@ \033[0m"
26 export CFLAGS
+= -DBCMWPA2
27 ifeq ($(TCONFIG_BCMWL6
),y
)
28 export CFLAGS
+= -DBCMQOS
29 export CFLAGS
+= -DBCM_DCS
30 export CFLAGS
+= -DEXT_ACS
31 export CFLAGS
+= -DD11AC_IOTYPES
32 export CFLAGS
+= -DNAS_GTK_PER_STA
33 export CFLAGS
+= -DPHYMON
34 export CFLAGS
+= -DPROXYARP
35 export CFLAGS
+= -DTRAFFIC_MGMT
36 export CFLAGS
+= -DTRAFFIC_MGMT_RSSI_POLICY
38 export CFLAGS
+= $(EXTRACFLAGS
)
43 ifeq ($(TCONFIG_BCMARM
),y
)
49 obj-y
+= nvram
$(BCMEX
)
50 obj-y
+= eapd
$(BCMEX
)/linux
52 obj-y
+= wlconf
$(BCMEX
)
57 ifeq ($(TCONFIG_BCMARM
),y
)
58 obj-y
+= iptables-1.4.x
73 # obj-y += vlan # use Busybox vconfig
81 obj-
$(TCONFIG_TOR
) += tor
82 obj-
$(TCONFIG_TOR
) += libevent
83 obj-
$(TCONFIG_TOR
) += zlib
84 obj-
$(TCONFIG_DNSCRYPT
) += libsodium
85 obj-
$(TCONFIG_DNSCRYPT
) += dnscrypt
86 obj-
$(TCONFIG_SNMP
) += snmp
87 obj-
$(TCONFIG_SDHC
) += mmc
92 obj-
$(TCONFIG_RAID
) += mdadm
94 obj-
$(TCONFIG_NFS
) += portmap
95 obj-
$(TCONFIG_NFS
) += e2fsprogs
96 obj-
$(TCONFIG_NFS
) += libevent
97 obj-
$(TCONFIG_NFS
) += libnfsidmap
98 obj-
$(TCONFIG_NFS
) += nfs-utils
101 obj-
$(TCONFIG_NOCAT
) += nocat
104 obj-
$(TCONFIG_USB
) += p910nd
105 obj-
$(TCONFIG_USB
) += comgt
107 obj-
$(TCONFIG_UPS
) += apcupsd
109 ifeq ($(CONFIG_LINUX26
),y
)
110 obj-
$(TCONFIG_USB
) += sd-idle
112 obj-
$(TCONFIG_USB
) += scsi-idle
117 obj-y
+= usbmodeswitch
118 obj-
$(TCONFIG_FTP
) += vsftpd
120 ifeq ($(CONFIG_LINUX26
),y
)
121 ifeq ($(TCONFIG_SAMBASRV
),y
)
124 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
127 ifeq ($(TCONFIG_MICROSD
),y
)
132 ifeq ($(TCONFIG_SAMBASRV
),y
)
133 ifeq ($(TCONFIG_SAMBA3
),y
)
140 ifeq ($(TCONFIG_IPV6
),y
)
141 export TCONFIG_IPV6
:= y
146 ifeq ($(TCONFIG_IPSEC
),y
)
147 export TCONFIG_IPSEC
:= y
152 ifeq ($(TCONFIG_RAID
),y
)
153 export TCONFIG_RAID
:= y
158 obj-
$(NEED_SAMBA2
) += samba
159 #ifeq ($(TCONFIG_BCMARM),y)
160 #obj-$(NEED_SAMBA3) += samba-3.5.8
163 obj-
$(NEED_SAMBA3
) += samba3
166 ifeq ($(CONFIG_BCMWL6
),y
)
167 ifeq ($(TCONFIG_UFSDA
),y
)
168 obj-
$(TCONFIG_NTFS
) += ufsd-asus
170 ifeq ($(TCONFIG_UFSDN
),y
)
171 obj-
$(TCONFIG_NTFS
) += ufsd-netgear
173 obj-
$(TCONFIG_NTFS
) += ntfs-3g
177 obj-
$(TCONFIG_NTFS
) += ntfs-3g
180 obj-
$(TCONFIG_EBTABLES
) += ebtables
181 #obj-$(TCONFIG_IPV6) += libdaemon
182 #obj-$(TCONFIG_IPV6) += radvd
183 obj-
$(TCONFIG_IPV6
) += dhcpv6
185 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
186 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
187 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
188 obj-
$(TCONFIG_MEDIA_SERVER
) += libiconv
189 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
190 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
191 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
192 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
193 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
194 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
195 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
196 MEDIA_SERVER_STATIC
=y
197 #MEDIA_SERVER_STATIC :=
199 obj-y
+= libnfnetlink
202 obj-
$(CONFIG_LINUX26
) += ipset
206 # configurable packages
208 obj-
$(TCONFIG_L2TP
) += xl2tpd
209 obj-
$(TCONFIG_PPTP
) += accel-pptp
210 obj-
$(TCONFIG_PPTPD
) += pptpd
211 obj-
$(TCONFIG_HTTPS
) += openssl
212 obj-
$(TCONFIG_SSH
) += dropbear
213 #obj-$(TCONFIG_ZEBRA) += zebra
214 # obj-$(TCONFIG_IPP2P) += ipp2p
215 obj-
$(TCONFIG_LZO
) += lzo
216 obj-
$(TCONFIG_OPENVPN
) += openvpn
217 obj-
$(TCONFIG_OPENVPN
) += openvpn_plugin_auth_nvram
218 obj-
$(TCONFIG_EMF
) += emf
219 obj-
$(TCONFIG_EMF
) += igs
222 # additional modules for nginx
223 ifeq (obj-
$(TCONFIG_NGINX
),y
)
224 ifndef ($(ADDITIONAL_MODULES
))
227 ifeq ($(TCONFIG_IPV6
),y
)
228 ADDITIONAL_MODULES
+= --with-ipv6
232 obj-
$(TCONFIG_NGINX
) += openssl
233 obj-
$(TCONFIG_NGINX
) += spawn-fcgi
234 obj-
$(TCONFIG_NGINX
) += pcre
235 obj-
$(TCONFIG_NGINX
) += sqlite
236 obj-
$(TCONFIG_NGINX
) += libiconv
237 obj-
$(TCONFIG_NGINX
) += libxml2
238 obj-
$(TCONFIG_NGINX
) += libpng
239 obj-
$(TCONFIG_NGINX
) += php
240 obj-
$(TCONFIG_NGINX
) += nginx
242 obj-
$(TCONFIG_BBT
) += openssl
243 obj-
$(TCONFIG_BBT
) += libevent
244 obj-
$(TCONFIG_BBT
) += libcurl
245 obj-
$(TCONFIG_BBT
) += transmission
246 obj-
$(TCONFIG_BT
) += btgui
247 obj-
$(TCONFIG_BBT
) += zlib
248 #obj-$(TCONFIG_BBT) += libiconv
250 obj-
$(CONFIG_LINUX26
) += hotplug2
251 obj-
$(CONFIG_LINUX26
) += udevtrigger
253 ifeq ($(TCONFIG_OPENVPN
),y
)
254 export FULL_OPENSSL
:= y
256 ifeq ($(TCONFIG_FTP_SSL
),y
)
257 export FULL_OPENSSL
:= y
259 ifeq ($(TCONFIG_BBT
),y
)
260 export FULL_OPENSSL
:= y
262 ifeq ($(TCONFIG_TOR
),y
)
263 export FULL_OPENSSL
:= y
265 ifeq ($(TCONFIG_TOR
),y
)
266 export FULL_OPENSSL
:= y
277 ifeq ($(TCONFIG_IPV6
),y
)
278 export TCONFIG_IPV6
:= y
279 IPTABLES_IPV6_OPT
:= --enable-ipv6
282 IPTABLES_IPV6_OPT
:= --disable-ipv6
286 # Specify iptables path and target for miniupnpd
287 ifeq ($(TCONFIG_BCMARM
),y
)
288 IPTABLESPATH
=$(TOP
)/iptables-1.4.x
289 IPTABLES_TARGET
= iptables-1.4.x
290 IPROUTE_TARGET
= iproute2-3.x
292 IPTABLESPATH
=$(TOP
)/iptables
293 IPTABLES_TARGET
= iptables
294 IPROUTE_TARGET
= iproute2
297 export IPTABLES_TARGET
298 export IPROUTE_TARGET
300 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
301 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
303 ifeq ($(TCONFIG_BCMARM
),y
)
306 export PLATFORM LIBDIR USRLIBDIR LINUX_VERSION
308 WLAN_ComponentsInUse
:= bcmwifi clm ppr olpc
309 include ..
/..
/src-rt-6.x
.4708/makefiles
/WLAN_Common.mk
310 export BASEDIR
:= $(WLAN_TreeBaseA
)
311 export EXTRALDFLAGS
= -lgcc_s
312 export EXTRALDFLAGS2
= -L
$(TOP
)/nvram
$(BCMEX
) -lnvram
-L
$(TOP
)/shared
-lshared
314 export LD_LIBRARY_PATH
:= $(SRCBASE
)/toolchains
/hndtools-arm-linux-2.6
.36-uclibc-4.5
.3/lib
315 ifeq (2_6_36
,$(LINUX_VERSION
))
316 export LINUXDIR
:= $(BASEDIR
)/src-rt-6.x
.4708/linux
/linux-2.6
.36
317 export KBUILD_VERBOSE
:= 1
318 export BUILD_MFG
:= 0
320 SUBMAKE_SETTINGS
= SRCBASE
=$(SRCBASE
) BASEDIR
=$(BASEDIR
)
321 SUBMAKE_SETTINGS
+= ARCH
=$(ARCH
)
323 export OPTCFLAGS
= -O2
324 WLCFGDIR
=$(SRCBASE
)/wl
/config
326 export CFLAGS
+= -D__CONFIG_EMF__
328 ROOT_IMG
:= target.squashfs
334 ifeq ($(TCONFIG_BCMARM
),y
)
335 obj-prelibs
=$(filter nvram
$(BCMEX
) libbcmcrypto shared netconf libupnp libz libbcm
, $(obj-y
))
336 obj-postlibs
:= $(filter-out $(obj-prelibs
), $(obj-y
))
339 ifeq ($(TCONFIG_BCMWL6
), y
)
340 include ..
/..
/$(SRCBASE
)/makefiles
/WLAN_Common.mk
347 all: clean-build libc
$(obj-y
) kernel
350 kernel
: $(LINUXDIR
)/.config
353 ifneq ($(TCONFIG_BCMARM
),y
)
354 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
355 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
357 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
358 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
360 ifeq ($(CONFIG_LINUX26
),y
)
361 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
) $(PARALLEL_BUILD
)
363 else # TCONFIG_BCMARM
364 $(MAKE
) compressed-clean
#shibby
365 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |\
366 $(MAKE
) -C
${LINUXDIR} -f
- $(SUBMAKE_SETTINGS
) zImage
367 +$(MAKE
) CONFIG_SQUASHFS
=$(CONFIG_SQUASHFS
) -C
$(SRCBASE
)/router
/compressed ARCH
=$(ARCH
)
369 $(if
$(shell grep
"CONFIG_MODULES=y" ${LINUXDIR}/.config
), \
370 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |
$(MAKE
) -C
${LINUXDIR} -f
- $(SUBMAKE_SETTINGS
) MFG_WAR
=1 zImage
; \
371 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |
$(MAKE
) -C
${LINUXDIR} -f
- ARCH
=$(ARCH
) modules
)
372 # Preserve the debug versions of these and strip for release
373 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/vmlinux
)
374 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/wl
/wl.ko
)
375 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/et
/et.ko
)
376 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/ctf
/ctf.ko
)
377 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/bcm57xx
/bcm57xx.ko
)
378 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/emf
/emf.ko
)
379 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/igs
/igs.ko
)
380 endif # TCONFIG_BCMARM
382 ifneq ($(TCONFIG_BCMARM
),y
)
384 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
) $(PARALLEL_BUILD
)
386 lzma-loader-install
: lzma-loader
391 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
)
394 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
395 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
397 install package
: $(obj-install
) $(LINUXDIR
)/.config
400 install -d
$(TARGETDIR
)
404 $(MAKE
) -C
$(LINUXDIR
) modules_install \
405 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" \
406 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
408 ifneq ($(CONFIG_LINUX26
),y
)
409 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
410 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
411 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
412 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
413 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
414 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
415 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
417 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
420 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
423 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
424 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
425 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
426 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
427 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
428 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
429 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
430 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
431 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
432 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
435 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
436 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
437 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
438 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
439 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
440 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
441 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
442 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
443 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
444 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
445 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
446 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfs
/* .
&& rm -rf hfs || true
447 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
448 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
449 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
450 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
451 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
452 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
453 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
454 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
455 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
456 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
457 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
458 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
459 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
460 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
461 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
462 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
463 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
464 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
465 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
466 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
467 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
468 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv core
/* .
&& rm -rf core || true
469 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv card
/* .
&& rm -rf card || true
470 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv host
/* .
&& rm -rf host || true
471 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
472 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
473 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
474 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
475 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
476 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
477 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
478 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
479 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
480 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
481 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
482 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
484 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
485 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
486 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
487 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
488 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv usb
/* .
&& rm -rf usb || true
489 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
492 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
493 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
496 ifneq ($(TCONFIG_L7
),y
)
497 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
501 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
502 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
503 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
504 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
505 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
506 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
507 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
508 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
509 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
510 ifeq ($(TCONFIG_SSH
),y
)
511 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
513 ifeq ($(TCONFIG_BBT
),y
)
514 install $(LIBDIR
)/librt.so
.0 $(TARGETDIR
)/lib
/librt.so
.0
516 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
517 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
518 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
521 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
525 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
526 ifneq ($(TCONFIG_BCMARM
),y
)
527 @
$(SRCBASE
)/btools
/libfoo.pl
530 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
532 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
533 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
535 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
536 # separated/copied extra stuff
537 @
rm -rf
$(PLATFORMDIR
)/extras
538 @mkdir
$(PLATFORMDIR
)/extras
539 @mkdir
$(PLATFORMDIR
)/extras
/ipsec
540 @mkdir
$(PLATFORMDIR
)/extras
/raid
541 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
542 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/usr/lib/iptables/libipt_policy.*o $(PLATFORMDIR)/extras/ipsec/ || true
544 $(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
545 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
547 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/mdadm
$(PLATFORMDIR
)/extras
/raid
/ || true
548 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md
/*.ko
$(PLATFORMDIR
)/extras
/raid
/ || true
549 $(if
$(TCONFIG_RAID
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md || true
551 @cp
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ip_set
*o
$(PLATFORMDIR
)/extras
/ || true
552 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
553 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
554 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
555 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
556 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
557 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
558 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
559 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
560 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
561 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
562 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
563 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
564 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
565 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
566 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
567 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
569 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
570 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
571 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
572 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
573 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-acm.
*o
$(PLATFORMDIR
)/extras
/ || true
574 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
575 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
576 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
577 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
578 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
579 $(if
$(NEED_SD_MODULES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
580 $(if
$(NEED_SD_MODULES
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc || true
582 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ch341.
*o
$(PLATFORMDIR
)/extras
/ || true
583 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
584 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
585 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
586 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
587 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
588 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
589 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
590 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
591 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
592 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-wdm.
*o
$(PLATFORMDIR
)/extras
/ || true
593 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
594 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
595 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/qmi_wwan.
*o
$(PLATFORMDIR
)/extras
/ || true
596 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ipheth.
*o
$(PLATFORMDIR
)/extras
/ || true
597 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
598 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
599 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
600 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
601 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
602 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
603 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
604 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
605 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
606 $(if
$(TCONFIG_UPS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
607 $(if
$(TCONFIG_UPS
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
608 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
609 $(if
$(TCONFIG_CTF
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
610 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
611 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
612 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
613 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
614 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
615 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
616 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm || true
617 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
618 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key || true
619 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/xfrm
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
620 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv*/tunnel*.ko $(PLATFORMDIR)/extras/ipsec/ || true
621 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ah
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
622 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/esp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
623 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ipcomp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
624 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_policy.ko $(PLATFORMDIR)/extras/ipsec/ || true
626 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
627 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
628 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
629 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
630 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
631 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
632 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
634 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
635 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
636 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
637 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
638 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
639 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
640 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
641 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
642 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
643 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
644 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
645 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
646 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfs.
*o
$(PLATFORMDIR
)/extras
/ || true
647 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
649 ifneq ($(TCONFIG_USB
),y
)
650 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
651 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
652 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
655 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
656 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
657 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
658 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
659 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
661 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
662 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
663 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
664 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
665 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
666 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
667 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
669 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
670 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
672 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
673 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
674 @cp
-r
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
676 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
677 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
678 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
679 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
680 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
681 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
682 ifneq ($(NEED_EX_USB
),y
)
683 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
684 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
686 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
688 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
689 ifeq ($(TCONFIG_L7PAT
),y
)
690 @cd layer7
&& .
/squish.sh
691 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
694 ifeq ($(TCONFIG_PPTPD
),y
)
695 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/vpn
696 cp rc
/vpn
/* $(TARGETDIR
)/rom
/etc
/vpn
697 chmod
+x
$(TARGETDIR
)/rom
/etc
/vpn
/*
700 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
701 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
704 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
707 ifneq ($(TCONFIG_BCMARM
),y
)
708 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
709 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-no-duplicates | tee target.
info
711 $(MAKE
) -C squashfs-4.2 mksquashfs
712 squashfs-4.2
/mksquashfs
$(TARGETDIR
) $(PLATFORMDIR
)/$(ROOT_IMG
) -noappend
-all-root
716 libc
: $(LIBDIR
)/ld-uClibc.so
.0
717 # $(MAKE) -C ../../../tools-src/uClibc all
718 # $(MAKE) -C ../../../tools-src/uClibc install
725 clean: clean-build
$(obj-clean
)
726 rm -rf layer7
/squished
727 rm -f .ipv6-y .ipv6-n
728 rm -f .fullssl-y .fullssl-n
734 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
735 rm -rf
$(PLATFORMDIR
)/extras
738 ifneq ($(INSIDE_MAK
),1)
739 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
741 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
747 CONFIG_IN
:= config
/config.in
749 config
/conf config
/mconf
:
753 @config
/conf
$(CONFIG_IN
)
756 @config
/mconf
$(CONFIG_IN
)
758 roldconf
: config
/conf
759 @config
/conf
-o
$(CONFIG_IN
)
760 @
$(MAKE
) shared-clean rc-clean nvram
$(BCMEX
)-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
763 @
$(MAKE
) -C
$(LINUXDIR
) config
766 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
769 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
770 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
773 @
$(MAKE
) -C busybox oldconfig
775 config conf
: rconf kconf
777 menuconfig mconf
: rmconf kmconf
780 @
rm -f .ipv6-y .ipv6-n
781 @
$(MAKE
) $(IPTABLES_TARGET
)-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean
$(IPROUTE_TARGET
)-clean
784 .fullssl-y .fullssl-n
:
785 @
rm -f .fullssl-y .fullssl-n
786 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
789 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
791 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
795 # overrides and extra dependencies
799 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" $(PARALLEL_BUILD
)
802 rm -rf
$(INSTALLDIR
)/busybox
803 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
806 -@
$(MAKE
) -C busybox
distclean
809 $(MAKE
) -C busybox menuconfig
812 httpd
: shared nvram
$(BCMEX
) mssl
817 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
821 @
$(MAKE
) -C matrixssl
/src
827 -@
$(MAKE
) -C matrixssl
/src
clean
830 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
831 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
832 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
833 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
834 PTHREAD_LIBS
="-lpthread" \
836 @touch cyassl
/stamp-h1
838 cyassl
: cyassl
/stamp-h1
843 -@
$(MAKE
) -C cyassl
clean
844 @
rm -f cyassl
/stamp-h1
849 ifeq ($(FULL_OPENSSL
),y
)
850 OPENSSL_CIPHERS
:=enable-rc5
852 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
857 .
/Configure
$(HOSTCONFIG
) --openssldir
=/etc
--cross-compile-prefix
=' ' \
858 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
859 shared
$(OPENSSL_CIPHERS
) \
860 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
861 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
862 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
863 no-zlib no-engines no-sse2 \
864 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
866 @
$(MAKE
) -C openssl
clean
867 @touch openssl
/stamp-h1
869 openssl
: openssl
/stamp-h1
872 -@
$(MAKE
) -C openssl
clean
873 @
rm -f openssl
/stamp-h1
875 openssl-install
: openssl
876 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
877 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
878 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
880 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
881 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
882 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
884 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
886 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
887 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
889 #ifeq ($(FULL_OPENSSL),y)
890 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
891 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
892 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
899 rc
: nvram
$(BCMEX
) shared
903 -@cd eapd
$(BCMEX
)/linux
&& make
clean
907 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
908 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
910 bridge
: bridge
/Makefile
915 -@
$(MAKE
) -C bridge
clean
916 @
rm -f bridge
/Makefile
919 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
920 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
922 dnsmasq
: $(if
$(TCONFIG_DNSSEC
),nettle
,)
924 @
$(MAKE
) -C dnsmasq
$(PARALLEL_BUILD
) \
925 COPTS
="$(if $(TCONFIG_DNSSEC),-I$(TOP)/nettle/include -I$(TOP)/gmp -DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC,) \
926 $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) \
927 $(if $(CONFIG_LINUX26),-DUSE_IPSET,-DNO_IPSET) \
928 -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
929 LDFLAGS
="$(if $(TCONFIG_DNSSEC),-L$(TOP)/nettle/lib -L$(TOP)/gmp/.libs,) -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
930 $(if
$(TCONFIG_DNSSEC
),PKG_CONFIG_PATH
="$(TOP)/nettle/lib/pkgconfig",)
933 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
934 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
937 @cd nettle
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
938 CPPFLAGS
="-I$(TOP)/gmp" \
939 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
940 LDFLAGS
="-L$(TOP)/gmp/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
941 $(CONFIGURE
) prefix=$(TOP
)/nettle
942 @touch nettle
/stamp-h1
944 nettle
: nettle
/stamp-h1
947 @
$(MAKE
) -C nettle
install
950 -@
$(MAKE
) -C nettle
clean
951 @
rm -f nettle
/stamp-h1
952 @
rm -rf nettle
/include nettle
/lib nettle
/bin nettle
/share
955 @cd gmp
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
956 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
957 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
966 @
$(MAKE
) -C gmp
clean
970 ifeq ($(CONFIG_LINUX26
),y
)
971 cp
-f iptables
/extensions
/libipt_ipp2p_K26.c iptables
/extensions
/libipt_ipp2p.c
973 cp
-f iptables
/extensions
/libipt_ipp2p_K24.c iptables
/extensions
/libipt_ipp2p.c
976 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
979 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
980 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
981 ln
-sf iptables iptables-restore
&& \
982 ln
-sf iptables iptables-save
984 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
985 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
987 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
989 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
990 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
991 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
993 ifeq ($(TCONFIG_IPV6
),y
)
994 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
995 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
996 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
997 ln
-sf ip6tables ip6tables-restore
&& \
998 ln
-sf ip6tables ip6tables-save
1002 -@
$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
1004 iptables-1.4.x
: iptables-1.4.x
/Makefile libnfnetlink
1006 $(MAKE
) -C
$@ KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE" \
1007 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/libnfnetlink/include" \
1008 LDFLAGS
="-L$(TOP)/libnfnetlink/src/.libs -lnfnetlink"
1010 iptables-1.4.x
/Makefile
: iptables-1.4.x
/configure
1011 $(MAKE
) iptables-1.4.x-configure
1013 iptables-1.4.x
/configure
:
1014 ( cd iptables-1.4.x
; .
/autogen.sh
)
1016 iptables-1.4.x-configure
:
1017 ( cd iptables-1.4.x
; \
1020 --bindir=/usr
/sbin \
1022 $(IPTABLES_IPV6_OPT
) \
1023 --with-kernel
=$(LINUXDIR
) \
1026 iptables-1.4.x-install
:
1027 install -D iptables-1.4.x
/iptables
/.libs
/xtables-multi
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
/xtables-multi
1028 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
&& \
1029 ln
-sf xtables-multi iptables-restore
&& \
1030 ln
-sf xtables-multi iptables
1031 install -d
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
1032 install -D iptables-1.4.x
/libiptc
/.libs
/lib
*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/
1033 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
&& \
1034 ln
-sf libip4tc.so libip4tc.so
.0 && \
1035 ln
-sf libip4tc.so libip4tc.so
.0.0.0 && \
1036 ln
-sf libip6tc.so libip6tc.so
.0 && \
1037 ln
-sf libip6tc.so libip6tc.so
.0.0.0 && \
1038 ln
-sf libiptc.so libiptc.so
.0 && \
1039 ln
-sf libiptc.so libiptc.so
.0.0.0
1040 install -D iptables-1.4.x
/libxtables
/.libs
/lib
*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/
1041 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
&& \
1042 ln
-sf libxtables.so libxtables.so
.7 && \
1043 ln
-sf libxtables.so libxtables.so
.7.0.0
1044 install -D iptables-1.4.x
/extensions
/*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
1046 ifeq ($(TCONFIG_IPV6
),y
)
1047 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
&& \
1048 ln
-sf xtables-multi ip6tables-restore
&& \
1049 ln
-sf xtables-multi ip6tables
1052 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
/xtables-multi
1053 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/*.so
*
1054 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
/*.so
*
1056 iptables-1.4.x-clean
:
1057 [ ! -f iptables-1.4.x
/Makefile
] ||
$(MAKE
) -C iptables-1.4.x KERNEL_DIR
=$(LINUXDIR
) distclean
1061 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,) $(PARALLEL_BUILD
)
1062 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
1065 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
1067 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
1068 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
1069 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
1070 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
1071 @touch rp-pppoe
/src
/stamp-h1
1073 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
1074 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
$(PARALLEL_BUILD
)
1077 -@
$(MAKE
) -C rp-pppoe
/src
clean
1078 @
rm -f rp-pppoe
/src
/pppoe-relay
1079 @
rm -f rp-pppoe
/src
/stamp-h1
1081 rp-pppoe-install
: rp-pppoe
1082 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
1083 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
1084 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
1085 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
1088 upnp
: nvram
$(BCMEX
) shared iptables
1091 libnfnetlink
/stamp-h1
:
1092 # tomatoraf.com, Victek
1093 # last sources is dated March 22,2014 from netfilter.org git
1094 # ./genconfig.sh and make with automake 1.13
1095 cd
$(TOP
)/libnfnetlink
&& CC
=$(CC
) STRIP
=$(STRIP
) \
1096 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1097 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1098 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
1099 touch libnfnetlink
/stamp-h1
1101 libnfnetlink
: libnfnetlink
/stamp-h1
1103 $(MAKE
) -C libnfnetlink
1105 libnfnetlink-install
:
1106 install -D libnfnetlink
/src
/.libs
/libnfnetlink.so
.0.2.0 $(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
1107 $(STRIP
) -s
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
1108 cd
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/ && \
1109 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
.0 && \
1110 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
1113 @cd miniupnpd
&& .
/genconfig.sh
--leasefile
1115 miniupnpd
: $(IPTABLES_TARGET
) miniupnpd-config
1117 $(MAKE
) -C miniupnpd
-f Makefile.linux
1120 -@
$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
1121 @
rm -f miniupnpd
/config.h
1124 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
1125 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
1130 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
1132 $(MAKE
) -C vsftpd
$(PARALLEL_BUILD
)
1134 vsftpd-install
: vsftpd
1135 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
1136 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
1138 ufsd-asus
: kernel_header kernel
1139 @
$(MAKE
) -C ufsd-asus
all
1141 ufsd-asus-install
: ufsd-asus
1142 @
$(MAKE
) -C ufsd-asus
install INSTALLDIR
=$(INSTALLDIR
)/ufsd-asus
1144 ufsd-netgear-install
:
1145 @
$(MAKE
) -C ufsd-netgear
install INSTALLDIR
=$(INSTALLDIR
)/ufsd-netgear
1149 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1150 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1151 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
1152 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
1153 --disable-ntfsprogs
--disable-crypto
--without-uuid \
1154 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
1156 ntfs-3g
: ntfs-3g
/Makefile
1157 @
$(MAKE
) -C ntfs-3g
$(PARALLEL_BUILD
)
1160 -@
$(MAKE
) -C ntfs-3g
clean
1161 @
rm -f ntfs-3g
/Makefile
1163 ntfs-3g-install
: ntfs-3g
1164 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1165 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1166 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
1167 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
1168 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
1170 libusb10
/Makefile
: libusb10
/Makefile.in
1171 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
1172 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
1174 libusb10
: libusb10
/Makefile
1177 libusb10-install
: libusb10
1178 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
1179 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
1182 -@
$(MAKE
) -C
$@
clean
1183 @
rm -rf libusb10
/Makefile
1185 libusb
/Makefile
: libusb
/Makefile.in
1186 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
1187 $(CONFIGURE
) --prefix=/usr \
1188 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
1189 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
1190 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
1192 libusb
: libusb10 libusb
/Makefile
1195 libusb-install
: libusb
1196 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
1197 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
1200 -@
$(MAKE
) -C
$@
clean
1201 @
rm -rf libusb
/Makefile
1203 usbmodeswitch
: libusb10
1204 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
1205 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
1206 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
1208 usbmodeswitchdb-install
:
1209 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
1210 # compress whitespace
1211 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
1213 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
1216 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
1217 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1218 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1219 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1220 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
1224 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections -DUSE_DHCP6SRV" \
1225 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1226 ac_cv_func_setpgrp_void
=yes \
1227 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
1228 -@
$(MAKE
) -C dhcpv6
clean
1231 dhcpv6
: dhcpv6
/stamp-h1
1233 @
$(MAKE
) -C dhcpv6 dhcp6c
1235 dhcpv6-install
: dhcpv6
1236 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1237 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1240 -@
$(MAKE
) -C dhcpv6
clean
1241 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
1249 @
$(MAKE
) -C samba-3.5
.8 $(PARALLEL_BUILD
)
1253 prebuilt
: shared libbcmcrypto
1257 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
1260 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
1261 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
1264 pptp-client-install
:
1265 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1266 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1269 accel-pptp
: pppd accel-pptp
/Makefile
1270 @
$(MAKE
) -C accel-pptp
1272 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
1273 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS) $(if $(TCONFIG_VPNC), -DTCONFIG_VPNC,)" \
1274 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
1277 -@
$(MAKE
) -C accel-pptp
clean
1278 @
rm -f accel-pptp
/Makefile
1280 accel-pptp-install
: accel-pptp
1281 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1282 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1285 cd pptpd
&& $(CONFIGURE
) --prefix=$(INSTALLDIR
)/pptpd
--enable-bcrelay \
1286 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) STRIP
=$(STRIP
)
1287 touch pptpd
/stamp-h1
1289 pptpd
: pptpd
/stamp-h1
1291 pptpd-install
: pptpd
1293 @
install -D pptpd
/pptpd
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1294 @
install -D pptpd
/bcrelay
$(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1295 @
install -D pptpd
/pptpctrl
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1296 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1297 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1298 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1301 -@
$(MAKE
) -C pptpd
clean
1302 rm -rf pptpd
/stamp-h1 pptpd
/.deps
1304 pppd
/Makefile
: pppd
/linux
/Makefile.top
1305 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
1309 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
1312 -@
$(MAKE
) -C pppd
clean
1313 @
rm -f pppd
/Makefile
1316 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1317 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1318 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1319 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1320 ifeq ($(TCONFIG_L2TP
),y
)
1321 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
1322 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
1326 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1327 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1330 @cd zebra
&& rm -f config.cache
&& \
1331 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1332 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1333 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1334 $(CONFIGURE
) --sysconfdir
=/etc \
1335 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
1336 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
1337 @touch zebra
/stamp-h1
1339 zebra
: zebra
/stamp-h1
1340 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
1343 -@
$(MAKE
) -C zebra
clean
1344 @
rm -f zebra
/stamp-h1
1346 zebra-install
: zebra
1347 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1348 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1349 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1350 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1351 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1352 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1356 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1357 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1358 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
1359 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1360 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1361 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1362 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1365 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
1367 xl2tpd-install
: xl2tpd
1368 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1369 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1373 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1374 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1379 # @-mkdir -p libnet/lib
1380 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1384 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1387 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1390 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1391 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1396 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1398 iproute2-install
: iproute2
1399 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1400 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1401 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1402 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1404 iproute2-3.x
: kernel_header iptables-1.4.x
1406 @
$(MAKE
) -C
$@ IPTABLES_DIR
=$(TOP
)/iptables-1.4.x KERNEL_INCLUDE
=$(TOP
)/kernel_header
/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1408 iproute2-3.x-install
: iproute2-3.x
1409 install -D iproute2-3.x
/tc
/tc
$(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/tc
1410 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/tc
1411 install -D iproute2-3.x
/ip
/ip
$(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/ip
1412 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/ip
1413 @if
[ -e iproute2-3.x
/tc
/m_xt.so
] ; then \
1414 install -D iproute2-3.x
/tc
/m_xt.so
$(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/m_xt.so
; \
1415 ln
-sf m_xt.so
$(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/m_ipt.so
; \
1416 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/*.so
; \
1420 -@
$(MAKE
) -C iproute2-3.x
clean
1421 -rm -f iproute2-3.x
/Config
1424 ntpclient
: nvram
$(BCMEX
) shared
1426 dropbear
: dropbear
/config.h
1428 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 $(PARALLEL_BUILD
)
1431 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1432 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1433 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1434 ln
-sf dropbearmulti dropbear
&& \
1435 ln
-sf dropbearmulti dropbearconvert
&& \
1436 ln
-sf dropbearmulti dropbearkey
&& \
1437 ln
-sf dropbearmulti dbclient
&& \
1438 ln
-sf dropbearmulti ssh
&& \
1439 ln
-sf dropbearmulti scp
1442 -@
$(MAKE
) -C dropbear
clean
1443 @
rm -f dropbear
/config.h
1447 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1448 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1449 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1450 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1451 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1452 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1453 @
$(MAKE
) -C dropbear
clean
1459 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1460 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1461 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1462 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1463 touch sqlite
/stamp-h1
1465 sqlite
: sqlite
/stamp-h1
1466 @
$(MAKE
) -C sqlite
all $(PARALLEL_BUILD
)
1469 -@
$(MAKE
) -C sqlite
clean
1470 @
rm -f sqlite
/stamp-h1
1472 sqlite-install
: sqlite
1474 ifeq ($(TCONFIG_NGINX
),y
)
1475 install -D sqlite
/.libs
/libsqlite3.so
.0.8.6 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1476 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1477 cd
$(INSTALLDIR
)/sqlite
/usr
/lib
/ && \
1478 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
.0 && \
1479 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
1482 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1484 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1485 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1487 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1488 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1490 FFMPEG_PROTOCOLS
:=file
1491 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1493 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
1494 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1496 ffmpeg
/stamp-h1
: zlib
1497 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1498 .
/configure
--enable-cross-compile
--arch
=$(ARCH
) --target_os
=linux \
1499 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1500 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1501 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1502 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1503 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1504 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1505 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1506 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1507 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1508 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1509 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1510 --extra-libs
="-L$(TOP)/zlib -lz" \
1511 --enable-zlib
--disable-debug
--prefix=''
1512 touch ffmpeg
/stamp-h1
1514 ffmpeg
: ffmpeg
/stamp-h1 zlib
1515 @
$(MAKE
) -C ffmpeg
all $(PARALLEL_BUILD
)
1518 -@
$(MAKE
) -C ffmpeg
clean
1519 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1521 ffmpeg-install
: ffmpeg
1523 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1524 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1525 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1526 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1527 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1528 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1529 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1534 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1535 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1536 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1537 touch libogg
/stamp-h1
1539 libogg
: libogg
/stamp-h1
1540 @
$(MAKE
) -C libogg
all $(PARALLEL_BUILD
)
1543 -@
$(MAKE
) -C libogg
clean
1544 @
rm -f libogg
/stamp-h1
1546 libogg-install
: libogg
1548 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1549 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1550 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1553 flac
/stamp-h1
: libogg
1555 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1556 CPPFLAGS
="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1557 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1558 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1559 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1560 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1563 flac
: flac
/stamp-h1 libogg
1564 @
$(MAKE
) -C flac
/src
/libFLAC
all $(PARALLEL_BUILD
)
1567 -@
$(MAKE
) -C flac
clean
1568 @
rm -f flac
/stamp-h1
1572 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1573 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1574 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1579 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1583 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
$(PARALLEL_BUILD
)
1586 -@
$(MAKE
) -C jpeg
clean
1587 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1591 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1592 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1593 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1597 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1598 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1599 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1600 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1601 touch libexif
/stamp-h1
1603 libexif
: libexif
/stamp-h1
1604 @
$(MAKE
) -C libexif
all
1607 -@
$(MAKE
) -C libexif
clean
1608 @
rm -f libexif
/stamp-h1
1610 libexif-install
: libexif
1612 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1613 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1614 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1619 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC" LDSHAREDLIBC
="$(EXTRALDFLAGS)" \
1620 .
/configure
--shared
--prefix=/usr
--libdir=/usr
/lib
1624 @
$(MAKE
) -C zlib
all
1625 @
$(MAKE
) -C zlib DESTDIR
=$(TOP
)/zlib
/staged
install
1628 -@
$(MAKE
) -C zlib
clean
1629 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1634 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1635 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1636 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1637 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1639 ifeq ($(TCONFIG_BT
),y
)
1640 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1641 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1642 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1644 ifeq ($(TCONFIG_TOR
),y
)
1645 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1646 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1647 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1650 libid3tag
/stamp-h1
: zlib
1652 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1653 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1654 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1655 --disable-debugging
--disable-profiling
1656 touch libid3tag
/stamp-h1
1658 libid3tag
: libid3tag
/stamp-h1 zlib
1659 @
$(MAKE
) -C libid3tag
all $(PARALLEL_BUILD
)
1662 -@
$(MAKE
) -C libid3tag
clean
1663 @
rm -f libid3tag
/stamp-h1
1665 libid3tag-install
: libid3tag
1667 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1668 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1669 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1672 libvorbis
/stamp-h1
: libogg
1674 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1675 CPPFLAGS
="-I$(TOP)/libogg/include" \
1676 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1677 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1678 --with-ogg-includes
="$(TOP)/libogg/include" \
1679 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1680 touch libvorbis
/stamp-h1
1682 libvorbis
: libvorbis
/stamp-h1
1683 @
$(MAKE
) -C libvorbis
/lib
all $(PARALLEL_BUILD
)
1686 -@
$(MAKE
) -C libvorbis
clean
1687 @
rm -f libvorbis
/stamp-h1
1689 libvorbis-install
: libvorbis
1691 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1692 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1693 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1696 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1698 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
$(PARALLEL_BUILD
)
1701 -@
$(MAKE
) -C minidlna
clean
1702 @
rm -f minidlna
/stamp-h1
1704 minidlna-install
: minidlan
1706 install -D minidlna
/minidlna
$(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1707 $(STRIP
) $(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1709 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1710 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1711 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1712 $(CONFIGURE
) --prefix=/usr
1714 igmpproxy
: igmpproxy
/src
/Makefile
1716 @
$(MAKE
) -C igmpproxy
/src
$(PARALLEL_BUILD
)
1718 igmpproxy-install
: igmpproxy
1719 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1720 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1723 -@
$(MAKE
) -C igmpproxy
/src
clean
1724 @
rm -f igmpproxy
/src
/Makefile
1727 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1728 PROGRAMS
=udevtrigger
1731 install -d
$(INSTALLDIR
)
1732 install -d
$(TARGETDIR
)
1733 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1736 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) CC
=$(CC
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1738 hotplug2-install
: hotplug2
1739 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1740 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1743 $(MAKE
) -C emf
$(BCMEX
)/emfconf CROSS
=$(CROSS_COMPILE
)
1745 emf
$(BCMEX
)-install:
1746 ifeq ($(TCONFIG_EMF
),y
)
1747 install -d
$(TARGETDIR
)
1748 $(MAKE
) -C emf
$(BCMEX
)/emfconf CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install
1752 -@
$(MAKE
) -C emf
$(BCMEX
)/emfconf
clean
1755 $(MAKE
) -C emf
$(BCMEX
)/igsconf CROSS
=$(CROSS_COMPILE
)
1758 ifeq ($(TCONFIG_EMF
),y
)
1759 install -d
$(TARGETDIR
)
1760 $(MAKE
) -C emf
$(BCMEX
)/igsconf CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install
1764 -@
$(MAKE
) -C emf
$(BCMEX
)/igsconf
clean
1766 wanuptime
: nvram
$(BCMEX
) shared
1768 @
$(MAKE
) -C wanuptime
1771 -@
$(MAKE
) -C wanuptime
clean
1774 install -D wanuptime
/wanuptime
$(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1775 $(STRIP
) $(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1778 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1779 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1780 LOCKFILE
="/var/lock/ebtables" LOCKDIR
="/var/lock" \
1781 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1783 ebtables-install
: ebtables
1784 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1786 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1787 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1788 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1790 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1791 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1792 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1793 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1795 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1796 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1797 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1800 -@
$(MAKE
) -C ebtables
clean
1803 spawn-fcgi
/stamp-h1
:
1804 cd spawn-fcgi
&& CC
=$(CC
) \
1805 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1806 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1807 ac_cv_func_malloc_0_nonnull
=yes \
1808 $(CONFIGURE
) --prefix=/usr
1809 touch spawn-fcgi
/stamp-h1
1811 spawn-fcgi
: spawn-fcgi
/stamp-h1
1812 @
$(MAKE
) -C spawn-fcgi
$(PARALLEL_BUILD
)
1815 -@
$(MAKE
) -C spawn-fcgi
clean
1816 rm -f spawn-fcgi
/stamp-h1
1818 spawn-fcgi-install
: spawn-fcgi
1819 install -d
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
1820 install spawn-fcgi
/src
/spawn-fcgi
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1821 $(STRIP
) -s
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1826 @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 \
1827 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 \
1828 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 \
1829 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 \
1830 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
1835 @
$(MAKE
) -C glib
$(PARALLEL_BUILD
)
1838 -@
$(MAKE
) -C glib
clean
1842 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1844 nocat
/stamp-h1
: glib-install
1848 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1851 echo
*** integrate glib to nocat installdir
1852 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1853 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1854 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1855 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1856 touch nocat
/stamp-h1
1858 nocat
: nocat
/stamp-h1
1859 @
$(MAKE
) -C nocat
$(PARALLEL_BUILD
)
1862 -@
$(MAKE
) -C nocat
clean
1863 rm -f nocat
/stamp-h1
1866 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1867 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1868 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1869 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1875 CC
=$(CC
) CXX
=$(HOST
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1876 $(CONFIGURE
) --prefix=/usr
--disable-dependency-tracking
--enable-utf8
--enable-unicode-properties
--disable-cpp
1877 @touch pcre
/stamp-h1
1878 [ -d pcre
/m4
] || mkdir pcre
/m4
1884 install -D pcre
/.libs
/libpcre.so
.1 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1885 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1886 install -D pcre
/.libs
/libpcreposix.so
.0.0.2 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1887 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1888 cd
$(INSTALLDIR
)/pcre
/usr
/lib
/ && \
1889 ln
-sf libpcre.so
.1.2.3 libpcre.so
.1 && \
1890 ln
-sf libpcreposix.so
.0.0.2 libpcreposix.so
.0
1893 ( if
[ -f pcre
/Makefile
]; then \
1894 $(MAKE
) -C pcre
clean; \
1895 rm -rf pcre
/stamp-h1
; \
1900 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1901 $(CONFIGURE
) --prefix=/usr
--without-python
--enable-static
--enable-shared
1904 libxml2
: libxml2
/stamp-h1
1905 @
$(MAKE
) -C libxml2
all $(PARALLEL_BUILD
)
1906 @
$(MAKE
) -C libxml2 DESTDIR
=$(TOP
)/libxml2
/staged
install
1908 libxml2-install
: libxml2
1910 install -D libxml2
/.libs
/libxml2.so
.2.9.1 $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1911 $(STRIP
) $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1912 cd
$(INSTALLDIR
)/libxml2
/usr
/lib
&& \
1913 ln
-sf libxml2.so
.2.9.1 libxml2.so
.2 && \
1914 ln
-sf libxml2.so
.2.9.1 libxml2.so
1917 -@
$(MAKE
) -C libxml2
clean
1918 @
rm -f libxml2
/stamp-h1
1919 @
rm -rf libxml2
/staged
1923 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1924 $(CONFIGURE
) --prefix=/usr
--enable-static
--enable-shared
1927 libpng
: libpng
/stamp-h1
1928 @
$(MAKE
) -C libpng
all $(PARALLEL_BUILD
)
1929 @
$(MAKE
) -C libpng DESTDIR
=$(TOP
)/libpng
/staged
install
1931 libpng-install
: libpng
1933 install -D libpng
/.libs
/libpng.so
.3.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1934 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1935 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1936 ln
-sf libpng.so
.3.51.0 libpng.so
&& \
1937 ln
-sf libpng.so
.3.51.0 libpng.so
.3
1938 install -D libpng
/.libs
/libpng12.so
.0.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1939 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1940 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1941 ln
-sf libpng12.so
.0.51.0 libpng12.so
&& \
1942 ln
-sf libpng12.so
.0.51.0 libpng12.so
.0
1945 -@
$(MAKE
) -C libpng
clean
1946 @
rm -f libpng
/stamp-h1
1947 @
rm -rf libpng
/staged
1949 php
/stamp-h1
: pcre zlib libiconv sqlite libxml2 libpng
1951 cd php
&& CC
=$(CC
) CXX
=$(ARCH
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1952 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" \
1953 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" \
1954 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" \
1955 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" \
1956 PHP_FCGI_LIBXML_DIR
="$(TOP)/libxml2/staged/usr" \
1957 ac_cv_func_memcmp_working
=yes \
1958 cv_php_mbstring_stdarg
=yes \
1959 $(CONFIGURE
) --prefix=/usr \
1965 --with-config-file-path
=/etc \
1966 --with-config-file-scan-dir
=/etc
/php5 \
1967 --disable-short-tags \
1969 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
1973 --disable-calendar \
1983 --with-png-dir
="$(TOP)/libpng/staged/usr" \
1985 --with-iconv
="$(TOP)/libiconv/staged/usr" \
1986 --with-iconv-dir
="$(TOP)/libiconv/staged/usr" \
1994 --without-pdo-mysql \
1995 --without-pdo-pgsql \
2001 --enable-simplexml \
2008 --disable-tokenizer \
2010 --enable-xmlreader \
2011 --enable-xmlwriter \
2014 --with-libxml-dir
="$(TOP)/libxml2/staged/usr"
2022 -@
$(MAKE
) -C php
clean
2027 install -d
$(INSTALLDIR
)/php
/usr
/sbin
2028 install -D php
/sapi
/cli
/.libs
/php
$(INSTALLDIR
)/php
/usr
/sbin
/php-cli
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
2029 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
2030 install -D php
/sapi
/cgi
/.libs
/php-cgi
$(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
2031 cd
$(INSTALLDIR
)/php
/usr
/sbin
&& ln
-sf php-cgi php-fcgi
2032 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
2034 nginx
/stamp-h1
: openssl zlib pcre
2036 cd
$(TOP
)/nginx
&& .
/configure
--crossbuild
=Linux
::$(ARCH
) \
2038 --sbin-path
=/usr
/sbin \
2039 --conf-path
=/etc
/nginx
/nginx.conf \
2040 --error-log-path
=/tmp
/var
/log
/nginx
/error.log \
2041 --http-log-path
=/tmp
/var
/log
/nginx
/access.log \
2042 --pid-path
=/tmp
/var
/run
/nginx.pid \
2043 --lock-path
=/tmp
/var
/run
/nginx.lock.accept \
2044 --http-client-body-temp-path
=/tmp
/var
/lib
/nginx
/client \
2045 --http-fastcgi-temp-path
=/tmp
/var
/lib
/nginx
/fastcgi \
2046 --with-http_flv_module \
2047 --with-http_ssl_module \
2048 --with-http_gzip_static_module \
2049 --http-uwsgi-temp-path
=/tmp
/var
/lib
/nginx
/uwsgi \
2050 --http-scgi-temp-path
=/tmp
/var
/lib
/nginx
/scgi \
2051 --http-proxy-temp-path
=/tmp
/var
/lib
/nginx
/proxy \
2053 --with-ld-opt
="$(LDFLAGS) -L $(TOP)/pcre/.libs -L $(TOP)/zlib -L $(TOP)/openssl" \
2054 --with-cc-opt
="$(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) -I $(TOP)/openssl/include -I $(TOP)/openssl/include/openssl -I $(TOP)/pcre -I $(TOP)/zlib" \
2055 $(ADDITIONAL_MODULES
)
2057 nginx
: nginx
/stamp-h1
2062 -@
$(MAKE
) -C nginx
clean
2063 -@
rm -f nginx
/stamp-h1
2065 nginx-install
: nginx
2066 install -d
$(INSTALLDIR
)/nginx
/usr
/sbin
2067 install -D nginx
/objs
/nginx
$(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
&& chmod
755 $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
2068 $(STRIP
) $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
2072 CFLAGS
="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
2076 @
$(MAKE
) -C lzo
$(PARALLEL_BUILD
)
2079 -@
$(MAKE
) -C lzo
clean
2083 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
2084 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
2085 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
2087 openvpn
/.conf
: openssl lzo
2088 cd openvpn
&& CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2089 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
2090 CPPFLAGS
="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
2091 $(CONFIGURE
) --prefix= \
2092 --with-crypto-library
=openssl \
2093 --disable-debug
--disable-plugin-auth-pam
--disable-plugin-down-root
--with-plugindir
=/lib
--enable-management
--enable-small \
2094 --disable-selinux
--disable-socks
--enable-password-save \
2095 OPENSSL_SSL_CFLAGS
="-I$(TOP)/openssl/include" \
2096 OPENSSL_SSL_LIBS
="-L$(TOP)/openssl -lssl" \
2097 ac_cv_lib_resolv_gethostbyname
=no
2100 openvpn
: openvpn
/.conf
2101 @
$(MAKE
) -C openvpn
$(PARALLEL_BUILD
)
2104 -@
$(MAKE
) -C openvpn
clean
2105 @
rm -f openvpn
/.conf
2107 openvpn-install
: openvpn
2108 install -D openvpn
/src
/openvpn
/.libs
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2109 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2110 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2112 openvpn_plugin_auth_nvram
: nvram
$(BCMEX
)
2115 libcurl
/stamp-h1
: zlib openssl
2116 cd libcurl
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2117 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -I$(TOP)/zlib" \
2118 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2119 $(CONFIGURE
) --prefix=/usr
--disable-thread
--enable-shared
--enable-static \
2120 --enable-ares
--enable-cookies
--enable-crypto-auth
--enable-nonblocking \
2121 --enable-file
--enable-ftp
--enable-http
--enable-ipv6
--enable-tftp \
2122 --disable-nls
--disable-ares
--disable-dict
--disable-debug
--disable-gopher \
2123 --disable-ldap
--disable-manual
--disable-telnet
--disable-verbose \
2124 --with-random
="/dev/urandom" --with-ssl
="$(TOP)/openssl" \
2125 --without-gnutls
--without-krb4
--without-libidn \
2126 --with-linux-headers
=$(LINUXDIR
)/include \
2127 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2128 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
2129 touch libcurl
/stamp-h1
2131 libcurl
: libcurl
/stamp-h1
2132 @
$(MAKE
) -C libcurl
$(PARALLEL_BUILD
)
2135 -@
$(MAKE
) -C libcurl
clean
2136 @
rm -f libcurl
/stamp-h1 libcurl
/Makefile
2138 libcurl-install
: libcurl
2139 install -d
$(INSTALLDIR
)/libcurl
/usr
/lib
2140 install -D libcurl
/lib
/.libs
/libcurl.so
.4.3.0 $(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2141 $(STRIP
) -s
$(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2142 cd
$(INSTALLDIR
)/libcurl
/usr
/lib
/ && \
2143 ln
-sf libcurl.so
.4.3.0 libcurl.so
.4 && \
2144 ln
-sf libcurl.so
.4.3.0 libcurl.so
2147 cd libevent
&& CC
=$(CC
) \
2148 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2149 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2151 touch libevent
/stamp-h1
2153 libevent
: libevent
/stamp-h1
2155 $(MAKE
) -C libevent
$(PARALLEL_BUILD
)
2156 $(MAKE
) -C libevent DESTDIR
=$(TOP
)/libevent
/staged
install
2159 -@
$(MAKE
) -C libevent
clean
2160 @
rm -f libevent
/stamp-h1 libevent
/Makefile
2161 @
rm -rf libevent
/staged
2163 libevent-install
: libevent
2164 install -d
$(INSTALLDIR
)/libevent
/usr
/lib
2165 install libevent
/.libs
/libevent-2.0.so
.5.1.9 $(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2166 $(STRIP
) -s
$(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2169 cd libiconv
&& CC
=$(CC
) \
2170 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2171 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2172 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-static
--enable-shared
2173 touch libiconv
/stamp-h1
2175 libiconv
: libiconv
/stamp-h1
2177 $(MAKE
) -C libiconv
$(PARALLEL_BUILD
)
2178 $(MAKE
) -C libiconv DESTDIR
=$(TOP
)/libiconv
/staged
install
2181 -@
$(MAKE
) -C libiconv
clean
2182 @
rm -rf libiconv
/stamp-h1 libiconv
/Makefile
2183 @
rm -rf libiconv
/staged
2185 libiconv-install
: libiconv
2186 install -d
$(INSTALLDIR
)/libiconv
/usr
/lib
2187 install libiconv
/lib
/.libs
/libiconv.so
.2.5.1 $(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2188 $(STRIP
) -s
$(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2189 cd
$(INSTALLDIR
)/libiconv
/usr
/lib
/ && \
2190 ln
-sf libiconv.so
.2.5.1 libiconv.so
.2 && \
2191 ln
-sf libiconv.so
.2.5.1 libiconv.so
2193 transmission
/stamp-h1
: openssl libcurl libevent zlib
2194 cd transmission
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2196 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2197 --param large-function-growth=800 --param max-inline-insns-single=3000 \
2198 -ffunction-sections -fdata-sections" \
2199 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC \
2200 -L$(TOP)/zlib -L$(TOP)/openssl -L$(TOP)/libcurl/lib/.libs -L$(TOP)/libevent/.libs" \
2202 $(CONFIGURE
) --target
=$(HOST
) --host
=$(HOST
) --build
=x86_64-linux-gnu
--prefix=/usr
--disable-nls \
2203 --enable-lightweight
--enable-largefile
--enable-utp
--without-gtk \
2204 LIBCURL_CFLAGS
="-I$(TOP)/libcurl/include" \
2205 LIBCURL_LDFLAGS
="-L$(TOP)/libcurl/lib/.libs/" \
2206 LIBCURL_LIBS
="-lcurl" \
2207 LIBEVENT_CFLAGS
="-I$(TOP)/libevent/include" \
2208 LIBEVENT_LDFLAGS
="-L$(TOP)/libevent/.libs" \
2209 LIBEVENT_LIBS
="-levent" \
2210 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2211 OPENSSL_LDFLAGS
="-L$(TOP)/openssl" \
2212 OPENSSL_LIBS
="-lcrypto -lssl" \
2213 ZLIB_CFLAGS
="-I$(TOP)/zlib" \
2214 ZLIB_LDFLAGS
="-L$(TOP)/zlib" \
2216 touch transmission
/stamp-h1
2218 transmission
: transmission
/stamp-h1
2220 $(MAKE
) -C transmission
$(PARALLEL_BUILD
)
2223 -@
$(MAKE
) -C transmission
clean
2224 @
rm -f transmission
/stamp-h1 transmission
/Makefile
2226 transmission-install
: transmission
2227 $(MAKE
) -C transmission DESTDIR
=$(INSTALLDIR
)/transmission install-strip
2228 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/share
/man
2229 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-cli
2230 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-show
2231 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-edit
2232 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-create
2233 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-daemon
2234 ifeq ($(TCONFIG_TR_EXTRAS
),y
)
2235 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2237 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2243 btgui-install
: btgui
2244 install -d
$(INSTALLDIR
)/btgui
/usr
/bin
2245 install -D transmission
/btcheck
$(INSTALLDIR
)/btgui
/usr
/bin
/btcheck
2247 libnfsidmap
/stamp-h1
:
2249 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2250 ac_cv_func_malloc_0_nonnull
=yes \
2251 ac_cv_func_realloc_0_nonnull
=yes \
2252 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
2253 touch libnfsidmap
/stamp-h1
2255 libnfsidmap
: libnfsidmap
/stamp-h1
2257 $(MAKE
) -C libnfsidmap
$(PARALLEL_BUILD
)
2260 -@
$(MAKE
) -C libnfsidmap
clean
2261 @
rm -f libnfsidmap
/stamp-h1
2262 @
rm -rf libnfsidmap
/staged
2264 libnfsidmap-install
: libnfsidmap
2265 install -d
$(TOP
)/libnfsidmap
/staged
2266 $(MAKE
) -C libnfsidmap DESTDIR
=$(TOP
)/libnfsidmap
/staged
install
2270 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2271 $(MAKE
) -C portmap CC
=$(CC
) AR
=$(AR
) LD
=$(LD
) RANLIB
=$(RANLIB
) RPCUSER
="nobody"
2272 touch portmap
/stamp-h1
2274 portmap
: portmap
/stamp-h1
2276 $(MAKE
) -C portmap
$(PARALLEL_BUILD
)
2279 -@
$(MAKE
) -C portmap
clean
2280 @
rm -f portmap
/stamp-h1
2282 portmap-install
: portmap
2283 install -d
$(INSTALLDIR
)/portmap
/usr
/sbin
2284 install -D portmap
/portmap
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2285 $(STRIP
) -s
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2289 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2290 $(CONFIGURE
) --prefix=$(TOP
)/e2fsprogs
/staged
--enable-shared
--enable-static
2291 touch e2fsprogs
/stamp-h1
2293 e2fsprogs
: e2fsprogs
/stamp-h1
2295 $(MAKE
) -C e2fsprogs
$(PARALLEL_BUILD
)
2298 -@
$(MAKE
) -C e2fsprogs
clean
2299 @
rm -f e2fsprogs
/stamp-h1
2300 @
rm -f e2fsprogs
/Makefile
2301 @
rm -rf e2fsprogs
/staged
2303 nfs-utils
/stamp-h1
: libevent-install e2fsprogs portmap libnfsidmap-install
2304 cd nfs-utils
&& STRIP
=$(STRIP
) \
2305 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2306 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
2307 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
2308 LDFLAGS
="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
2309 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2310 ac_cv_func_malloc_0_nonnull
=yes \
2311 ac_cv_func_realloc_0_nonnull
=yes \
2312 $(CONFIGURE
) --disable-gss
--without-tcp-wrappers
--enable-static
--enable-shared \
2313 --enable-nfsv4
--enable-nfsv3
2314 touch nfs-utils
/stamp-h1
2316 nfs-utils
: nfs-utils
/stamp-h1
2318 $(MAKE
) -C nfs-utils
$(PARALLEL_BUILD
)
2321 -@
$(MAKE
) -C nfs-utils
clean
2322 @
rm -f nfs-utils
/stamp-h1
2324 nfs-utils-install
: nfs-utils
2325 install -d
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
2326 install -D nfs-utils
/utils
/mount
/mount.nfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2327 install -D nfs-utils
/utils
/nfsd
/nfsd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2328 install -D nfs-utils
/utils
/showmount
/showmount
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2329 install -D nfs-utils
/utils
/exportfs
/exportfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2330 install -D nfs-utils
/utils
/statd
/statd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2331 install -D nfs-utils
/utils
/mountd
/mountd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2332 install -D nfs-utils
/nfs.rc
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfs.rc
2333 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2334 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2335 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2336 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2337 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2338 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2342 CFLAGS
="-Os -Wall --host=$(HOST) --target=$(HOST) $(EXTRACFLAGS)" \
2344 chmod
0755 sd-idle
/sd-idle
2345 touch sd-idle
/stamp-h1
2348 -@
$(MAKE
) -C sd-idle
clean
2349 @
rm -f sd-idle
/stamp-h1
2351 sd-idle-install
: sd-idle
/stamp-h1
2352 install -d
$(INSTALLDIR
)/sd-idle
/usr
/bin
2353 install -D sd-idle
/sd-idle
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2354 $(STRIP
) -s
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2358 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2359 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
2360 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
2361 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
2362 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
2363 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
2364 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
2365 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
2366 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
2374 -@
$(MAKE
) -C snmp
clean
2375 @
rm -f snmp
/stamp-h1
2378 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2379 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2382 cd apcupsd
&& touch autoconf
/variables.mak
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2383 $(MAKE
) configure
&& \
2384 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2385 LDFLAGS
="-L$(TOOLCHAIN)/lib -ffunction-sections -fdata-sections" \
2386 $(CONFIGURE
) --prefix=/usr
--without-x
--enable-usb
--disable-pcnet
--enable-cgi \
2387 --disable-lgd
--enable-net
--sysconfdir
=/usr
/local
/apcupsd
--bindir=/bin \
2388 --disable-dumb
--disable-snmp
--disable-net-snmp
--with-cgi-bin
=/www
/apcupsd
--with-serial-dev
=
2389 touch apcupsd
/stamp-h1
2391 apcupsd
: apcupsd
/stamp-h1
2392 $(MAKE
) -C apcupsd
$(PARALLEL_BUILD
)
2395 -@
$(MAKE
) -C apcupsd
clean
2396 @
rm -f apcupsd
/stamp-h1
2397 @
rm -f apcupsd
/config
*
2399 apcupsd-install
: apcupsd
2400 $(MAKE
) -C apcupsd DESTDIR
=$(INSTALLDIR
)/apcupsd
install
2401 @
rm -rf
$(INSTALLDIR
)/apcupsd
/sbin
/apctest
2402 @
rm -rf
$(INSTALLDIR
)/apcupsd
/www
/apcupsd
/ups
*.cgi
2403 $(STRIP
) $(INSTALLDIR
)/apcupsd
/sbin
/*
2404 $(STRIP
) $(INSTALLDIR
)/apcupsd
/www
/apcupsd
/*
2407 cd
$(TOP
)/libsodium
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2408 $(CONFIGURE
) --prefix=/usr
--disable-ssp
--enable-minimal
2409 touch libsodium
/stamp-h1
2411 libsodium
: libsodium
/stamp-h1
2412 $(MAKE
) -C libsodium
$(PARALLEL_BUILD
)
2414 libsodium-install
: libsodium
2415 install -d
$(INSTALLDIR
)/libsodium
/usr
/lib
2416 install -D libsodium
/src
/libsodium
/.libs
/libsodium.so
.10.2.0 $(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.10.2.0
2417 $(STRIP
) -s
$(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.10.2.0
2418 cd
$(INSTALLDIR
)/libsodium
/usr
/lib
/ && \
2419 ln
-sf libsodium.so
.10.2.0 libsodium.so
.10 && \
2420 ln
-sf libsodium.so
.10.2.0 libsodium.so
2423 -$(MAKE
) -C libsodium
clean
2424 @
rm -rf libsodium
/stamp-h1
2426 dnscrypt
/stamp-h1
: libsodium
2427 cd
$(TOP
)/dnscrypt
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2428 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2429 CPPFLAGS
="-I$(TOP)/libsodium/src/libsodium/include" \
2430 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libsodium/src/libsodium/.libs" \
2431 $(CONFIGURE
) --prefix=/usr
--disable-ssp
2432 touch dnscrypt
/stamp-h1
2434 dnscrypt
: dnscrypt
/stamp-h1
2435 $(MAKE
) -C dnscrypt
$(PARALLEL_BUILD
)
2437 dnscrypt-install
: dnscrypt
2438 install -D dnscrypt
/src
/proxy
/.libs
/dnscrypt-proxy
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2439 install -D dnscrypt
/src
/hostip
/.libs
/hostip
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2440 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2441 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2444 -@
$(MAKE
) -C dnscrypt
clean
2445 @
rm -rf dnscrypt
/stamp-h1 dnscrypt
/src
/dnscrypt-proxy
/.deps dnscrypt
/Makefile
2447 tor
/stamp-h1
: openssl zlib libevent
2448 cd
$(TOP
)/tor
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2449 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2450 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
2451 $(CONFIGURE
) --prefix=/usr
--with-libevent-dir
=$(TOP
)/libevent
/staged
/usr
/local \
2452 --with-openssl-dir
=$(TOP
)/openssl
--with-zlib-dir
=$(TOP
)/zlib \
2453 --disable-asciidoc
--disable-threads
2457 $(MAKE
) -C tor
$(PARALLEL_BUILD
)
2460 install -D tor
/src
/or
/tor
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2461 $(STRIP
) -s
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2464 -@
$(MAKE
) -C tor
clean
2465 @
rm -rf tor
/stamp-h1 tor
/Makefile
2469 $(MAKE
) -C udpxy CFLAGS
="-Os -Wall --host=$(HOST) --target=$(HOST) $(EXTRACFLAGS)" \
2470 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections"
2471 touch udpxy
/stamp-h1
2474 -@
$(MAKE
) -C udpxy
clean
2475 @
rm -f udpxy
/stamp-h1
2477 udpxy-install
: udpxy
/stamp-h1
2478 install -d
$(INSTALLDIR
)/udpxy
/usr
/bin
2479 install -D udpxy
/udpxy
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2480 $(STRIP
) -s
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2483 $(MAKE
) -C mdadm
$(PARALLEL_BUILD
)
2485 mdadm-install
: mdadm
2486 install -D mdadm
/mdadm
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2487 $(STRIP
) -s
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2490 -@
$(MAKE
) -C mdadm
clean
2493 $(MAKE
) -C ipset binaries
2495 ipset-install
: ipset
2496 install -D ipset
/ipset
$(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2497 install -d
$(INSTALLDIR
)/ipset
/usr
/lib
/
2498 install ipset
/*.so
$(INSTALLDIR
)/ipset
/usr
/lib
/
2499 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/lib
/*.so
2500 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2503 -@
$(MAKE
) -C ipset
clean
2506 @
$(MAKE
) -C comgt CC
=$(CC
) CFLAGS
="$(EXTRACFLAGS)" LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" comgt
2508 comgt-install
: comgt
2509 install -D comgt
/comgt
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2510 cd
$(INSTALLDIR
)/comgt
/usr
/sbin
/ && \
2512 $(STRIP
) -s
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2513 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/gcom
2514 @cp
-f comgt
/gcom
/* $(TARGETDIR
)/rom
/etc
/gcom
/
2517 -@
$(MAKE
) -C comgt
clean
2524 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
2528 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
2531 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
2534 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
2539 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
2541 .PHONY
: all clean distclean mrproper
install package image
2542 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
2543 .PHONY
: dummy libnet libpcap