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_TINC
) += tinc
219 obj-
$(TCONFIG_EMF
) += emf
220 obj-
$(TCONFIG_EMF
) += igs
223 # additional modules for nginx
224 ifeq (obj-
$(TCONFIG_NGINX
),y
)
225 ifndef ($(ADDITIONAL_MODULES
))
228 ifeq ($(TCONFIG_IPV6
),y
)
229 ADDITIONAL_MODULES
+= --with-ipv6
233 obj-
$(TCONFIG_NGINX
) += libncurses
234 obj-
$(TCONFIG_NGINX
) += mysql
235 obj-
$(TCONFIG_NGINX
) += openssl
236 obj-
$(TCONFIG_NGINX
) += spawn-fcgi
237 obj-
$(TCONFIG_NGINX
) += pcre
238 obj-
$(TCONFIG_NGINX
) += sqlite
239 obj-
$(TCONFIG_NGINX
) += libiconv
240 obj-
$(TCONFIG_NGINX
) += libxml2
241 obj-
$(TCONFIG_NGINX
) += libpng
242 obj-
$(TCONFIG_NGINX
) += jpeg
243 obj-
$(TCONFIG_NGINX
) += php
244 obj-
$(TCONFIG_NGINX
) += nginx
246 obj-
$(TCONFIG_NANO
) += libncurses
247 obj-
$(TCONFIG_NANO
) += nano
249 obj-
$(TCONFIG_BBT
) += openssl
250 obj-
$(TCONFIG_BBT
) += libevent
251 obj-
$(TCONFIG_BBT
) += libcurl
252 obj-
$(TCONFIG_BBT
) += transmission
253 obj-
$(TCONFIG_BT
) += btgui
254 obj-
$(TCONFIG_BBT
) += zlib
255 #obj-$(TCONFIG_BBT) += libiconv
257 obj-
$(CONFIG_LINUX26
) += hotplug2
258 obj-
$(CONFIG_LINUX26
) += udevtrigger
260 ifeq ($(TCONFIG_OPENVPN
),y
)
261 export FULL_OPENSSL
:= y
263 ifeq ($(TCONFIG_FTP_SSL
),y
)
264 export FULL_OPENSSL
:= y
266 ifeq ($(TCONFIG_BBT
),y
)
267 export FULL_OPENSSL
:= y
269 ifeq ($(TCONFIG_TOR
),y
)
270 export FULL_OPENSSL
:= y
272 ifeq ($(TCONFIG_TOR
),y
)
273 export FULL_OPENSSL
:= y
275 ifeq ($(TCONFIG_TINC
),y
)
276 export FULL_OPENSSL
:= y
288 ifeq ($(TCONFIG_IPV6
),y
)
289 export TCONFIG_IPV6
:= y
290 IPTABLES_IPV6_OPT
:= --enable-ipv6
293 IPTABLES_IPV6_OPT
:= --disable-ipv6
297 # Specify iptables path and target for miniupnpd
298 ifeq ($(TCONFIG_BCMARM
),y
)
299 IPTABLESPATH
=$(TOP
)/iptables-1.4.x
300 IPTABLES_TARGET
= iptables-1.4.x
301 IPROUTE_TARGET
= iproute2-3.x
303 IPTABLESPATH
=$(TOP
)/iptables
304 IPTABLES_TARGET
= iptables
305 IPROUTE_TARGET
= iproute2
308 export IPTABLES_TARGET
309 export IPROUTE_TARGET
311 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
312 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
314 ifeq ($(TCONFIG_BCMARM
),y
)
317 export PLATFORM LIBDIR USRLIBDIR LINUX_VERSION
319 WLAN_ComponentsInUse
:= bcmwifi clm ppr olpc
320 include ..
/..
/src-rt-6.x
.4708/makefiles
/WLAN_Common.mk
321 export BASEDIR
:= $(WLAN_TreeBaseA
)
322 export EXTRALDFLAGS
= -lgcc_s
323 export EXTRALDFLAGS2
= -L
$(TOP
)/nvram
$(BCMEX
) -lnvram
-L
$(TOP
)/shared
-lshared
325 export LD_LIBRARY_PATH
:= $(SRCBASE
)/toolchains
/hndtools-arm-linux-2.6
.36-uclibc-4.5
.3/lib
326 ifeq (2_6_36
,$(LINUX_VERSION
))
327 export LINUXDIR
:= $(BASEDIR
)/src-rt-6.x
.4708/linux
/linux-2.6
.36
328 export KBUILD_VERBOSE
:= 1
329 export BUILD_MFG
:= 0
331 SUBMAKE_SETTINGS
= SRCBASE
=$(SRCBASE
) BASEDIR
=$(BASEDIR
)
332 SUBMAKE_SETTINGS
+= ARCH
=$(ARCH
)
334 export OPTCFLAGS
= -O2
335 WLCFGDIR
=$(SRCBASE
)/wl
/config
337 export CFLAGS
+= -D__CONFIG_EMF__
339 ROOT_IMG
:= target.squashfs
345 ifeq ($(TCONFIG_BCMARM
),y
)
346 obj-prelibs
=$(filter nvram
$(BCMEX
) libbcmcrypto shared netconf libupnp libz libbcm
, $(obj-y
))
347 obj-postlibs
:= $(filter-out $(obj-prelibs
), $(obj-y
))
350 ifeq ($(TCONFIG_BCMWL6
), y
)
351 include ..
/..
/$(SRCBASE
)/makefiles
/WLAN_Common.mk
358 all: clean-build libc
$(obj-y
) kernel
361 kernel
: $(LINUXDIR
)/.config
364 ifneq ($(TCONFIG_BCMARM
),y
)
365 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
366 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
368 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
369 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
371 ifeq ($(CONFIG_LINUX26
),y
)
372 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
) $(PARALLEL_BUILD
)
374 else # TCONFIG_BCMARM
375 $(MAKE
) compressed-clean
#shibby
376 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |\
377 $(MAKE
) -C
${LINUXDIR} -f
- $(SUBMAKE_SETTINGS
) zImage
378 +$(MAKE
) CONFIG_SQUASHFS
=$(CONFIG_SQUASHFS
) -C
$(SRCBASE
)/router
/compressed ARCH
=$(ARCH
)
380 $(if
$(shell grep
"CONFIG_MODULES=y" ${LINUXDIR}/.config
), \
381 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |
$(MAKE
) -C
${LINUXDIR} -f
- $(SUBMAKE_SETTINGS
) MFG_WAR
=1 zImage
; \
382 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |
$(MAKE
) -C
${LINUXDIR} -f
- ARCH
=$(ARCH
) modules
)
383 # Preserve the debug versions of these and strip for release
384 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/vmlinux
)
385 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/wl
/wl.ko
)
386 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/et
/et.ko
)
387 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/ctf
/ctf.ko
)
388 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/bcm57xx
/bcm57xx.ko
)
389 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/emf
/emf.ko
)
390 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/igs
/igs.ko
)
391 endif # TCONFIG_BCMARM
393 ifneq ($(TCONFIG_BCMARM
),y
)
395 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
) $(PARALLEL_BUILD
)
397 lzma-loader-install
: lzma-loader
402 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
)
405 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
406 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
408 install package
: $(obj-install
) $(LINUXDIR
)/.config
411 install -d
$(TARGETDIR
)
415 $(MAKE
) -C
$(LINUXDIR
) modules_install \
416 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" \
417 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
419 ifneq ($(CONFIG_LINUX26
),y
)
420 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
421 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
422 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
423 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
424 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
425 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
426 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
428 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
431 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
434 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
435 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
436 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
437 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
438 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
439 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
440 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
441 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
442 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
443 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
446 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
447 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
448 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
449 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
450 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
451 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
452 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
453 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
454 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
455 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
456 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
457 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfs
/* .
&& rm -rf hfs || true
458 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
459 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
460 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
461 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
462 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
463 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
464 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
465 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
466 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
467 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
468 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
469 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
470 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
471 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
472 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
473 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
474 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
475 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
476 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
477 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
478 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
479 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv core
/* .
&& rm -rf core || true
480 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv card
/* .
&& rm -rf card || true
481 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv host
/* .
&& rm -rf host || true
482 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
483 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
484 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
485 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
486 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
487 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
488 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
489 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
490 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
491 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
492 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
493 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
495 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
496 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
497 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
498 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
499 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv usb
/* .
&& rm -rf usb || true
500 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
503 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
504 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
507 ifneq ($(TCONFIG_L7
),y
)
508 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
512 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
513 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
514 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
515 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
516 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
517 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
518 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
519 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
520 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
521 ifeq ($(TCONFIG_SSH
),y
)
522 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
524 ifeq ($(TCONFIG_BBT
),y
)
525 install $(LIBDIR
)/librt.so
.0 $(TARGETDIR
)/lib
/librt.so
.0
527 ifeq ($(TCONFIG_NGINX
),y
)
528 install $(LIBDIR
)/..
/arm-linux
/lib
/libstdc
++.so
.6 $(TARGETDIR
)/lib
/libstdc
++.so
.6
529 cd
$(TARGETDIR
)/lib
&& ln
-sf libstdc
++.so
.6 libstdc
++.so
530 $(STRIP
) $(TARGETDIR
)/lib
/libstdc
++.so
.6
532 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
533 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
534 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
537 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
541 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
542 ifneq ($(TCONFIG_BCMARM
),y
)
543 @
$(SRCBASE
)/btools
/libfoo.pl
546 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
548 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
549 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
551 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
552 # separated/copied extra stuff
553 @
rm -rf
$(PLATFORMDIR
)/extras
554 @mkdir
$(PLATFORMDIR
)/extras
555 @mkdir
$(PLATFORMDIR
)/extras
/ipsec
556 @mkdir
$(PLATFORMDIR
)/extras
/raid
557 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
558 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/usr/lib/iptables/libipt_policy.*o $(PLATFORMDIR)/extras/ipsec/ || true
560 $(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
561 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
563 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/mdadm
$(PLATFORMDIR
)/extras
/raid
/ || true
564 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md
/*.ko
$(PLATFORMDIR
)/extras
/raid
/ || true
565 $(if
$(TCONFIG_RAID
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md || true
567 @cp
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ip_set
*o
$(PLATFORMDIR
)/extras
/ || true
568 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
569 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
570 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
571 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
572 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
573 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
574 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
575 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
576 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
577 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
578 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
579 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
580 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
581 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
582 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
583 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
585 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
586 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
587 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
588 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
589 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-acm.
*o
$(PLATFORMDIR
)/extras
/ || true
590 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
591 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
592 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
593 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
594 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
595 $(if
$(NEED_SD_MODULES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
596 $(if
$(NEED_SD_MODULES
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc || true
598 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ch341.
*o
$(PLATFORMDIR
)/extras
/ || true
599 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
600 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
601 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
602 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
603 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
604 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
605 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
606 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
607 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
608 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-wdm.
*o
$(PLATFORMDIR
)/extras
/ || true
609 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
610 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
611 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/qmi_wwan.
*o
$(PLATFORMDIR
)/extras
/ || true
612 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ipheth.
*o
$(PLATFORMDIR
)/extras
/ || true
613 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
614 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
615 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
616 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
617 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
618 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
619 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
620 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
621 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
622 $(if
$(TCONFIG_UPS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
623 $(if
$(TCONFIG_UPS
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
624 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
625 $(if
$(TCONFIG_CTF
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
626 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
627 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
628 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
629 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
630 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
631 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
632 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm || true
633 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
634 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key || true
635 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/xfrm
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
636 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv*/tunnel*.ko $(PLATFORMDIR)/extras/ipsec/ || true
637 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ah
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
638 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/esp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
639 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ipcomp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
640 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_policy.ko $(PLATFORMDIR)/extras/ipsec/ || true
642 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
643 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
644 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
645 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
646 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
647 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
648 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
650 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
651 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
652 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
653 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
654 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
655 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
656 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
657 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
658 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
659 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
660 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
661 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
662 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfs.
*o
$(PLATFORMDIR
)/extras
/ || true
663 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
665 ifneq ($(TCONFIG_USB
),y
)
666 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
667 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
668 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
671 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
672 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
673 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
674 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
675 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
677 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
678 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
679 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
680 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
681 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
682 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
683 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
685 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
686 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
688 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
689 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
690 @cp
-r
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
692 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
693 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
694 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
695 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
696 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
697 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
698 ifneq ($(NEED_EX_USB
),y
)
699 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
700 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
702 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
704 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
705 ifeq ($(TCONFIG_L7PAT
),y
)
706 @cd layer7
&& .
/squish.sh
707 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
710 ifeq ($(TCONFIG_PPTPD
),y
)
711 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/vpn
712 cp rc
/vpn
/* $(TARGETDIR
)/rom
/etc
/vpn
713 chmod
+x
$(TARGETDIR
)/rom
/etc
/vpn
/*
716 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
717 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
720 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
723 ifneq ($(TCONFIG_BCMARM
),y
)
724 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
725 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-no-duplicates | tee target.
info
727 $(MAKE
) -C squashfs-4.2 mksquashfs
728 squashfs-4.2
/mksquashfs
$(TARGETDIR
) $(PLATFORMDIR
)/$(ROOT_IMG
) -noappend
-all-root
732 libc
: $(LIBDIR
)/ld-uClibc.so
.0
733 # $(MAKE) -C ../../../tools-src/uClibc all
734 # $(MAKE) -C ../../../tools-src/uClibc install
741 clean: clean-build
$(obj-clean
)
742 rm -rf layer7
/squished
743 rm -f .ipv6-y .ipv6-n
744 rm -f .fullssl-y .fullssl-n
750 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
751 rm -rf
$(PLATFORMDIR
)/extras
754 ifneq ($(INSIDE_MAK
),1)
755 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
757 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
763 CONFIG_IN
:= config
/config.in
765 config
/conf config
/mconf
:
769 @config
/conf
$(CONFIG_IN
)
772 @config
/mconf
$(CONFIG_IN
)
774 roldconf
: config
/conf
775 @config
/conf
-o
$(CONFIG_IN
)
776 @
$(MAKE
) shared-clean rc-clean nvram
$(BCMEX
)-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
779 @
$(MAKE
) -C
$(LINUXDIR
) config
782 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
785 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
786 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
789 @
$(MAKE
) -C busybox oldconfig
791 config conf
: rconf kconf
793 menuconfig mconf
: rmconf kmconf
796 @
rm -f .ipv6-y .ipv6-n
797 @
$(MAKE
) $(IPTABLES_TARGET
)-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean
$(IPROUTE_TARGET
)-clean
800 .fullssl-y .fullssl-n
:
801 @
rm -f .fullssl-y .fullssl-n
802 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
805 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
807 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
811 # overrides and extra dependencies
815 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" $(PARALLEL_BUILD
)
818 rm -rf
$(INSTALLDIR
)/busybox
819 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
822 -@
$(MAKE
) -C busybox
distclean
825 $(MAKE
) -C busybox menuconfig
828 httpd
: shared nvram
$(BCMEX
) mssl
833 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
837 @
$(MAKE
) -C matrixssl
/src
843 -@
$(MAKE
) -C matrixssl
/src
clean
846 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
847 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
848 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
849 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
850 PTHREAD_LIBS
="-lpthread" \
852 @touch cyassl
/stamp-h1
854 cyassl
: cyassl
/stamp-h1
859 -@
$(MAKE
) -C cyassl
clean
860 @
rm -f cyassl
/stamp-h1
865 ifeq ($(FULL_OPENSSL
),y
)
866 OPENSSL_CIPHERS
:=enable-rc5
868 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
873 .
/Configure
$(HOSTCONFIG
) --openssldir
=/etc
--cross-compile-prefix
=' ' \
874 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
875 shared
$(OPENSSL_CIPHERS
) no-ssl2 no-ssl3 \
876 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
877 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
878 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake \
879 no-zlib no-engines no-sse2 \
880 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
882 @
$(MAKE
) -C openssl
clean
883 @touch openssl
/stamp-h1
885 openssl
: openssl
/stamp-h1
888 -@
$(MAKE
) -C openssl
clean
889 @
rm -f openssl
/stamp-h1
891 openssl-install
: openssl
892 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
893 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
894 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
896 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
897 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
898 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
900 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
902 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
903 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
905 #ifeq ($(FULL_OPENSSL),y)
906 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
907 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
908 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
915 rc
: nvram
$(BCMEX
) shared
919 -@cd eapd
$(BCMEX
)/linux
&& make
clean
923 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
924 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
926 bridge
: bridge
/Makefile
931 -@
$(MAKE
) -C bridge
clean
932 @
rm -f bridge
/Makefile
935 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
936 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
938 dnsmasq
: $(if
$(TCONFIG_DNSSEC
),nettle
,)
940 @
$(MAKE
) -C dnsmasq
$(PARALLEL_BUILD
) \
941 COPTS
="$(if $(TCONFIG_DNSSEC),-I$(TOP)/nettle/include -I$(TOP)/gmp -DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC,) \
942 $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) \
943 $(if $(CONFIG_LINUX26),-DUSE_IPSET,-DNO_IPSET) \
944 -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
945 LDFLAGS
="$(if $(TCONFIG_DNSSEC),-L$(TOP)/nettle/lib -L$(TOP)/gmp/.libs,) -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
946 $(if
$(TCONFIG_DNSSEC
),PKG_CONFIG_PATH
="$(TOP)/nettle/lib/pkgconfig",)
949 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
950 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
953 @cd nettle
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
954 CPPFLAGS
="-I$(TOP)/gmp" \
955 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
956 LDFLAGS
="-L$(TOP)/gmp/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
957 $(CONFIGURE
) prefix=$(TOP
)/nettle
958 @touch nettle
/stamp-h1
960 nettle
: nettle
/stamp-h1
963 @
$(MAKE
) -C nettle
install
966 -@
$(MAKE
) -C nettle
clean
967 @
rm -f nettle
/stamp-h1
968 @
rm -rf nettle
/include nettle
/lib nettle
/bin nettle
/share
971 @cd gmp
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
972 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
973 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
982 @
$(MAKE
) -C gmp
clean
986 ifeq ($(CONFIG_LINUX26
),y
)
987 cp
-f iptables
/extensions
/libipt_ipp2p_K26.c iptables
/extensions
/libipt_ipp2p.c
989 cp
-f iptables
/extensions
/libipt_ipp2p_K24.c iptables
/extensions
/libipt_ipp2p.c
992 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
995 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
996 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
997 ln
-sf iptables iptables-restore
&& \
998 ln
-sf iptables iptables-save
1000 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
1001 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
1003 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
1005 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
1006 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
1007 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
1009 ifeq ($(TCONFIG_IPV6
),y
)
1010 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
1011 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
1012 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
1013 ln
-sf ip6tables ip6tables-restore
&& \
1014 ln
-sf ip6tables ip6tables-save
1018 -@
$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
1020 iptables-1.4.x
: iptables-1.4.x
/Makefile libnfnetlink
1022 $(MAKE
) -C
$@ KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE" \
1023 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/libnfnetlink/include" \
1024 LDFLAGS
="-L$(TOP)/libnfnetlink/src/.libs -lnfnetlink"
1026 iptables-1.4.x
/Makefile
: iptables-1.4.x
/configure
1027 $(MAKE
) iptables-1.4.x-configure
1029 iptables-1.4.x
/configure
:
1030 ( cd iptables-1.4.x
; .
/autogen.sh
)
1032 iptables-1.4.x-configure
:
1033 ( cd iptables-1.4.x
; \
1036 --bindir=/usr
/sbin \
1038 $(IPTABLES_IPV6_OPT
) \
1039 --with-kernel
=$(LINUXDIR
) \
1042 iptables-1.4.x-install
:
1043 install -D iptables-1.4.x
/iptables
/.libs
/xtables-multi
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
/xtables-multi
1044 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
&& \
1045 ln
-sf xtables-multi iptables-restore
&& \
1046 ln
-sf xtables-multi iptables
1047 install -d
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
1048 install -D iptables-1.4.x
/libiptc
/.libs
/lib
*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/
1049 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
&& \
1050 ln
-sf libip4tc.so libip4tc.so
.0 && \
1051 ln
-sf libip4tc.so libip4tc.so
.0.0.0 && \
1052 ln
-sf libip6tc.so libip6tc.so
.0 && \
1053 ln
-sf libip6tc.so libip6tc.so
.0.0.0 && \
1054 ln
-sf libiptc.so libiptc.so
.0 && \
1055 ln
-sf libiptc.so libiptc.so
.0.0.0
1056 install -D iptables-1.4.x
/libxtables
/.libs
/lib
*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/
1057 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
&& \
1058 ln
-sf libxtables.so libxtables.so
.7 && \
1059 ln
-sf libxtables.so libxtables.so
.7.0.0
1060 install -D iptables-1.4.x
/extensions
/*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
1062 ifeq ($(TCONFIG_IPV6
),y
)
1063 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
&& \
1064 ln
-sf xtables-multi ip6tables-restore
&& \
1065 ln
-sf xtables-multi ip6tables
1068 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
/xtables-multi
1069 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/*.so
*
1070 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
/*.so
*
1072 iptables-1.4.x-clean
:
1073 [ ! -f iptables-1.4.x
/Makefile
] ||
$(MAKE
) -C iptables-1.4.x KERNEL_DIR
=$(LINUXDIR
) distclean
1077 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,) $(PARALLEL_BUILD
)
1078 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
1081 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
1083 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
1084 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
1085 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
1086 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
1087 @touch rp-pppoe
/src
/stamp-h1
1089 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
1090 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
$(PARALLEL_BUILD
)
1093 -@
$(MAKE
) -C rp-pppoe
/src
clean
1094 @
rm -f rp-pppoe
/src
/pppoe-relay
1095 @
rm -f rp-pppoe
/src
/stamp-h1
1097 rp-pppoe-install
: rp-pppoe
1098 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
1099 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
1100 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
1101 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
1104 upnp
: nvram
$(BCMEX
) shared iptables
1107 libnfnetlink
/stamp-h1
:
1108 # tomatoraf.com, Victek
1109 # last sources is dated March 22,2014 from netfilter.org git
1110 # ./genconfig.sh and make with automake 1.13
1111 cd
$(TOP
)/libnfnetlink
&& CC
=$(CC
) STRIP
=$(STRIP
) \
1112 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1113 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1114 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
1115 touch libnfnetlink
/stamp-h1
1117 libnfnetlink
: libnfnetlink
/stamp-h1
1119 $(MAKE
) -C libnfnetlink
1121 libnfnetlink-install
:
1122 install -D libnfnetlink
/src
/.libs
/libnfnetlink.so
.0.2.0 $(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
1123 $(STRIP
) -s
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
1124 cd
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/ && \
1125 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
.0 && \
1126 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
1129 @cd miniupnpd
&& .
/genconfig.sh
--leasefile
--vendorcfg
1131 miniupnpd
: $(IPTABLES_TARGET
) miniupnpd-config
1133 $(MAKE
) -C miniupnpd
-f Makefile.linux
1136 -@
$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
1137 @
rm -f miniupnpd
/config.h
1140 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
1141 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
1146 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
1148 $(MAKE
) -C vsftpd
$(PARALLEL_BUILD
)
1150 vsftpd-install
: vsftpd
1151 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
1152 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
1154 ufsd-asus
: kernel_header kernel
1155 @
$(MAKE
) -C ufsd-asus
all
1157 ufsd-asus-install
: ufsd-asus
1158 @
$(MAKE
) -C ufsd-asus
install INSTALLDIR
=$(INSTALLDIR
)/ufsd-asus
1160 ufsd-netgear-install
:
1161 @
$(MAKE
) -C ufsd-netgear
install INSTALLDIR
=$(INSTALLDIR
)/ufsd-netgear
1165 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1166 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1167 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
1168 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
1169 --disable-ntfsprogs
--disable-crypto
--without-uuid \
1170 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
1172 ntfs-3g
: ntfs-3g
/Makefile
1173 @
$(MAKE
) -C ntfs-3g
$(PARALLEL_BUILD
)
1176 -@
$(MAKE
) -C ntfs-3g
clean
1177 @
rm -f ntfs-3g
/Makefile
1179 ntfs-3g-install
: ntfs-3g
1180 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1181 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1182 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
1183 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
1184 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
1186 libusb10
/Makefile
: libusb10
/Makefile.in
1187 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
1188 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
1190 libusb10
: libusb10
/Makefile
1193 libusb10-install
: libusb10
1194 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
1195 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
1198 -@
$(MAKE
) -C
$@
clean
1199 @
rm -rf libusb10
/Makefile
1201 libusb
/Makefile
: libusb
/Makefile.in
1202 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
1203 $(CONFIGURE
) --prefix=/usr \
1204 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
1205 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
1206 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
1208 libusb
: libusb10 libusb
/Makefile
1211 libusb-install
: libusb
1212 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
1213 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
1216 -@
$(MAKE
) -C
$@
clean
1217 @
rm -rf libusb
/Makefile
1219 usbmodeswitch
: libusb10
1220 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
1221 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
1222 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
1224 usbmodeswitchdb-install
:
1225 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
1226 # compress whitespace
1227 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
1229 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
1232 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
1233 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1234 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1235 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1236 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
1240 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections -DUSE_DHCP6SRV" \
1241 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1242 ac_cv_func_setpgrp_void
=yes \
1243 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
1244 -@
$(MAKE
) -C dhcpv6
clean
1247 dhcpv6
: dhcpv6
/stamp-h1
1249 @
$(MAKE
) -C dhcpv6 dhcp6c
1251 dhcpv6-install
: dhcpv6
1252 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1253 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1256 -@
$(MAKE
) -C dhcpv6
clean
1257 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
1265 @
$(MAKE
) -C samba-3.5
.8 $(PARALLEL_BUILD
)
1269 prebuilt
: shared libbcmcrypto
1273 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
1276 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
1277 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
1280 pptp-client-install
:
1281 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1282 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1285 accel-pptp
: pppd accel-pptp
/Makefile
1286 @
$(MAKE
) -C accel-pptp
1288 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
1289 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS) $(if $(TCONFIG_VPNC), -DTCONFIG_VPNC,)" \
1290 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
1293 -@
$(MAKE
) -C accel-pptp
clean
1294 @
rm -f accel-pptp
/Makefile
1296 accel-pptp-install
: accel-pptp
1297 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1298 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1301 cd pptpd
&& $(CONFIGURE
) --prefix=$(INSTALLDIR
)/pptpd
--enable-bcrelay \
1302 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) STRIP
=$(STRIP
)
1303 touch pptpd
/stamp-h1
1305 pptpd
: pptpd
/stamp-h1
1307 pptpd-install
: pptpd
1309 @
install -D pptpd
/pptpd
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1310 @
install -D pptpd
/bcrelay
$(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1311 @
install -D pptpd
/pptpctrl
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1312 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1313 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1314 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1317 -@
$(MAKE
) -C pptpd
clean
1318 rm -rf pptpd
/stamp-h1 pptpd
/.deps
1320 pppd
/Makefile
: pppd
/linux
/Makefile.top
1321 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
1325 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
1328 -@
$(MAKE
) -C pppd
clean
1329 @
rm -f pppd
/Makefile
1332 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1333 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1334 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1335 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1336 ifeq ($(TCONFIG_L2TP
),y
)
1337 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
1338 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
1342 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1343 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1346 @cd zebra
&& rm -f config.cache
&& \
1347 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1348 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1349 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1350 $(CONFIGURE
) --sysconfdir
=/etc \
1351 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
1352 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
1353 @touch zebra
/stamp-h1
1355 zebra
: zebra
/stamp-h1
1356 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
1359 -@
$(MAKE
) -C zebra
clean
1360 @
rm -f zebra
/stamp-h1
1362 zebra-install
: zebra
1363 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1364 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1365 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1366 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1367 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1368 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1372 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1373 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1374 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
1375 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1376 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1377 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1378 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1381 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
1383 xl2tpd-install
: xl2tpd
1384 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1385 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1389 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1390 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1395 # @-mkdir -p libnet/lib
1396 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1400 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1403 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1406 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1407 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1412 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1414 iproute2-install
: iproute2
1415 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1416 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1417 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1418 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1420 iproute2-3.x
: kernel_header iptables-1.4.x
1422 @
$(MAKE
) -C
$@ IPTABLES_DIR
=$(TOP
)/iptables-1.4.x KERNEL_INCLUDE
=$(TOP
)/kernel_header
/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1424 iproute2-3.x-install
: iproute2-3.x
1425 install -D iproute2-3.x
/tc
/tc
$(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/tc
1426 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/tc
1427 install -D iproute2-3.x
/ip
/ip
$(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/ip
1428 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/ip
1429 @if
[ -e iproute2-3.x
/tc
/m_xt.so
] ; then \
1430 install -D iproute2-3.x
/tc
/m_xt.so
$(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/m_xt.so
; \
1431 ln
-sf m_xt.so
$(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/m_ipt.so
; \
1432 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/*.so
; \
1436 -@
$(MAKE
) -C iproute2-3.x
clean
1437 -rm -f iproute2-3.x
/Config
1440 ntpclient
: nvram
$(BCMEX
) shared
1442 dropbear
: dropbear
/config.h
1444 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 $(PARALLEL_BUILD
)
1447 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1448 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1449 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1450 ln
-sf dropbearmulti dropbear
&& \
1451 ln
-sf dropbearmulti dropbearconvert
&& \
1452 ln
-sf dropbearmulti dropbearkey
&& \
1453 ln
-sf dropbearmulti dbclient
&& \
1454 ln
-sf dropbearmulti ssh
&& \
1455 ln
-sf dropbearmulti scp
1458 -@
$(MAKE
) -C dropbear
clean
1459 @
rm -f dropbear
/config.h
1463 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1464 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1465 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1466 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1467 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1468 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1469 @
$(MAKE
) -C dropbear
clean
1475 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1476 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1477 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1478 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1479 touch sqlite
/stamp-h1
1481 sqlite
: sqlite
/stamp-h1
1482 @
$(MAKE
) -C sqlite
all $(PARALLEL_BUILD
)
1485 -@
$(MAKE
) -C sqlite
clean
1486 @
rm -f sqlite
/stamp-h1
1488 sqlite-install
: sqlite
1490 ifeq ($(TCONFIG_NGINX
),y
)
1491 install -D sqlite
/.libs
/libsqlite3.so
.0.8.6 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1492 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1493 cd
$(INSTALLDIR
)/sqlite
/usr
/lib
/ && \
1494 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
.0 && \
1495 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
1498 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1500 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1501 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1503 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1504 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1506 FFMPEG_PROTOCOLS
:=file
1507 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1509 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
1510 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1512 ffmpeg
/stamp-h1
: zlib
1513 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1514 .
/configure
--enable-cross-compile
--arch
=$(ARCH
) --target_os
=linux \
1515 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1516 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1517 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1518 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1519 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1520 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1521 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1522 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1523 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1524 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1525 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1526 --extra-libs
="-L$(TOP)/zlib -lz" \
1527 --enable-zlib
--disable-debug
--prefix=''
1528 touch ffmpeg
/stamp-h1
1530 ffmpeg
: ffmpeg
/stamp-h1 zlib
1531 @
$(MAKE
) -C ffmpeg
all $(PARALLEL_BUILD
)
1534 -@
$(MAKE
) -C ffmpeg
clean
1535 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1537 ffmpeg-install
: ffmpeg
1539 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1540 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1541 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1542 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1543 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1544 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1545 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1550 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1551 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1552 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1553 touch libogg
/stamp-h1
1555 libogg
: libogg
/stamp-h1
1556 @
$(MAKE
) -C libogg
all $(PARALLEL_BUILD
)
1559 -@
$(MAKE
) -C libogg
clean
1560 @
rm -f libogg
/stamp-h1
1562 libogg-install
: libogg
1564 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1565 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1566 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1569 flac
/stamp-h1
: libogg
1571 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1572 CPPFLAGS
="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1573 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1574 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1575 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1576 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1579 flac
: flac
/stamp-h1 libogg
1580 @
$(MAKE
) -C flac
/src
/libFLAC
all $(PARALLEL_BUILD
)
1583 -@
$(MAKE
) -C flac
clean
1584 @
rm -f flac
/stamp-h1
1588 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1589 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1590 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1595 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1599 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
$(PARALLEL_BUILD
)
1600 install -d
$(TOP
)/jpeg
/staged
/include
1601 install -d
$(TOP
)/jpeg
/staged
/lib
1602 install -d
$(TOP
)/jpeg
/staged
/bin
1603 install -d
$(TOP
)/jpeg
/staged
/man
/man1
1604 @
$(MAKE
) -C jpeg LIBTOOL
="" prefix=$(TOP
)/jpeg
/staged
install
1605 install -D jpeg
/libjpeg.so
$(TOP
)/jpeg
/staged
/lib
/libjpeg.so
1606 rm -f
$(TOP
)/jpeg
/staged
/lib
/libjpeg.la
1609 -@
$(MAKE
) -C jpeg
clean
1610 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1615 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1616 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1617 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1619 ifeq ($(TCONFIG_NGINX
),y
)
1620 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1621 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1625 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1626 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1627 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1628 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1629 touch libexif
/stamp-h1
1631 libexif
: libexif
/stamp-h1
1632 @
$(MAKE
) -C libexif
all
1635 -@
$(MAKE
) -C libexif
clean
1636 @
rm -f libexif
/stamp-h1
1638 libexif-install
: libexif
1640 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1641 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1642 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1647 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC" LDSHAREDLIBC
="$(EXTRALDFLAGS)" \
1648 .
/configure
--shared
--prefix=/usr
--libdir=/usr
/lib
1652 @
$(MAKE
) -C zlib
all
1653 @
$(MAKE
) -C zlib DESTDIR
=$(TOP
)/zlib
/staged
install
1656 -@
$(MAKE
) -C zlib
clean
1657 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1662 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1663 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1664 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1665 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1667 ifeq ($(TCONFIG_BT
),y
)
1668 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1669 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1670 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1672 ifeq ($(TCONFIG_TOR
),y
)
1673 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1674 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1675 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1677 ifeq ($(TCONFIG_SNMP
),y
)
1678 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1679 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1680 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1683 libid3tag
/stamp-h1
: zlib
1685 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1686 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1687 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1688 --disable-debugging
--disable-profiling
1689 touch libid3tag
/stamp-h1
1691 libid3tag
: libid3tag
/stamp-h1 zlib
1692 @
$(MAKE
) -C libid3tag
all $(PARALLEL_BUILD
)
1695 -@
$(MAKE
) -C libid3tag
clean
1696 @
rm -f libid3tag
/stamp-h1
1698 libid3tag-install
: libid3tag
1700 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1701 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1702 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1705 libvorbis
/stamp-h1
: libogg
1707 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1708 CPPFLAGS
="-I$(TOP)/libogg/include" \
1709 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1710 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1711 --with-ogg-includes
="$(TOP)/libogg/include" \
1712 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1713 touch libvorbis
/stamp-h1
1715 libvorbis
: libvorbis
/stamp-h1
1716 @
$(MAKE
) -C libvorbis
/lib
all $(PARALLEL_BUILD
)
1719 -@
$(MAKE
) -C libvorbis
clean
1720 @
rm -f libvorbis
/stamp-h1
1722 libvorbis-install
: libvorbis
1724 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1725 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1726 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1729 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1731 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
$(PARALLEL_BUILD
)
1734 -@
$(MAKE
) -C minidlna
clean
1735 @
rm -f minidlna
/stamp-h1
1737 minidlna-install
: minidlan
1739 install -D minidlna
/minidlna
$(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1740 $(STRIP
) $(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1742 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1743 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1744 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1745 $(CONFIGURE
) --prefix=/usr
1747 igmpproxy
: igmpproxy
/src
/Makefile
1749 @
$(MAKE
) -C igmpproxy
/src
$(PARALLEL_BUILD
)
1751 igmpproxy-install
: igmpproxy
1752 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1753 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1756 -@
$(MAKE
) -C igmpproxy
/src
clean
1757 @
rm -f igmpproxy
/src
/Makefile
1760 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1761 PROGRAMS
=udevtrigger
1764 install -d
$(INSTALLDIR
)
1765 install -d
$(TARGETDIR
)
1766 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1769 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) CC
=$(CC
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1771 hotplug2-install
: hotplug2
1772 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1773 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1776 $(MAKE
) -C emf
$(BCMEX
)/emfconf CROSS
=$(CROSS_COMPILE
)
1778 emf
$(BCMEX
)-install:
1779 ifeq ($(TCONFIG_EMF
),y
)
1780 install -d
$(TARGETDIR
)
1781 $(MAKE
) -C emf
$(BCMEX
)/emfconf CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install
1785 -@
$(MAKE
) -C emf
$(BCMEX
)/emfconf
clean
1788 $(MAKE
) -C emf
$(BCMEX
)/igsconf CROSS
=$(CROSS_COMPILE
)
1791 ifeq ($(TCONFIG_EMF
),y
)
1792 install -d
$(TARGETDIR
)
1793 $(MAKE
) -C emf
$(BCMEX
)/igsconf CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install
1797 -@
$(MAKE
) -C emf
$(BCMEX
)/igsconf
clean
1799 wanuptime
: nvram
$(BCMEX
) shared
1801 @
$(MAKE
) -C wanuptime
1804 -@
$(MAKE
) -C wanuptime
clean
1807 install -D wanuptime
/wanuptime
$(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1808 $(STRIP
) $(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1811 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1812 CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1813 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1814 LOCKFILE
="/var/lock/ebtables" LOCKDIR
="/var/lock" \
1815 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_DIR
=$(LINUXDIR
) KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1817 ebtables-install
: ebtables
1818 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1820 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1821 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1822 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1824 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1825 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1826 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1827 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1829 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1830 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1831 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1834 -@
$(MAKE
) -C ebtables
clean
1837 spawn-fcgi
/stamp-h1
:
1838 cd spawn-fcgi
&& CC
=$(CC
) \
1839 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1840 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1841 ac_cv_func_malloc_0_nonnull
=yes \
1842 $(CONFIGURE
) --prefix=/usr
1843 touch spawn-fcgi
/stamp-h1
1845 spawn-fcgi
: spawn-fcgi
/stamp-h1
1846 @
$(MAKE
) -C spawn-fcgi
$(PARALLEL_BUILD
)
1849 -@
$(MAKE
) -C spawn-fcgi
clean
1850 rm -f spawn-fcgi
/stamp-h1
1852 spawn-fcgi-install
: spawn-fcgi
1853 install -d
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
1854 install spawn-fcgi
/src
/spawn-fcgi
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1855 $(STRIP
) -s
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1860 @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 \
1861 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 \
1862 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 \
1863 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 \
1864 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
1869 @
$(MAKE
) -C glib
$(PARALLEL_BUILD
)
1872 -@
$(MAKE
) -C glib
clean
1876 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1878 nocat
/stamp-h1
: glib-install
1882 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1885 echo
*** integrate glib to nocat installdir
1886 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1887 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1888 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1889 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1890 touch nocat
/stamp-h1
1892 nocat
: nocat
/stamp-h1
1893 @
$(MAKE
) -C nocat
$(PARALLEL_BUILD
)
1896 -@
$(MAKE
) -C nocat
clean
1897 rm -f nocat
/stamp-h1
1900 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1901 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1902 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1903 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1909 CC
=$(CC
) CXX
=$(HOST
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1910 $(CONFIGURE
) --prefix=/usr
--disable-dependency-tracking
--enable-utf8
--enable-unicode-properties
--disable-cpp
1911 @touch pcre
/stamp-h1
1912 [ -d pcre
/m4
] || mkdir pcre
/m4
1918 install -D pcre
/.libs
/libpcre.so
.1 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1919 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1920 install -D pcre
/.libs
/libpcreposix.so
.0.0.2 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1921 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1922 cd
$(INSTALLDIR
)/pcre
/usr
/lib
/ && \
1923 ln
-sf libpcre.so
.1.2.3 libpcre.so
.1 && \
1924 ln
-sf libpcreposix.so
.0.0.2 libpcreposix.so
.0
1927 ( if
[ -f pcre
/Makefile
]; then \
1928 $(MAKE
) -C pcre
clean; \
1929 rm -rf pcre
/stamp-h1
; \
1934 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1935 $(CONFIGURE
) --prefix=/usr
--without-python
--enable-static
--enable-shared
1938 libxml2
: libxml2
/stamp-h1
1939 @
$(MAKE
) -C libxml2
all $(PARALLEL_BUILD
)
1940 @
$(MAKE
) -C libxml2 DESTDIR
=$(TOP
)/libxml2
/staged
install
1942 libxml2-install
: libxml2
1944 install -D libxml2
/.libs
/libxml2.so
.2.9.1 $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1945 $(STRIP
) $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1946 cd
$(INSTALLDIR
)/libxml2
/usr
/lib
&& \
1947 ln
-sf libxml2.so
.2.9.1 libxml2.so
.2 && \
1948 ln
-sf libxml2.so
.2.9.1 libxml2.so
1951 -@
$(MAKE
) -C libxml2
clean
1952 @
rm -f libxml2
/stamp-h1
1953 @
rm -rf libxml2
/staged
1957 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1958 $(CONFIGURE
) --prefix=/usr
--enable-static
--enable-shared
1961 libpng
: libpng
/stamp-h1
1962 @
$(MAKE
) -C libpng
all $(PARALLEL_BUILD
)
1963 @
$(MAKE
) -C libpng DESTDIR
=$(TOP
)/libpng
/staged
install
1965 libpng-install
: libpng
1967 install -D libpng
/.libs
/libpng.so
.3.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1968 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1969 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1970 ln
-sf libpng.so
.3.51.0 libpng.so
&& \
1971 ln
-sf libpng.so
.3.51.0 libpng.so
.3
1972 install -D libpng
/.libs
/libpng12.so
.0.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1973 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1974 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1975 ln
-sf libpng12.so
.0.51.0 libpng12.so
&& \
1976 ln
-sf libpng12.so
.0.51.0 libpng12.so
.0
1979 -@
$(MAKE
) -C libpng
clean
1980 @
rm -f libpng
/stamp-h1
1981 @
rm -rf libpng
/staged
1983 php
/stamp-h1
: pcre zlib libiconv sqlite libxml2 libpng jpeg
1985 cd php
&& CC
=$(CC
) CXX
=$(ARCH
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1986 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" \
1987 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" \
1988 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" \
1989 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 -lstdc++" \
1990 PHP_FCGI_LIBXML_DIR
="$(TOP)/libxml2/staged/usr" \
1991 ac_cv_func_memcmp_working
=yes \
1992 cv_php_mbstring_stdarg
=yes \
1993 $(CONFIGURE
) --prefix=/usr \
1999 --with-config-file-path
=/etc \
2000 --with-config-file-scan-dir
=/etc
/php5 \
2001 --disable-short-tags \
2003 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
2007 --disable-calendar \
2017 --with-png-dir
="$(TOP)/libpng/staged/usr" \
2018 --with-jpeg-dir
="$(TOP)/jpeg/staged" \
2020 --with-iconv
="$(TOP)/libiconv/staged/usr" \
2021 --with-iconv-dir
="$(TOP)/libiconv/staged/usr" \
2030 --with-mysql-sock
="/var/run/mysqld.sock" \
2032 --without-pdo-pgsql \
2038 --enable-simplexml \
2045 --disable-tokenizer \
2047 --enable-xmlreader \
2048 --enable-xmlwriter \
2051 --with-libxml-dir
="$(TOP)/libxml2/staged/usr"
2059 -@
$(MAKE
) -C php
clean
2064 install -d
$(INSTALLDIR
)/php
/usr
/sbin
2065 install -D php
/sapi
/cli
/.libs
/php
$(INSTALLDIR
)/php
/usr
/sbin
/php-cli
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
2066 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
2067 install -D php
/sapi
/cgi
/.libs
/php-cgi
$(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
2068 cd
$(INSTALLDIR
)/php
/usr
/sbin
&& ln
-sf php-cgi php-fcgi
2069 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
2071 nginx
/stamp-h1
: openssl zlib pcre
2073 cd
$(TOP
)/nginx
&& .
/configure
--crossbuild
=Linux
::$(ARCH
) \
2075 --sbin-path
=/usr
/sbin \
2076 --conf-path
=/etc
/nginx
/nginx.conf \
2077 --error-log-path
=/tmp
/var
/log
/nginx
/error.log \
2078 --http-log-path
=/tmp
/var
/log
/nginx
/access.log \
2079 --pid-path
=/tmp
/var
/run
/nginx.pid \
2080 --lock-path
=/tmp
/var
/run
/nginx.lock.accept \
2081 --http-client-body-temp-path
=/tmp
/var
/lib
/nginx
/client \
2082 --http-fastcgi-temp-path
=/tmp
/var
/lib
/nginx
/fastcgi \
2083 --with-http_flv_module \
2084 --with-http_ssl_module \
2085 --with-http_gzip_static_module \
2086 --http-uwsgi-temp-path
=/tmp
/var
/lib
/nginx
/uwsgi \
2087 --http-scgi-temp-path
=/tmp
/var
/lib
/nginx
/scgi \
2088 --http-proxy-temp-path
=/tmp
/var
/lib
/nginx
/proxy \
2090 --with-ld-opt
="$(LDFLAGS) -L $(TOP)/pcre/.libs -L $(TOP)/zlib -L $(TOP)/openssl" \
2091 --with-cc-opt
="$(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) -I $(TOP)/openssl/include -I $(TOP)/openssl/include/openssl -I $(TOP)/pcre -I $(TOP)/zlib" \
2092 $(ADDITIONAL_MODULES
)
2094 nginx
: nginx
/stamp-h1
2099 -@
$(MAKE
) -C nginx
clean
2100 -@
rm -f nginx
/stamp-h1
2102 nginx-install
: nginx
2103 install -d
$(INSTALLDIR
)/nginx
/usr
/sbin
2104 install -D nginx
/objs
/nginx
$(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
&& chmod
755 $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
2105 $(STRIP
) $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
2107 libncurses
/stamp-h1
:
2108 cd libncurses
&& CC
=$(CC
) \
2109 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC" \
2110 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2112 $(CONFIGURE
) --prefix=/usr
--with-shared
--with-normal
--disable-debug
--without-ada
--without-manpages
--without-progs
--without-tests
2113 touch libncurses
/stamp-h1
2115 libncurses
: libncurses
/stamp-h1
2117 $(MAKE
) -C libncurses
$(PARALLEL_BUILD
)
2118 $(MAKE
) -C libncurses DESTDIR
=$(TOP
)/libncurses
/staged
install
2121 -@
$(MAKE
) -C libncurses
clean
2122 @
rm -f libncurses
/stamp-h1 libncurses
/Makefile
2123 @
rm -rf libncurses
/staged
2125 libncurses-install
: libncurses
2126 install -d
$(INSTALLDIR
)/libncurses
/usr
/lib
2127 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
2128 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/l
2129 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
2130 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/x
2131 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/l
/linux
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/l
2132 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/v
/vt100
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
2133 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/v
/vt220
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
2134 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/x
/xterm
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/x
2135 cd
$(INSTALLDIR
)/libncurses
/usr
/lib
&& ln
-sf ..
/share
/terminfo terminfo
2136 install libncurses
/lib
/libncurses.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libncurses.so
.5
2137 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libncurses.so
.5
2138 install libncurses
/lib
/libpanel.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libpanel.so
.5
2139 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libpanel.so
.5
2140 install libncurses
/lib
/libform.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libform.so
.5
2141 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libform.so
.5
2142 install libncurses
/lib
/libmenu.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libmenu.so
.5
2143 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libmenu.so
.5
2144 cd
$(INSTALLDIR
)/libncurses
/usr
/lib
/ && \
2145 ln
-sf libncurses.so
.5 libncurses.so
&& \
2146 ln
-sf libpanel.so
.5 libpanel.so
&& \
2147 ln
-sf libform.so
.5 libform.so
&& \
2148 ln
-sf libmenu.so
.5 libmenu.so
2150 mysql
/stamp-h1
: openssl zlib libncurses
2153 CFLAGS
="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 \
2154 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$(TOP)/zlib \
2155 -I$(TOP)/openssl/include -I$(TOP)/libncurses/include" \
2156 CPPFLAGS
="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 \
2157 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$(TOP)/zlib \
2158 -I$(TOP)/openssl/include -I$(TOP)/libncurses/include" \
2159 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/zlib/staged/usr/lib -L$(TOP)/libncurses/lib -fPIC -EL" \
2160 LIBS
="-lcrypt -lz -lstdc++ -lssl -lcrypto -lncurses" \
2161 $(CONFIGURE
) --host
=$(HOST
) --build
=x86_64-linux-gnu
--prefix=/usr \
2162 --without-debug
--without-docs
--without-man
--with-charset
=utf8
--with-extra-charsets
=ascii
,latin1
,gb2312
,gbk \
2163 --enable-shared
--disable-static \
2164 --without-mysqlmanager \
2170 --enable-assembler \
2171 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
2172 ac_cv_c_stack_direction
=-1
2173 cd mysql
&& tar xvfz .host.tgz
2174 # Update time of config.status to avoid run 'config.status --recheck'
2175 touch mysql
/config.status
2176 # Update time of Makefile to avoid regenerate it when do make
2178 -find mysql
-name Makefile
-print | xargs
-i touch
{}
2179 touch mysql
/stamp-h1
2181 mysql
: mysql
/stamp-h1
2184 @
$(MAKE
) -C mysql DESTDIR
=$(TOP
)/mysql
/staged
install
2187 -@
$(MAKE
) -C mysql
clean
2188 -@
rm -f mysql
/stamp-h1
2189 -@
rm -rf mysql
/staged mysql
/host
2192 install -d
$(INSTALLDIR
)/mysql
/usr
/bin
2193 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
2194 install -d
$(INSTALLDIR
)/mysql
/usr
/libexec
2195 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2196 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/plugin
2197 install -d
$(INSTALLDIR
)/mysql
/usr
/share
2198 install -d
$(INSTALLDIR
)/mysql
/usr
/share
/mysql
2199 install -D
-m
755 mysql
/mycheck
$(INSTALLDIR
)/mysql
/usr
/bin
2200 install -D
-m
755 mysql
/staged
/usr
/bin
/my_print_defaults
$(INSTALLDIR
)/mysql
/usr
/bin
2201 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/my_print_defaults
2202 install -D
-m
755 mysql
/staged
/usr
/bin
/myisamchk
$(INSTALLDIR
)/mysql
/usr
/bin
2203 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/myisamchk
2204 install -D
-m
755 mysql
/staged
/usr
/bin
/mysql
$(INSTALLDIR
)/mysql
/usr
/bin
2205 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysql
2206 install -D
-m
755 mysql
/staged
/usr
/bin
/mysql_install_db
$(INSTALLDIR
)/mysql
/usr
/bin
2207 install -D
-m
755 mysql
/staged
/usr
/bin
/mysqladmin
$(INSTALLDIR
)/mysql
/usr
/bin
2208 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysqladmin
2209 install -D
-m
755 mysql
/staged
/usr
/bin
/mysqldump
$(INSTALLDIR
)/mysql
/usr
/bin
2210 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysqldump
2211 install -D
-m
755 mysql
/staged
/usr
/libexec
/mysqld
$(INSTALLDIR
)/mysql
/usr
/libexec
2212 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/libexec
/mysqld
2213 cd
$(INSTALLDIR
)/mysql
/usr
/bin
&& ln
-sf ..
/libexec
/mysqld mysqld
2214 # install -D -m 755 mysql/staged/usr/bin/mysqld_safe $(INSTALLDIR)/mysql/usr/bin
2215 install -D
-m
755 mysql
/staged
/usr
/lib
/mysql
/libmysqlclient.so
.16.0.0 $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2216 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/libmysqlclient.so
.16.0.0
2217 -@cd
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
&& \
2218 ln
-sf libmysqlclient.so
.16.0.0 libmysqlclient.so
.16 && \
2219 ln
-sf libmysqlclient.so
.16.0.0 libmysqlclient.so
2220 install -D
-m
755 mysql
/staged
/usr
/lib
/mysql
/libmysqlclient_r.so
.16.0.0 $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2221 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/libmysqlclient_r.so
.16.0.0
2222 -@cd
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
&& \
2223 ln
-sf libmysqlclient_r.so
.16.0.0 libmysqlclient_r.so
.16 && \
2224 ln
-sf libmysqlclient_r.so
.16.0.0 libmysqlclient_r.so
2225 # -@cd $(INSTALLDIR)/mysql/usr/lib/mysql/plugin && cp -arfpu $(TOP)/mysql/staged/usr/lib/mysql/plugin/* . && \
2226 # rm -f *.la *.a && \
2228 -@cd
$(INSTALLDIR
)/mysql
/usr
/share
/mysql
&& \
2229 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/english .
&& \
2230 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/fill_help_tables.sql .
&& \
2231 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/mysql_system_tables.sql .
&& \
2232 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/mysql_system_tables_data.sql .
2236 CFLAGS
="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
2240 @
$(MAKE
) -C lzo
$(PARALLEL_BUILD
)
2243 -@
$(MAKE
) -C lzo
clean
2247 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
2248 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
2249 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& \
2250 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
.2 && \
2251 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
2253 openvpn
/.conf
: openssl lzo
2254 cd openvpn
&& .
/autogen.sh
&& \
2255 CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2256 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
2257 CPPFLAGS
="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
2258 $(CONFIGURE
) --prefix= \
2259 --with-crypto-library
=openssl \
2260 --disable-debug
--disable-plugin-auth-pam
--disable-plugin-down-root
--with-plugindir
=/lib
--enable-management
--disable-small \
2261 --disable-selinux
--disable-socks
--enable-password-save \
2262 OPENSSL_SSL_CFLAGS
="-I$(TOP)/openssl/include" \
2263 OPENSSL_SSL_LIBS
="-L$(TOP)/openssl -lssl" \
2264 ac_cv_lib_resolv_gethostbyname
=no
2267 openvpn
: openvpn
/.conf
2268 @
$(MAKE
) -C openvpn
$(PARALLEL_BUILD
)
2271 -@
$(MAKE
) -C openvpn
clean
2272 @
rm -f openvpn
/.conf
2274 openvpn-install
: openvpn
2275 install -D openvpn
/src
/openvpn
/.libs
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2276 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2277 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2279 openvpn_plugin_auth_nvram
: nvram
$(BCMEX
)
2282 nano
/stamp-h1
: libncurses
2283 cd nano
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2284 CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -I$(TOP)/libncurses/staged/usr/include -ffunction-sections -fdata-sections" \
2285 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -I$(TOP)/libncurses/staged/usr/include -ffunction-sections -fdata-sections" \
2286 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libncurses/staged/usr/lib -fPIC" \
2287 ac_cv_lib_ncursesw_get_wch
=no \
2288 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-all
--without-libiconv-prefix
--disable-utf8
2292 @
$(MAKE
) -C nano
$(PARALLEL_BUILD
)
2295 -@
$(MAKE
) -C nano
clean
2296 @
rm -f nano
/stamp-h1 nano
/Makefile nano
/src
/Makefile
2299 install -d
$(INSTALLDIR
)/nano
/usr
/sbin
2300 install -D nano
/src
/nano
$(INSTALLDIR
)/nano
/usr
/sbin
/nano
2301 $(STRIP
) -s
$(INSTALLDIR
)/nano
/usr
/sbin
/nano
2303 libcurl
/stamp-h1
: zlib openssl
2304 cd libcurl
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2305 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -I$(TOP)/zlib" \
2306 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2307 $(CONFIGURE
) --prefix=/usr
--disable-thread
--enable-shared
--enable-static \
2308 --enable-ares
--enable-cookies
--enable-crypto-auth
--enable-nonblocking \
2309 --enable-file
--enable-ftp
--enable-http
--enable-ipv6
--enable-tftp \
2310 --disable-nls
--disable-ares
--disable-dict
--disable-debug
--disable-gopher \
2311 --disable-ldap
--disable-manual
--disable-telnet
--disable-verbose \
2312 --with-random
="/dev/urandom" --with-ssl
="$(TOP)/openssl" \
2313 --without-gnutls
--without-krb4
--without-libidn \
2314 --with-linux-headers
=$(LINUXDIR
)/include \
2315 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2316 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
2317 touch libcurl
/stamp-h1
2319 libcurl
: libcurl
/stamp-h1
2320 @
$(MAKE
) -C libcurl
$(PARALLEL_BUILD
)
2323 -@
$(MAKE
) -C libcurl
clean
2324 @
rm -f libcurl
/stamp-h1 libcurl
/Makefile
2326 libcurl-install
: libcurl
2327 install -d
$(INSTALLDIR
)/libcurl
/usr
/lib
2328 install -D libcurl
/lib
/.libs
/libcurl.so
.4.3.0 $(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2329 $(STRIP
) -s
$(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2330 cd
$(INSTALLDIR
)/libcurl
/usr
/lib
/ && \
2331 ln
-sf libcurl.so
.4.3.0 libcurl.so
.4 && \
2332 ln
-sf libcurl.so
.4.3.0 libcurl.so
2335 cd libevent
&& CC
=$(CC
) \
2336 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2337 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2339 touch libevent
/stamp-h1
2341 libevent
: libevent
/stamp-h1
2343 $(MAKE
) -C libevent
$(PARALLEL_BUILD
)
2344 $(MAKE
) -C libevent DESTDIR
=$(TOP
)/libevent
/staged
install
2347 -@
$(MAKE
) -C libevent
clean
2348 @
rm -f libevent
/stamp-h1 libevent
/Makefile
2349 @
rm -rf libevent
/staged
2351 libevent-install
: libevent
2352 install -d
$(INSTALLDIR
)/libevent
/usr
/lib
2353 install libevent
/.libs
/libevent-2.0.so
.5.1.9 $(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2354 $(STRIP
) -s
$(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2357 cd libiconv
&& CC
=$(CC
) \
2358 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2359 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2360 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-static
--enable-shared
2361 touch libiconv
/stamp-h1
2363 libiconv
: libiconv
/stamp-h1
2365 $(MAKE
) -C libiconv
$(PARALLEL_BUILD
)
2366 $(MAKE
) -C libiconv DESTDIR
=$(TOP
)/libiconv
/staged
install
2369 -@
$(MAKE
) -C libiconv
clean
2370 @
rm -rf libiconv
/stamp-h1 libiconv
/Makefile
2371 @
rm -rf libiconv
/staged
2373 libiconv-install
: libiconv
2374 install -d
$(INSTALLDIR
)/libiconv
/usr
/lib
2375 install libiconv
/lib
/.libs
/libiconv.so
.2.5.1 $(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2376 $(STRIP
) -s
$(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2377 cd
$(INSTALLDIR
)/libiconv
/usr
/lib
/ && \
2378 ln
-sf libiconv.so
.2.5.1 libiconv.so
.2 && \
2379 ln
-sf libiconv.so
.2.5.1 libiconv.so
2381 transmission
/stamp-h1
: openssl libcurl libevent zlib
2382 cd transmission
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2384 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2385 --param large-function-growth=800 --param max-inline-insns-single=3000 \
2386 -ffunction-sections -fdata-sections" \
2387 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC \
2388 -L$(TOP)/zlib -L$(TOP)/openssl -L$(TOP)/libcurl/lib/.libs -L$(TOP)/libevent/.libs" \
2390 $(CONFIGURE
) --target
=$(HOST
) --host
=$(HOST
) --build
=x86_64-linux-gnu
--prefix=/usr
--disable-nls \
2391 --enable-lightweight
--enable-largefile
--enable-utp
--without-gtk \
2392 LIBCURL_CFLAGS
="-I$(TOP)/libcurl/include" \
2393 LIBCURL_LDFLAGS
="-L$(TOP)/libcurl/lib/.libs/" \
2394 LIBCURL_LIBS
="-lcurl" \
2395 LIBEVENT_CFLAGS
="-I$(TOP)/libevent/include" \
2396 LIBEVENT_LDFLAGS
="-L$(TOP)/libevent/.libs" \
2397 LIBEVENT_LIBS
="-levent" \
2398 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2399 OPENSSL_LDFLAGS
="-L$(TOP)/openssl" \
2400 OPENSSL_LIBS
="-lcrypto -lssl" \
2401 ZLIB_CFLAGS
="-I$(TOP)/zlib" \
2402 ZLIB_LDFLAGS
="-L$(TOP)/zlib" \
2404 touch transmission
/stamp-h1
2406 transmission
: transmission
/stamp-h1
2408 $(MAKE
) -C transmission
$(PARALLEL_BUILD
)
2411 -@
$(MAKE
) -C transmission
clean
2412 @
rm -f transmission
/stamp-h1 transmission
/Makefile
2414 transmission-install
: transmission
2415 $(MAKE
) -C transmission DESTDIR
=$(INSTALLDIR
)/transmission install-strip
2416 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/share
/man
2417 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-cli
2418 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-show
2419 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-edit
2420 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-create
2421 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-daemon
2422 ifeq ($(TCONFIG_TR_EXTRAS
),y
)
2423 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2425 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2431 btgui-install
: btgui
2432 install -d
$(INSTALLDIR
)/btgui
/usr
/bin
2433 install -D transmission
/btcheck
$(INSTALLDIR
)/btgui
/usr
/bin
/btcheck
2435 libnfsidmap
/stamp-h1
:
2437 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2438 ac_cv_func_malloc_0_nonnull
=yes \
2439 ac_cv_func_realloc_0_nonnull
=yes \
2440 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
2441 touch libnfsidmap
/stamp-h1
2443 libnfsidmap
: libnfsidmap
/stamp-h1
2445 $(MAKE
) -C libnfsidmap
$(PARALLEL_BUILD
)
2448 -@
$(MAKE
) -C libnfsidmap
clean
2449 @
rm -f libnfsidmap
/stamp-h1
2450 @
rm -rf libnfsidmap
/staged
2452 libnfsidmap-install
: libnfsidmap
2453 install -d
$(TOP
)/libnfsidmap
/staged
2454 $(MAKE
) -C libnfsidmap DESTDIR
=$(TOP
)/libnfsidmap
/staged
install
2458 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2459 $(MAKE
) -C portmap CC
=$(CC
) AR
=$(AR
) LD
=$(LD
) RANLIB
=$(RANLIB
) RPCUSER
="nobody"
2460 touch portmap
/stamp-h1
2462 portmap
: portmap
/stamp-h1
2464 $(MAKE
) -C portmap
$(PARALLEL_BUILD
)
2467 -@
$(MAKE
) -C portmap
clean
2468 @
rm -f portmap
/stamp-h1
2470 portmap-install
: portmap
2471 install -d
$(INSTALLDIR
)/portmap
/usr
/sbin
2472 install -D portmap
/portmap
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2473 $(STRIP
) -s
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2477 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2478 $(CONFIGURE
) --prefix=$(TOP
)/e2fsprogs
/staged
--enable-shared
--enable-static
2479 touch e2fsprogs
/stamp-h1
2481 e2fsprogs
: e2fsprogs
/stamp-h1
2483 $(MAKE
) -C e2fsprogs
$(PARALLEL_BUILD
)
2486 -@
$(MAKE
) -C e2fsprogs
clean
2487 @
rm -f e2fsprogs
/stamp-h1
2488 @
rm -f e2fsprogs
/Makefile
2489 @
rm -rf e2fsprogs
/staged
2491 nfs-utils
/stamp-h1
: libevent-install e2fsprogs portmap libnfsidmap-install
2492 cd nfs-utils
&& STRIP
=$(STRIP
) \
2493 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2494 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
2495 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
2496 LDFLAGS
="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
2497 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2498 ac_cv_func_malloc_0_nonnull
=yes \
2499 ac_cv_func_realloc_0_nonnull
=yes \
2500 $(CONFIGURE
) --disable-gss
--without-tcp-wrappers
--enable-static
--enable-shared \
2501 --enable-nfsv4
--enable-nfsv3
2502 touch nfs-utils
/stamp-h1
2504 nfs-utils
: nfs-utils
/stamp-h1
2506 $(MAKE
) -C nfs-utils
$(PARALLEL_BUILD
)
2509 -@
$(MAKE
) -C nfs-utils
clean
2510 @
rm -f nfs-utils
/stamp-h1
2512 nfs-utils-install
: nfs-utils
2513 install -d
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
2514 install -D nfs-utils
/utils
/mount
/mount.nfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2515 install -D nfs-utils
/utils
/nfsd
/nfsd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2516 install -D nfs-utils
/utils
/showmount
/showmount
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2517 install -D nfs-utils
/utils
/exportfs
/exportfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2518 install -D nfs-utils
/utils
/statd
/statd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2519 install -D nfs-utils
/utils
/mountd
/mountd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2520 install -D nfs-utils
/nfs.rc
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfs.rc
2521 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2522 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2523 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2524 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2525 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2526 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2528 tinc
/stamp-h1
: openssl zlib lzo
2529 @cd tinc
&& autoreconf
-fsi
&& \
2530 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
2531 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
2532 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2536 --localstatedir
=/var \
2537 --with-zlib-include
="$(TOP)/zlib" \
2538 --with-zlib-lib
="$(TOP)/zlib" \
2539 --with-lzo-include
="$(TOP)/lzo/include" \
2540 --with-lzo-lib
="$(TOP)/lzo/src/.libs" \
2541 --with-openssl-include
="$(TOP)/openssl/include" \
2542 --with-openssl-lib
="$(TOP)/openssl" \
2545 @touch tinc
/stamp-h1
2549 @
$(MAKE
) -C tinc LIBS
="-lcrypto $(TOP)/zlib/libz.a -llzo2" $(PARALLEL_BUILD
)
2552 -@
$(MAKE
) -C tinc
clean
2553 @
rm -f tinc
/stamp-h1
2556 install -D tinc
/src
/tinc
$(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2557 install -D tinc
/src
/tincd
$(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2558 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2559 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2563 CFLAGS
="-Os -Wall --host=$(HOST) --target=$(HOST) $(EXTRACFLAGS)" \
2565 chmod
0755 sd-idle
/sd-idle
2566 touch sd-idle
/stamp-h1
2569 -@
$(MAKE
) -C sd-idle
clean
2570 @
rm -f sd-idle
/stamp-h1
2572 sd-idle-install
: sd-idle
/stamp-h1
2573 install -d
$(INSTALLDIR
)/sd-idle
/usr
/bin
2574 install -D sd-idle
/sd-idle
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2575 $(STRIP
) -s
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2579 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2580 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
2581 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
2582 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
2583 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
2584 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
2585 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
2586 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
2587 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
2595 -@
$(MAKE
) -C snmp
clean
2596 @
rm -f snmp
/stamp-h1
2599 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2600 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2603 cd apcupsd
&& touch autoconf
/variables.mak
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2604 $(MAKE
) configure
&& \
2605 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2606 LDFLAGS
="-L$(TOOLCHAIN)/lib -ffunction-sections -fdata-sections" \
2607 $(CONFIGURE
) --prefix=/usr
--without-x
--enable-usb
--disable-pcnet
--enable-cgi \
2608 --disable-lgd
--enable-net
--sysconfdir
=/usr
/local
/apcupsd
--bindir=/bin \
2609 --disable-dumb
--disable-snmp
--disable-net-snmp
--with-cgi-bin
=/www
/apcupsd
--with-serial-dev
=
2610 touch apcupsd
/stamp-h1
2612 apcupsd
: apcupsd
/stamp-h1
2613 $(MAKE
) -C apcupsd
$(PARALLEL_BUILD
)
2616 -@
$(MAKE
) -C apcupsd
clean
2617 @
rm -f apcupsd
/stamp-h1
2618 @
rm -f apcupsd
/config
*
2620 apcupsd-install
: apcupsd
2621 $(MAKE
) -C apcupsd DESTDIR
=$(INSTALLDIR
)/apcupsd
install
2622 @
rm -rf
$(INSTALLDIR
)/apcupsd
/sbin
/apctest
2623 @
rm -rf
$(INSTALLDIR
)/apcupsd
/www
/apcupsd
/ups
*.cgi
2624 $(STRIP
) $(INSTALLDIR
)/apcupsd
/sbin
/*
2625 $(STRIP
) $(INSTALLDIR
)/apcupsd
/www
/apcupsd
/*
2628 cd
$(TOP
)/libsodium
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2629 $(CONFIGURE
) --prefix=/usr
--disable-ssp
--enable-minimal
2630 touch libsodium
/stamp-h1
2632 libsodium
: libsodium
/stamp-h1
2633 $(MAKE
) -C libsodium
$(PARALLEL_BUILD
)
2635 libsodium-install
: libsodium
2636 install -d
$(INSTALLDIR
)/libsodium
/usr
/lib
2637 install -D libsodium
/src
/libsodium
/.libs
/libsodium.so
.13.0.2 $(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.2
2638 $(STRIP
) -s
$(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.13.0.2
2639 cd
$(INSTALLDIR
)/libsodium
/usr
/lib
/ && \
2640 ln
-sf libsodium.so
.13.0.2 libsodium.so
.13 && \
2641 ln
-sf libsodium.so
.13.0.2 libsodium.so
2644 -$(MAKE
) -C libsodium
clean
2645 @
rm -rf libsodium
/stamp-h1
2647 dnscrypt
/stamp-h1
: libsodium
2648 cd
$(TOP
)/dnscrypt
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2649 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2650 CPPFLAGS
="-I$(TOP)/libsodium/src/libsodium/include" \
2651 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libsodium/src/libsodium/.libs" \
2652 $(CONFIGURE
) --prefix=/usr
--disable-ssp
2653 touch dnscrypt
/stamp-h1
2655 dnscrypt
: dnscrypt
/stamp-h1
2656 $(MAKE
) -C dnscrypt
$(PARALLEL_BUILD
)
2658 dnscrypt-install
: dnscrypt
2659 install -D dnscrypt
/src
/proxy
/.libs
/dnscrypt-proxy
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2660 install -D dnscrypt
/src
/hostip
/.libs
/hostip
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2661 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2662 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2665 -@
$(MAKE
) -C dnscrypt
clean
2666 @
rm -rf dnscrypt
/stamp-h1 dnscrypt
/src
/dnscrypt-proxy
/.deps dnscrypt
/Makefile
2668 tor
/stamp-h1
: openssl zlib libevent
2669 cd
$(TOP
)/tor
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2670 CFLAGS
="-O2 -Wall $(EXTRACFLAGS)" \
2671 $(CONFIGURE
) --prefix=/usr
--with-libevent-dir
=$(TOP
)/libevent
/staged
/usr
/local \
2672 --with-openssl-dir
=$(TOP
)/openssl
--with-zlib-dir
=$(TOP
)/zlib \
2677 $(MAKE
) -C tor
$(PARALLEL_BUILD
)
2680 install -D tor
/src
/or
/tor
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2681 $(STRIP
) -s
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2684 -@
$(MAKE
) -C tor
clean
2685 @
rm -rf tor
/stamp-h1 tor
/Makefile
2689 $(MAKE
) -C udpxy CFLAGS
="-Os -Wall --host=$(HOST) --target=$(HOST) $(EXTRACFLAGS)" \
2690 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections"
2691 touch udpxy
/stamp-h1
2694 -@
$(MAKE
) -C udpxy
clean
2695 @
rm -f udpxy
/stamp-h1
2697 udpxy-install
: udpxy
/stamp-h1
2698 install -d
$(INSTALLDIR
)/udpxy
/usr
/bin
2699 install -D udpxy
/udpxy
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2700 $(STRIP
) -s
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2703 $(MAKE
) -C mdadm
$(PARALLEL_BUILD
)
2705 mdadm-install
: mdadm
2706 install -D mdadm
/mdadm
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2707 $(STRIP
) -s
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2710 -@
$(MAKE
) -C mdadm
clean
2713 $(MAKE
) -C ipset binaries
2715 ipset-install
: ipset
2716 install -D ipset
/ipset
$(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2717 install -d
$(INSTALLDIR
)/ipset
/usr
/lib
/
2718 install ipset
/*.so
$(INSTALLDIR
)/ipset
/usr
/lib
/
2719 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/lib
/*.so
2720 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2723 -@
$(MAKE
) -C ipset
clean
2726 @
$(MAKE
) -C comgt CC
=$(CC
) CFLAGS
="$(EXTRACFLAGS)" LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" comgt
2728 comgt-install
: comgt
2729 install -D comgt
/comgt
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2730 cd
$(INSTALLDIR
)/comgt
/usr
/sbin
/ && \
2732 $(STRIP
) -s
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2733 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/gcom
2734 @cp
-f comgt
/gcom
/* $(TARGETDIR
)/rom
/etc
/gcom
/
2737 -@
$(MAKE
) -C comgt
clean
2744 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
2748 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
2751 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
2754 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
2759 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
2761 .PHONY
: all clean distclean mrproper
install package image
2762 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
2763 .PHONY
: dummy libnet libpcap