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_TUXERA
),y
)
170 ifeq ($(TCONFIG_UFSDA
),y
)
171 obj-
$(TCONFIG_NTFS
) += ufsd-asus
173 ifeq ($(TCONFIG_UFSDN
),y
)
174 obj-
$(TCONFIG_NTFS
) += ufsd-netgear
179 obj-
$(TCONFIG_NTFS
) += ntfs-3g
181 obj-
$(TCONFIG_EBTABLES
) += ebtables
182 #obj-$(TCONFIG_IPV6) += libdaemon
183 #obj-$(TCONFIG_IPV6) += radvd
184 obj-
$(TCONFIG_IPV6
) += dhcpv6
186 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
187 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
188 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
189 obj-
$(TCONFIG_MEDIA_SERVER
) += libiconv
190 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
191 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
192 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
193 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
194 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
195 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
196 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
197 MEDIA_SERVER_STATIC
=y
198 #MEDIA_SERVER_STATIC :=
200 obj-y
+= libnfnetlink
203 obj-
$(CONFIG_LINUX26
) += libmnl
204 obj-
$(CONFIG_LINUX26
) += ipset
208 # configurable packages
210 obj-
$(TCONFIG_L2TP
) += xl2tpd
211 obj-
$(TCONFIG_PPTP
) += accel-pptp
212 obj-
$(TCONFIG_PPTPD
) += pptpd
213 obj-
$(TCONFIG_HTTPS
) += openssl
214 obj-
$(TCONFIG_SSH
) += dropbear
215 #obj-$(TCONFIG_ZEBRA) += zebra
216 # obj-$(TCONFIG_IPP2P) += ipp2p
217 obj-
$(TCONFIG_LZO
) += lzo
218 obj-
$(TCONFIG_OPENVPN
) += openvpn
219 obj-
$(TCONFIG_OPENVPN
) += openvpn_plugin_auth_nvram
220 obj-
$(TCONFIG_TINC
) += tinc
221 obj-
$(TCONFIG_EMF
) += emf
222 obj-
$(TCONFIG_EMF
) += igs
225 # additional modules for nginx
226 ifeq (obj-
$(TCONFIG_NGINX
),y
)
227 ifndef ($(ADDITIONAL_MODULES
))
230 ifeq ($(TCONFIG_IPV6
),y
)
231 ADDITIONAL_MODULES
+= --with-ipv6
235 obj-
$(TCONFIG_NGINX
) += libncurses
236 obj-
$(TCONFIG_NGINX
) += mysql
237 obj-
$(TCONFIG_NGINX
) += openssl
238 obj-
$(TCONFIG_NGINX
) += spawn-fcgi
239 obj-
$(TCONFIG_NGINX
) += pcre
240 obj-
$(TCONFIG_NGINX
) += sqlite
241 obj-
$(TCONFIG_NGINX
) += libiconv
242 obj-
$(TCONFIG_NGINX
) += libxml2
243 obj-
$(TCONFIG_NGINX
) += libpng
244 obj-
$(TCONFIG_NGINX
) += jpeg
245 obj-
$(TCONFIG_NGINX
) += php
246 obj-
$(TCONFIG_NGINX
) += nginx
248 obj-
$(TCONFIG_NANO
) += libncurses
249 obj-
$(TCONFIG_NANO
) += nano
251 obj-
$(TCONFIG_BBT
) += openssl
252 obj-
$(TCONFIG_BBT
) += libevent
253 obj-
$(TCONFIG_BBT
) += libcurl
254 obj-
$(TCONFIG_BBT
) += transmission
255 obj-
$(TCONFIG_BT
) += btgui
256 obj-
$(TCONFIG_BBT
) += zlib
257 #obj-$(TCONFIG_BBT) += libiconv
259 obj-
$(CONFIG_LINUX26
) += hotplug2
260 obj-
$(CONFIG_LINUX26
) += udevtrigger
262 ifeq ($(TCONFIG_OPENVPN
),y
)
263 export FULL_OPENSSL
:= y
265 ifeq ($(TCONFIG_FTP_SSL
),y
)
266 export FULL_OPENSSL
:= y
268 ifeq ($(TCONFIG_BBT
),y
)
269 export FULL_OPENSSL
:= y
271 ifeq ($(TCONFIG_TOR
),y
)
272 export FULL_OPENSSL
:= y
274 ifeq ($(TCONFIG_TOR
),y
)
275 export FULL_OPENSSL
:= y
277 ifeq ($(TCONFIG_TINC
),y
)
278 export FULL_OPENSSL
:= y
290 ifeq ($(TCONFIG_IPV6
),y
)
291 export TCONFIG_IPV6
:= y
292 IPTABLES_IPV6_OPT
:= --enable-ipv6
295 IPTABLES_IPV6_OPT
:= --disable-ipv6
299 # Specify iptables path and target for miniupnpd
300 ifeq ($(TCONFIG_BCMARM
),y
)
301 IPTABLESPATH
=$(TOP
)/iptables-1.4.x
302 IPTABLES_TARGET
= iptables-1.4.x
303 IPROUTE_TARGET
= iproute2-3.x
305 IPTABLESPATH
=$(TOP
)/iptables
306 IPTABLES_TARGET
= iptables
307 IPROUTE_TARGET
= iproute2
310 export IPTABLES_TARGET
311 export IPROUTE_TARGET
313 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
314 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
316 ifeq ($(TCONFIG_BCMARM
),y
)
319 export PLATFORM LIBDIR USRLIBDIR LINUX_VERSION
321 WLAN_ComponentsInUse
:= bcmwifi clm ppr olpc
322 include ..
/..
/src-rt-6.x
.4708/makefiles
/WLAN_Common.mk
323 export BASEDIR
:= $(WLAN_TreeBaseA
)
324 export EXTRALDFLAGS
= -lgcc_s
325 export EXTRALDFLAGS2
= -L
$(TOP
)/nvram
$(BCMEX
) -lnvram
-L
$(TOP
)/shared
-lshared
327 export LD_LIBRARY_PATH
:= $(SRCBASE
)/toolchains
/hndtools-arm-linux-2.6
.36-uclibc-4.5
.3/lib
328 ifeq (2_6_36
,$(LINUX_VERSION
))
329 export LINUXDIR
:= $(BASEDIR
)/src-rt-6.x
.4708/linux
/linux-2.6
.36
330 export KBUILD_VERBOSE
:= 1
331 export BUILD_MFG
:= 0
333 SUBMAKE_SETTINGS
= SRCBASE
=$(SRCBASE
) BASEDIR
=$(BASEDIR
)
334 SUBMAKE_SETTINGS
+= ARCH
=$(ARCH
)
336 export OPTCFLAGS
= -O2
337 WLCFGDIR
=$(SRCBASE
)/wl
/config
339 export CFLAGS
+= -D__CONFIG_EMF__
341 ROOT_IMG
:= target.squashfs
347 ifeq ($(TCONFIG_BCMARM
),y
)
348 obj-prelibs
=$(filter nvram
$(BCMEX
) libbcmcrypto shared netconf libupnp libz libbcm
, $(obj-y
))
349 obj-postlibs
:= $(filter-out $(obj-prelibs
), $(obj-y
))
352 ifeq ($(TCONFIG_BCMWL6
), y
)
353 include ..
/..
/$(SRCBASE
)/makefiles
/WLAN_Common.mk
360 all: clean-build libc
$(obj-y
) kernel
363 kernel
: $(LINUXDIR
)/.config
366 ifneq ($(TCONFIG_BCMARM
),y
)
367 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
368 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
370 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
371 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
373 ifeq ($(CONFIG_LINUX26
),y
)
374 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
) $(PARALLEL_BUILD
)
376 else # TCONFIG_BCMARM
377 $(MAKE
) compressed-clean
#shibby
378 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |\
379 $(MAKE
) -C
${LINUXDIR} -f
- $(SUBMAKE_SETTINGS
) zImage
380 +$(MAKE
) CONFIG_SQUASHFS
=$(CONFIG_SQUASHFS
) -C
$(SRCBASE
)/router
/compressed ARCH
=$(ARCH
)
382 $(if
$(shell grep
"CONFIG_MODULES=y" ${LINUXDIR}/.config
), \
383 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |
$(MAKE
) -C
${LINUXDIR} -f
- $(SUBMAKE_SETTINGS
) MFG_WAR
=1 zImage
; \
384 (echo
'.NOTPARALLEL:' ; cat
${LINUXDIR}/Makefile
) |
$(MAKE
) -C
${LINUXDIR} -f
- ARCH
=$(ARCH
) modules
)
385 # Preserve the debug versions of these and strip for release
386 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/vmlinux
)
387 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/wl
/wl.ko
)
388 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/et
/et.ko
)
389 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/ctf
/ctf.ko
)
390 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/bcm57xx
/bcm57xx.ko
)
391 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/emf
/emf.ko
)
392 $(call STRIP_DEBUG_SYMBOLS
,$(LINUXDIR
)/drivers
/net
/igs
/igs.ko
)
393 endif # TCONFIG_BCMARM
395 ifneq ($(TCONFIG_BCMARM
),y
)
397 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
) $(PARALLEL_BUILD
)
399 lzma-loader-install
: lzma-loader
404 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
)
407 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
408 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
410 install package
: $(obj-install
) $(LINUXDIR
)/.config
413 install -d
$(TARGETDIR
)
417 $(MAKE
) -C
$(LINUXDIR
) modules_install \
418 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" \
419 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
421 ifneq ($(CONFIG_LINUX26
),y
)
422 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
423 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
424 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
425 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
426 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
427 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
428 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
430 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
433 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
436 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
437 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
438 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
439 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
440 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
441 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
442 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
443 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
444 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
445 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
448 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
449 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
450 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
451 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
452 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
453 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
454 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
455 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
456 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
457 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
458 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
459 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfs
/* .
&& rm -rf hfs || true
460 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
461 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
462 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
463 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
464 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
465 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
466 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
467 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
468 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
469 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
470 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
471 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
472 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
473 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
474 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
475 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
476 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
477 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
478 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
479 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
480 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
481 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv core
/* .
&& rm -rf core || true
482 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv card
/* .
&& rm -rf card || true
483 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv host
/* .
&& rm -rf host || true
484 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
485 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
486 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
487 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
488 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
489 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
490 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
491 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
492 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
493 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
494 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
495 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
497 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
498 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
499 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
500 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
501 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv usb
/* .
&& rm -rf usb || true
502 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
505 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
506 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
509 ifneq ($(TCONFIG_L7
),y
)
510 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
514 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
515 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
516 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
517 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
518 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
519 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
520 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
521 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
522 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
523 ifeq ($(TCONFIG_SSH
),y
)
524 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
526 ifeq ($(TCONFIG_BBT
),y
)
527 install $(LIBDIR
)/librt.so
.0 $(TARGETDIR
)/lib
/librt.so
.0
529 ifeq ($(TCONFIG_NGINX
),y
)
530 install $(LIBDIR
)/..
/arm-linux
/lib
/libstdc
++.so
.6 $(TARGETDIR
)/lib
/libstdc
++.so
.6
531 cd
$(TARGETDIR
)/lib
&& ln
-sf libstdc
++.so
.6 libstdc
++.so
532 $(STRIP
) $(TARGETDIR
)/lib
/libstdc
++.so
.6
534 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
535 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
536 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
539 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
543 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
544 ifneq ($(TCONFIG_BCMARM
),y
)
545 @
$(SRCBASE
)/btools
/libfoo.pl
548 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
550 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
551 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
553 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
554 # separated/copied extra stuff
555 @
rm -rf
$(PLATFORMDIR
)/extras
556 @mkdir
$(PLATFORMDIR
)/extras
557 @mkdir
$(PLATFORMDIR
)/extras
/ipsec
558 @mkdir
$(PLATFORMDIR
)/extras
/raid
559 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
560 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/usr/lib/iptables/libipt_policy.*o $(PLATFORMDIR)/extras/ipsec/ || true
562 $(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
563 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
565 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/mdadm
$(PLATFORMDIR
)/extras
/raid
/ || true
566 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md
/*.ko
$(PLATFORMDIR
)/extras
/raid
/ || true
567 $(if
$(TCONFIG_RAID
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md || true
569 @cp
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ip_set
*o
$(PLATFORMDIR
)/extras
/ || true
570 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
571 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
572 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
573 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
574 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
575 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
576 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
577 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
578 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
579 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
580 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
581 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
582 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
583 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
584 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
585 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
587 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
588 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
589 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
590 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
591 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-acm.
*o
$(PLATFORMDIR
)/extras
/ || true
592 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
593 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
594 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
595 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
596 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
597 $(if
$(NEED_SD_MODULES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
598 $(if
$(NEED_SD_MODULES
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc || true
600 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ch341.
*o
$(PLATFORMDIR
)/extras
/ || true
601 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
602 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
603 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
604 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
605 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
606 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
607 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
608 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
609 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
610 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/cdc-wdm.
*o
$(PLATFORMDIR
)/extras
/ || true
611 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
612 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
613 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/qmi_wwan.
*o
$(PLATFORMDIR
)/extras
/ || true
614 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ipheth.
*o
$(PLATFORMDIR
)/extras
/ || true
615 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
616 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
617 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
618 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
619 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
620 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
621 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
622 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
623 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
624 $(if
$(TCONFIG_UPS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
625 $(if
$(TCONFIG_UPS
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
626 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
627 $(if
$(TCONFIG_CTF
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
628 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
629 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
630 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
631 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
632 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
633 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
634 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm || true
635 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
636 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key || true
637 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/xfrm
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
638 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv*/tunnel*.ko $(PLATFORMDIR)/extras/ipsec/ || true
639 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ah
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
640 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/esp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
641 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ipcomp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
642 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_policy.ko $(PLATFORMDIR)/extras/ipsec/ || true
644 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
645 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
646 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
647 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
648 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
649 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
650 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
652 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
653 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
654 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
655 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
656 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
657 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
658 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
659 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
660 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
661 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
662 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
663 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
664 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfs.
*o
$(PLATFORMDIR
)/extras
/ || true
665 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
667 ifneq ($(TCONFIG_USB
),y
)
668 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
669 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
670 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
673 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
674 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
675 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
676 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
677 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
679 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
680 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
681 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
682 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
683 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
684 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
685 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
687 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
688 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
690 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
691 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
692 @cp
-r
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
694 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
695 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
696 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
697 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
698 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
699 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
700 ifneq ($(NEED_EX_USB
),y
)
701 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
702 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
704 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
706 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
707 ifeq ($(TCONFIG_L7PAT
),y
)
708 @cd layer7
&& .
/squish.sh
709 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
712 ifeq ($(TCONFIG_PPTPD
),y
)
713 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/vpn
714 cp rc
/vpn
/* $(TARGETDIR
)/rom
/etc
/vpn
715 chmod
+x
$(TARGETDIR
)/rom
/etc
/vpn
/*
718 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
719 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
722 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
725 ifneq ($(TCONFIG_BCMARM
),y
)
726 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
727 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-no-duplicates | tee target.
info
729 $(MAKE
) -C squashfs-4.2 mksquashfs
730 squashfs-4.2
/mksquashfs
$(TARGETDIR
) $(PLATFORMDIR
)/$(ROOT_IMG
) -noappend
-all-root
734 libc
: $(LIBDIR
)/ld-uClibc.so
.0
735 # $(MAKE) -C ../../../tools-src/uClibc all
736 # $(MAKE) -C ../../../tools-src/uClibc install
743 clean: clean-build
$(obj-clean
)
744 rm -rf layer7
/squished
745 rm -f .ipv6-y .ipv6-n
746 rm -f .fullssl-y .fullssl-n
752 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
753 rm -rf
$(PLATFORMDIR
)/extras
756 ifneq ($(INSIDE_MAK
),1)
757 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
759 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
765 CONFIG_IN
:= config
/config.in
767 config
/conf config
/mconf
:
771 @config
/conf
$(CONFIG_IN
)
774 @config
/mconf
$(CONFIG_IN
)
776 roldconf
: config
/conf
777 @config
/conf
-o
$(CONFIG_IN
)
778 @
$(MAKE
) shared-clean rc-clean nvram
$(BCMEX
)-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
781 @
$(MAKE
) -C
$(LINUXDIR
) config
784 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
787 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
788 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
791 @
$(MAKE
) -C busybox oldconfig
793 config conf
: rconf kconf
795 menuconfig mconf
: rmconf kmconf
798 @
rm -f .ipv6-y .ipv6-n
799 @
$(MAKE
) $(IPTABLES_TARGET
)-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean
$(IPROUTE_TARGET
)-clean
802 .fullssl-y .fullssl-n
:
803 @
rm -f .fullssl-y .fullssl-n
804 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
807 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
809 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
813 # overrides and extra dependencies
817 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" $(PARALLEL_BUILD
)
820 rm -rf
$(INSTALLDIR
)/busybox
821 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
824 -@
$(MAKE
) -C busybox
distclean
827 $(MAKE
) -C busybox menuconfig
830 httpd
: shared nvram
$(BCMEX
) mssl
835 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
839 @
$(MAKE
) -C matrixssl
/src
845 -@
$(MAKE
) -C matrixssl
/src
clean
848 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
849 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
850 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
851 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
852 PTHREAD_LIBS
="-lpthread" \
854 @touch cyassl
/stamp-h1
856 cyassl
: cyassl
/stamp-h1
861 -@
$(MAKE
) -C cyassl
clean
862 @
rm -f cyassl
/stamp-h1
867 ifeq ($(FULL_OPENSSL
),y
)
868 OPENSSL_CIPHERS
:=enable-rc5
870 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
875 .
/Configure
$(HOSTCONFIG
) --openssldir
=/etc
--cross-compile-prefix
=' ' \
876 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
877 shared
$(OPENSSL_CIPHERS
) no-ssl2 no-ssl3 \
878 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
879 no-seed no-capieng no-gms no-gmp no-rfc3779 \
880 no-err no-hw no-jpake \
881 no-zlib no-engines no-sse2 no-libunbound no-ssl-trace \
882 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
884 @
$(MAKE
) -C openssl
clean
885 @touch openssl
/stamp-h1
887 openssl
: openssl
/stamp-h1
890 -@
$(MAKE
) -C openssl
clean
891 @
rm -f openssl
/stamp-h1
893 openssl-install
: openssl
894 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
895 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
896 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
898 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
899 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
900 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
902 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
904 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
905 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
907 #ifeq ($(FULL_OPENSSL),y)
908 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
909 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
910 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
917 rc
: nvram
$(BCMEX
) shared
921 -@cd eapd
$(BCMEX
)/linux
&& make
clean
925 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
926 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
928 bridge
: bridge
/Makefile
933 -@
$(MAKE
) -C bridge
clean
934 @
rm -f bridge
/Makefile
937 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
938 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
940 dnsmasq
: $(if
$(TCONFIG_DNSSEC
),nettle
,)
942 @
$(MAKE
) -C dnsmasq
$(PARALLEL_BUILD
) \
943 COPTS
="$(if $(TCONFIG_DNSSEC),-I$(TOP)/nettle/include -I$(TOP)/gmp -DHAVE_DNSSEC -DHAVE_DNSSEC_STATIC,) \
944 $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) \
945 $(if $(CONFIG_LINUX26),-DUSE_IPSET,-DNO_IPSET) \
946 -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
947 LDFLAGS
="$(if $(TCONFIG_DNSSEC),-L$(TOP)/nettle/lib -L$(TOP)/gmp/.libs,) -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
948 $(if
$(TCONFIG_DNSSEC
),PKG_CONFIG_PATH
="$(TOP)/nettle/lib/pkgconfig",)
951 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
952 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
955 @cd nettle
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
956 CPPFLAGS
="-I$(TOP)/gmp" \
957 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
958 LDFLAGS
="-L$(TOP)/gmp/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
959 $(CONFIGURE
) prefix=$(TOP
)/nettle
960 @touch nettle
/stamp-h1
962 nettle
: nettle
/stamp-h1
965 @
$(MAKE
) -C nettle
install
968 -@
$(MAKE
) -C nettle
clean
969 @
rm -f nettle
/stamp-h1
970 @
rm -rf nettle
/include nettle
/lib nettle
/bin nettle
/share
973 @cd gmp
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
974 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
975 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
984 @
$(MAKE
) -C gmp
clean
988 ifeq ($(CONFIG_LINUX26
),y
)
989 cp
-f iptables
/extensions
/libipt_ipp2p_K26.c iptables
/extensions
/libipt_ipp2p.c
991 cp
-f iptables
/extensions
/libipt_ipp2p_K24.c iptables
/extensions
/libipt_ipp2p.c
994 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
997 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
998 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
999 ln
-sf iptables iptables-restore
&& \
1000 ln
-sf iptables iptables-save
1002 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
1003 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
1005 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
1007 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
1008 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
1009 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
1011 ifeq ($(TCONFIG_IPV6
),y
)
1012 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
1013 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
1014 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
1015 ln
-sf ip6tables ip6tables-restore
&& \
1016 ln
-sf ip6tables ip6tables-save
1020 -@
$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
1022 iptables-1.4.x
: iptables-1.4.x
/Makefile libnfnetlink
1024 $(MAKE
) -C
$@ KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE" \
1025 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/libnfnetlink/include" \
1026 LDFLAGS
="-L$(TOP)/libnfnetlink/src/.libs -lnfnetlink"
1028 iptables-1.4.x
/Makefile
: iptables-1.4.x
/configure
1029 $(MAKE
) iptables-1.4.x-configure
1031 iptables-1.4.x
/configure
:
1032 ( cd iptables-1.4.x
; .
/autogen.sh
)
1034 iptables-1.4.x-configure
:
1035 ( cd iptables-1.4.x
; \
1038 --bindir=/usr
/sbin \
1040 $(IPTABLES_IPV6_OPT
) \
1041 --with-kernel
=$(LINUXDIR
) \
1044 iptables-1.4.x-install
:
1045 install -D iptables-1.4.x
/iptables
/.libs
/xtables-multi
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
/xtables-multi
1046 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
&& \
1047 ln
-sf xtables-multi iptables-restore
&& \
1048 ln
-sf xtables-multi iptables
1049 install -d
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
1050 install -D iptables-1.4.x
/libiptc
/.libs
/lib
*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/
1051 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
&& \
1052 ln
-sf libip4tc.so libip4tc.so
.0 && \
1053 ln
-sf libip4tc.so libip4tc.so
.0.0.0 && \
1054 ln
-sf libip6tc.so libip6tc.so
.0 && \
1055 ln
-sf libip6tc.so libip6tc.so
.0.0.0 && \
1056 ln
-sf libiptc.so libiptc.so
.0 && \
1057 ln
-sf libiptc.so libiptc.so
.0.0.0
1058 install -D iptables-1.4.x
/libxtables
/.libs
/lib
*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/
1059 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
&& \
1060 ln
-sf libxtables.so libxtables.so
.7 && \
1061 ln
-sf libxtables.so libxtables.so
.7.0.0
1062 install -D iptables-1.4.x
/extensions
/*.so
$(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
1064 ifeq ($(TCONFIG_IPV6
),y
)
1065 cd
$(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
&& \
1066 ln
-sf xtables-multi ip6tables-restore
&& \
1067 ln
-sf xtables-multi ip6tables
1070 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/sbin
/xtables-multi
1071 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/*.so
*
1072 $(STRIP
) $(INSTALLDIR
)/iptables-1.4.x
/usr
/lib
/xtables
/*.so
*
1074 iptables-1.4.x-clean
:
1075 [ ! -f iptables-1.4.x
/Makefile
] ||
$(MAKE
) -C iptables-1.4.x KERNEL_DIR
=$(LINUXDIR
) distclean
1079 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,) $(PARALLEL_BUILD
)
1080 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
1083 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
1085 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
1086 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
1087 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
1088 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
1089 @touch rp-pppoe
/src
/stamp-h1
1091 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
1092 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
$(PARALLEL_BUILD
)
1095 -@
$(MAKE
) -C rp-pppoe
/src
clean
1096 @
rm -f rp-pppoe
/src
/pppoe-relay
1097 @
rm -f rp-pppoe
/src
/stamp-h1
1099 rp-pppoe-install
: rp-pppoe
1100 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
1101 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
1102 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
1103 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
1106 upnp
: nvram
$(BCMEX
) shared iptables
1109 libnfnetlink
/stamp-h1
:
1110 # tomatoraf.com, Victek
1111 # last sources is dated March 22,2014 from netfilter.org git
1112 # ./genconfig.sh and make with automake 1.13
1113 cd
$(TOP
)/libnfnetlink
&& CC
=$(CC
) STRIP
=$(STRIP
) \
1114 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1115 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1116 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
1117 touch libnfnetlink
/stamp-h1
1119 libnfnetlink
: libnfnetlink
/stamp-h1
1121 $(MAKE
) -C libnfnetlink
1123 libnfnetlink-install
:
1124 install -D libnfnetlink
/src
/.libs
/libnfnetlink.so
.0.2.0 $(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
1125 $(STRIP
) -s
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
1126 cd
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/ && \
1127 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
.0 && \
1128 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
1131 -@
$(MAKE
) -C libnfnetlink
clean
1132 @
rm -f libnfnetlink
/Makefile libnfnetlink
/stamp-h1
1135 @cd miniupnpd
&& .
/genconfig.sh
--leasefile
--vendorcfg
1137 miniupnpd
: $(IPTABLES_TARGET
) miniupnpd-config
1139 $(MAKE
) -C miniupnpd
-f Makefile.linux
1142 -@
$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
1143 @
rm -f miniupnpd
/config.h
1146 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
1147 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
1152 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
1154 $(MAKE
) -C vsftpd
$(PARALLEL_BUILD
)
1156 vsftpd-install
: vsftpd
1157 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
1158 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
1160 ufsd-asus
: kernel_header kernel
1161 @
$(MAKE
) -C ufsd-asus
all
1163 ufsd-asus-install
: ufsd-asus
1164 @
$(MAKE
) -C ufsd-asus
install INSTALLDIR
=$(INSTALLDIR
)/ufsd-asus
1166 ufsd-netgear-install
:
1167 @
$(MAKE
) -C ufsd-netgear
install INSTALLDIR
=$(INSTALLDIR
)/ufsd-netgear
1171 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1172 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1173 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
1174 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
1175 --disable-ntfsprogs
--disable-crypto
--without-uuid \
1176 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
1178 ntfs-3g
: ntfs-3g
/Makefile
1179 @
$(MAKE
) -C ntfs-3g
$(PARALLEL_BUILD
)
1182 -@
$(MAKE
) -C ntfs-3g
clean
1183 @
rm -f ntfs-3g
/Makefile
1185 ntfs-3g-install
: ntfs-3g
1186 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1187 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
1188 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
1189 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
1190 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
1192 libusb10
/Makefile
: libusb10
/Makefile.in
1193 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
1194 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
1196 libusb10
: libusb10
/Makefile
1199 libusb10-install
: libusb10
1200 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
1201 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
1204 -@
$(MAKE
) -C
$@
clean
1205 @
rm -rf libusb10
/Makefile
1207 libusb
/Makefile
: libusb
/Makefile.in
1208 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
1209 $(CONFIGURE
) --prefix=/usr \
1210 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
1211 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
1212 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
1214 libusb
: libusb10 libusb
/Makefile
1217 libusb-install
: libusb
1218 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
1219 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
1222 -@
$(MAKE
) -C
$@
clean
1223 @
rm -rf libusb
/Makefile
1225 usbmodeswitch
: libusb10
1226 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
1227 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
1228 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
1230 usbmodeswitchdb-install
:
1231 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
1232 # compress whitespace
1233 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
1235 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
1238 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
1239 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1240 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
1241 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1242 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
1246 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections -DUSE_DHCP6SRV" \
1247 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1248 ac_cv_func_setpgrp_void
=yes \
1249 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
1250 -@
$(MAKE
) -C dhcpv6
clean
1253 dhcpv6
: dhcpv6
/stamp-h1
1255 @
$(MAKE
) -C dhcpv6 dhcp6c
1257 dhcpv6-install
: dhcpv6
1258 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1259 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1262 -@
$(MAKE
) -C dhcpv6
clean
1263 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
1271 @
$(MAKE
) -C samba-3.5
.8 $(PARALLEL_BUILD
)
1275 prebuilt
: shared libbcmcrypto
1279 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
1282 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
1283 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
1286 pptp-client-install
:
1287 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1288 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1291 accel-pptp
: pppd accel-pptp
/Makefile
1292 @
$(MAKE
) -C accel-pptp
1294 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
1295 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS) $(if $(TCONFIG_VPNC), -DTCONFIG_VPNC,)" \
1296 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
1299 -@
$(MAKE
) -C accel-pptp
clean
1300 @
rm -f accel-pptp
/Makefile
1302 accel-pptp-install
: accel-pptp
1303 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1304 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1307 cd pptpd
&& $(CONFIGURE
) --prefix=$(INSTALLDIR
)/pptpd
--enable-bcrelay \
1308 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) STRIP
=$(STRIP
)
1309 touch pptpd
/stamp-h1
1311 pptpd
: pptpd
/stamp-h1
1313 pptpd-install
: pptpd
1315 @
install -D pptpd
/pptpd
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1316 @
install -D pptpd
/bcrelay
$(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1317 @
install -D pptpd
/pptpctrl
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1318 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1319 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1320 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1323 -@
$(MAKE
) -C pptpd
clean
1324 rm -rf pptpd
/stamp-h1 pptpd
/.deps
1326 pppd
/Makefile
: pppd
/linux
/Makefile.top
1327 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
1331 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
1334 -@
$(MAKE
) -C pppd
clean
1335 @
rm -f pppd
/Makefile
1338 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1339 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1340 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1341 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1342 ifeq ($(TCONFIG_L2TP
),y
)
1343 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
1344 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
1348 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1349 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1352 @cd zebra
&& rm -f config.cache
&& \
1353 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1354 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1355 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1356 $(CONFIGURE
) --sysconfdir
=/etc \
1357 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
1358 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
1359 @touch zebra
/stamp-h1
1361 zebra
: zebra
/stamp-h1
1362 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
1365 -@
$(MAKE
) -C zebra
clean
1366 @
rm -f zebra
/stamp-h1
1368 zebra-install
: zebra
1369 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1370 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1371 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1372 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1373 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1374 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1378 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1379 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1380 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
1381 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1382 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1383 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1384 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1387 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
1389 xl2tpd-install
: xl2tpd
1390 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1391 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1395 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1396 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1401 # @-mkdir -p libnet/lib
1402 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1406 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1409 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1412 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1413 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1418 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1420 iproute2-install
: iproute2
1421 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1422 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1423 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1424 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1426 iproute2-3.x
: kernel_header iptables-1.4.x
1428 @
$(MAKE
) -C
$@ IPTABLES_DIR
=$(TOP
)/iptables-1.4.x KERNEL_INCLUDE
=$(TOP
)/kernel_header
/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1430 iproute2-3.x-install
: iproute2-3.x
1431 install -D iproute2-3.x
/tc
/tc
$(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/tc
1432 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/tc
1433 install -D iproute2-3.x
/ip
/ip
$(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/ip
1434 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/sbin
/ip
1435 @if
[ -e iproute2-3.x
/tc
/m_xt.so
] ; then \
1436 install -D iproute2-3.x
/tc
/m_xt.so
$(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/m_xt.so
; \
1437 ln
-sf m_xt.so
$(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/m_ipt.so
; \
1438 $(STRIP
) $(INSTALLDIR
)/iproute2-3.x
/usr
/lib
/tc
/*.so
; \
1442 -@
$(MAKE
) -C iproute2-3.x
clean
1443 -rm -f iproute2-3.x
/Config
1446 ntpclient
: nvram
$(BCMEX
) shared
1448 dropbear
: dropbear
/config.h
1450 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 $(PARALLEL_BUILD
)
1453 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1454 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1455 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1456 ln
-sf dropbearmulti dropbear
&& \
1457 ln
-sf dropbearmulti dropbearconvert
&& \
1458 ln
-sf dropbearmulti dropbearkey
&& \
1459 ln
-sf dropbearmulti dbclient
&& \
1460 ln
-sf dropbearmulti ssh
&& \
1461 ln
-sf dropbearmulti scp
1464 -@
$(MAKE
) -C dropbear
clean
1465 @
rm -f dropbear
/config.h
1469 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1470 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1471 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1472 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1473 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1474 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1475 @
$(MAKE
) -C dropbear
clean
1481 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1482 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1483 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1484 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1485 touch sqlite
/stamp-h1
1487 sqlite
: sqlite
/stamp-h1
1488 @
$(MAKE
) -C sqlite
all $(PARALLEL_BUILD
)
1491 -@
$(MAKE
) -C sqlite
clean
1492 @
rm -f sqlite
/stamp-h1
1494 sqlite-install
: sqlite
1496 ifeq ($(TCONFIG_NGINX
),y
)
1497 install -D sqlite
/.libs
/libsqlite3.so
.0.8.6 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1498 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0.8.6
1499 cd
$(INSTALLDIR
)/sqlite
/usr
/lib
/ && \
1500 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
.0 && \
1501 ln
-sf libsqlite3.so
.0.8.6 libsqlite3.so
1504 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1506 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1507 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1509 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1510 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1512 FFMPEG_PROTOCOLS
:=file
1513 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1515 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
1516 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1518 ffmpeg
/stamp-h1
: zlib
1519 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1520 .
/configure
--enable-cross-compile
--arch
=$(ARCH
) --target_os
=linux \
1521 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1522 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1523 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1524 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1525 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1526 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1527 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1528 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1529 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1530 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1531 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1532 --extra-libs
="-L$(TOP)/zlib -lz" \
1533 --enable-zlib
--disable-debug
--prefix=''
1534 touch ffmpeg
/stamp-h1
1536 ffmpeg
: ffmpeg
/stamp-h1 zlib
1537 @
$(MAKE
) -C ffmpeg
all $(PARALLEL_BUILD
)
1540 -@
$(MAKE
) -C ffmpeg
clean
1541 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1543 ffmpeg-install
: ffmpeg
1545 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1546 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1547 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1548 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1549 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1550 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1551 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1556 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1557 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1558 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1559 touch libogg
/stamp-h1
1561 libogg
: libogg
/stamp-h1
1562 @
$(MAKE
) -C libogg
all $(PARALLEL_BUILD
)
1565 -@
$(MAKE
) -C libogg
clean
1566 @
rm -f libogg
/stamp-h1
1568 libogg-install
: libogg
1570 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1571 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1572 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1575 flac
/stamp-h1
: libogg
1577 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1578 CPPFLAGS
="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1579 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1580 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1581 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1582 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1585 flac
: flac
/stamp-h1 libogg
1586 @
$(MAKE
) -C flac
/src
/libFLAC
all $(PARALLEL_BUILD
)
1589 -@
$(MAKE
) -C flac
clean
1590 @
rm -f flac
/stamp-h1
1594 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1595 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1596 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1601 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1605 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
$(PARALLEL_BUILD
)
1606 install -d
$(TOP
)/jpeg
/staged
/include
1607 install -d
$(TOP
)/jpeg
/staged
/lib
1608 install -d
$(TOP
)/jpeg
/staged
/bin
1609 install -d
$(TOP
)/jpeg
/staged
/man
/man1
1610 @
$(MAKE
) -C jpeg LIBTOOL
="" prefix=$(TOP
)/jpeg
/staged
install
1611 install -D jpeg
/libjpeg.so
$(TOP
)/jpeg
/staged
/lib
/libjpeg.so
1612 rm -f
$(TOP
)/jpeg
/staged
/lib
/libjpeg.la
1615 -@
$(MAKE
) -C jpeg
clean
1616 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1621 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1622 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1623 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1625 ifeq ($(TCONFIG_NGINX
),y
)
1626 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1627 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1631 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1632 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1633 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1634 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1635 touch libexif
/stamp-h1
1637 libexif
: libexif
/stamp-h1
1638 @
$(MAKE
) -C libexif
all
1641 -@
$(MAKE
) -C libexif
clean
1642 @
rm -f libexif
/stamp-h1
1644 libexif-install
: libexif
1646 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1647 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1648 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1653 CC
=$(CC
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC" LDSHAREDLIBC
="$(EXTRALDFLAGS)" \
1654 .
/configure
--shared
--prefix=/usr
--libdir=/usr
/lib
1658 @
$(MAKE
) -C zlib
all
1659 @
$(MAKE
) -C zlib DESTDIR
=$(TOP
)/zlib
/staged
install
1662 -@
$(MAKE
) -C zlib
clean
1663 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1668 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1669 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1670 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1671 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1673 ifeq ($(TCONFIG_BT
),y
)
1674 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1675 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1676 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1678 ifeq ($(TCONFIG_TOR
),y
)
1679 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1680 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1681 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1683 ifeq ($(TCONFIG_SNMP
),y
)
1684 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1685 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1686 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1689 libid3tag
/stamp-h1
: zlib
1691 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1692 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1693 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1694 --disable-debugging
--disable-profiling
1695 touch libid3tag
/stamp-h1
1697 libid3tag
: libid3tag
/stamp-h1 zlib
1698 @
$(MAKE
) -C libid3tag
all $(PARALLEL_BUILD
)
1701 -@
$(MAKE
) -C libid3tag
clean
1702 @
rm -f libid3tag
/stamp-h1
1704 libid3tag-install
: libid3tag
1706 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1707 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1708 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1711 libvorbis
/stamp-h1
: libogg
1713 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1714 CPPFLAGS
="-I$(TOP)/libogg/include" \
1715 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1716 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1717 --with-ogg-includes
="$(TOP)/libogg/include" \
1718 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1719 touch libvorbis
/stamp-h1
1721 libvorbis
: libvorbis
/stamp-h1
1722 @
$(MAKE
) -C libvorbis
/lib
all $(PARALLEL_BUILD
)
1725 -@
$(MAKE
) -C libvorbis
clean
1726 @
rm -f libvorbis
/stamp-h1
1728 libvorbis-install
: libvorbis
1730 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1731 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1732 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1735 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1737 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
$(PARALLEL_BUILD
)
1740 -@
$(MAKE
) -C minidlna
clean
1741 @
rm -f minidlna
/stamp-h1
1743 minidlna-install
: minidlan
1745 install -D minidlna
/minidlna
$(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1746 $(STRIP
) $(INSTALLDIR
)/minidlna
/usr
/sbin
/minidlna
1748 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1749 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1750 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1751 $(CONFIGURE
) --prefix=/usr
1753 igmpproxy
: igmpproxy
/src
/Makefile
1755 @
$(MAKE
) -C igmpproxy
/src
$(PARALLEL_BUILD
)
1757 igmpproxy-install
: igmpproxy
1758 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1759 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1762 -@
$(MAKE
) -C igmpproxy
/src
clean
1763 @
rm -f igmpproxy
/src
/Makefile
1766 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1767 PROGRAMS
=udevtrigger
1770 install -d
$(INSTALLDIR
)
1771 install -d
$(TARGETDIR
)
1772 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1775 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) CC
=$(CC
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1777 hotplug2-install
: hotplug2
1778 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1779 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1782 $(MAKE
) -C emf
$(BCMEX
)/emfconf CROSS
=$(CROSS_COMPILE
)
1784 emf
$(BCMEX
)-install:
1785 ifeq ($(TCONFIG_EMF
),y
)
1786 install -d
$(TARGETDIR
)
1787 $(MAKE
) -C emf
$(BCMEX
)/emfconf CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install
1791 -@
$(MAKE
) -C emf
$(BCMEX
)/emfconf
clean
1794 $(MAKE
) -C emf
$(BCMEX
)/igsconf CROSS
=$(CROSS_COMPILE
)
1797 ifeq ($(TCONFIG_EMF
),y
)
1798 install -d
$(TARGETDIR
)
1799 $(MAKE
) -C emf
$(BCMEX
)/igsconf CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install
1803 -@
$(MAKE
) -C emf
$(BCMEX
)/igsconf
clean
1805 wanuptime
: nvram
$(BCMEX
) shared
1807 @
$(MAKE
) -C wanuptime
1810 -@
$(MAKE
) -C wanuptime
clean
1813 install -D wanuptime
/wanuptime
$(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1814 $(STRIP
) $(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1817 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1818 CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1819 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1820 LOCKFILE
="/var/lock/ebtables" LOCKDIR
="/var/lock" \
1821 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_DIR
=$(LINUXDIR
) KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1823 ebtables-install
: ebtables
1824 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1826 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1827 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1828 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1830 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1831 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1832 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1833 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1835 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1836 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1837 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1840 -@
$(MAKE
) -C ebtables
clean
1843 spawn-fcgi
/stamp-h1
:
1844 cd spawn-fcgi
&& CC
=$(CC
) \
1845 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1846 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1847 ac_cv_func_malloc_0_nonnull
=yes \
1848 $(CONFIGURE
) --prefix=/usr
1849 touch spawn-fcgi
/stamp-h1
1851 spawn-fcgi
: spawn-fcgi
/stamp-h1
1852 @
$(MAKE
) -C spawn-fcgi
$(PARALLEL_BUILD
)
1855 -@
$(MAKE
) -C spawn-fcgi
clean
1856 rm -f spawn-fcgi
/stamp-h1
1858 spawn-fcgi-install
: spawn-fcgi
1859 install -d
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
1860 install spawn-fcgi
/src
/spawn-fcgi
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1861 $(STRIP
) -s
$(INSTALLDIR
)/spawn-fcgi
/usr
/bin
/spawn-fcgi
1866 @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 \
1867 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 \
1868 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 \
1869 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 \
1870 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
1875 @
$(MAKE
) -C glib
$(PARALLEL_BUILD
)
1878 -@
$(MAKE
) -C glib
clean
1882 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1884 nocat
/stamp-h1
: glib-install
1888 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1891 echo
*** integrate glib to nocat installdir
1892 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1893 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1894 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1895 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1896 touch nocat
/stamp-h1
1898 nocat
: nocat
/stamp-h1
1899 @
$(MAKE
) -C nocat
$(PARALLEL_BUILD
)
1902 -@
$(MAKE
) -C nocat
clean
1903 rm -f nocat
/stamp-h1
1906 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1907 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1908 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1909 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1915 CC
=$(CC
) CXX
=$(HOST
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1916 $(CONFIGURE
) --prefix=/usr
--disable-dependency-tracking
--enable-utf8
--enable-unicode-properties
--disable-cpp
1917 @touch pcre
/stamp-h1
1918 [ -d pcre
/m4
] || mkdir pcre
/m4
1921 @
$(MAKE
) -C pcre
$(PARALLEL_BUILD
)
1922 cd pcre
/.libs
&& [ ! -s
include ] && ln
-s ..
include || true
1926 install -D pcre
/.libs
/libpcre.so
.1 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1927 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcre.so
.1.2.3
1928 install -D pcre
/.libs
/libpcreposix.so
.0.0.2 $(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1929 $(STRIP
) -s
$(INSTALLDIR
)/pcre
/usr
/lib
/libpcreposix.so
.0.0.2
1930 cd
$(INSTALLDIR
)/pcre
/usr
/lib
/ && \
1931 ln
-sf libpcre.so
.1.2.3 libpcre.so
.1 && \
1932 ln
-sf libpcreposix.so
.0.0.2 libpcreposix.so
.0
1935 ( if
[ -f pcre
/Makefile
]; then \
1936 $(MAKE
) -C pcre
clean; \
1937 rm -rf pcre
/stamp-h1
; \
1942 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1943 $(CONFIGURE
) --prefix=/usr
--without-python
--enable-static
--enable-shared
1946 libxml2
: libxml2
/stamp-h1
1947 @
$(MAKE
) -C libxml2
all $(PARALLEL_BUILD
)
1948 @
$(MAKE
) -C libxml2 DESTDIR
=$(TOP
)/libxml2
/staged
install
1950 libxml2-install
: libxml2
1952 install -D libxml2
/.libs
/libxml2.so
.2.9.1 $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1953 $(STRIP
) $(INSTALLDIR
)/libxml2
/usr
/lib
/libxml2.so
.2.9.1
1954 cd
$(INSTALLDIR
)/libxml2
/usr
/lib
&& \
1955 ln
-sf libxml2.so
.2.9.1 libxml2.so
.2 && \
1956 ln
-sf libxml2.so
.2.9.1 libxml2.so
1959 -@
$(MAKE
) -C libxml2
clean
1960 @
rm -f libxml2
/stamp-h1
1961 @
rm -rf libxml2
/staged
1965 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1966 $(CONFIGURE
) --prefix=/usr
--enable-static
--enable-shared
1969 libpng
: libpng
/stamp-h1
1970 @
$(MAKE
) -C libpng
all $(PARALLEL_BUILD
)
1971 @
$(MAKE
) -C libpng DESTDIR
=$(TOP
)/libpng
/staged
install
1973 libpng-install
: libpng
1975 install -D libpng
/.libs
/libpng.so
.3.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1976 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng.so
.3.51.0
1977 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1978 ln
-sf libpng.so
.3.51.0 libpng.so
&& \
1979 ln
-sf libpng.so
.3.51.0 libpng.so
.3
1980 install -D libpng
/.libs
/libpng12.so
.0.51.0 $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1981 $(STRIP
) $(INSTALLDIR
)/libpng
/usr
/lib
/libpng12.so
.0.51.0
1982 cd
$(INSTALLDIR
)/libpng
/usr
/lib
&& \
1983 ln
-sf libpng12.so
.0.51.0 libpng12.so
&& \
1984 ln
-sf libpng12.so
.0.51.0 libpng12.so
.0
1987 -@
$(MAKE
) -C libpng
clean
1988 @
rm -f libpng
/stamp-h1
1989 @
rm -rf libpng
/staged
1991 php
/stamp-h1
: pcre zlib libiconv sqlite libxml2 libpng jpeg
1993 cd php
&& CC
=$(CC
) CXX
=$(ARCH
)-g
++ AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1994 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" \
1995 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" \
1996 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" \
1997 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++" \
1998 PHP_FCGI_LIBXML_DIR
="$(TOP)/libxml2/staged/usr" \
1999 ac_cv_func_memcmp_working
=yes \
2000 cv_php_mbstring_stdarg
=yes \
2001 $(CONFIGURE
) --prefix=/usr \
2007 --with-config-file-path
=/etc \
2008 --with-config-file-scan-dir
=/etc
/php5 \
2009 --disable-short-tags \
2010 --with-pcre-regex
="$(TOP)/pcre/.libs" \
2012 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
2016 --disable-calendar \
2026 --with-png-dir
="$(TOP)/libpng/staged/usr" \
2027 --with-jpeg-dir
="$(TOP)/jpeg/staged" \
2029 --with-iconv
="$(TOP)/libiconv/staged/usr" \
2030 --with-iconv-dir
="$(TOP)/libiconv/staged/usr" \
2039 --with-mysql-sock
="/var/run/mysqld.sock" \
2041 --without-pdo-pgsql \
2047 --enable-simplexml \
2054 --disable-tokenizer \
2056 --enable-xmlreader \
2057 --enable-xmlwriter \
2060 --with-libxml-dir
="$(TOP)/libxml2/staged/usr"
2068 -@
$(MAKE
) -C php
clean
2073 install -d
$(INSTALLDIR
)/php
/usr
/sbin
2074 install -D php
/sapi
/cli
/.libs
/php
$(INSTALLDIR
)/php
/usr
/sbin
/php-cli
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
2075 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cli
2076 install -D php
/sapi
/cgi
/.libs
/php-cgi
$(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
&& chmod
0755 $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
2077 cd
$(INSTALLDIR
)/php
/usr
/sbin
&& ln
-sf php-cgi php-fcgi
2078 $(STRIP
) $(INSTALLDIR
)/php
/usr
/sbin
/php-cgi
2080 nginx
/stamp-h1
: openssl zlib pcre
2082 cd
$(TOP
)/nginx
&& .
/configure
--crossbuild
=Linux
::$(ARCH
) \
2084 --sbin-path
=/usr
/sbin \
2085 --conf-path
=/etc
/nginx
/nginx.conf \
2086 --error-log-path
=/tmp
/var
/log
/nginx
/error.log \
2087 --http-log-path
=/tmp
/var
/log
/nginx
/access.log \
2088 --pid-path
=/tmp
/var
/run
/nginx.pid \
2089 --lock-path
=/tmp
/var
/run
/nginx.lock.accept \
2090 --http-client-body-temp-path
=/tmp
/var
/lib
/nginx
/client \
2091 --http-fastcgi-temp-path
=/tmp
/var
/lib
/nginx
/fastcgi \
2092 --with-http_flv_module \
2093 --with-http_ssl_module \
2094 --with-http_gzip_static_module \
2095 --http-uwsgi-temp-path
=/tmp
/var
/lib
/nginx
/uwsgi \
2096 --http-scgi-temp-path
=/tmp
/var
/lib
/nginx
/scgi \
2097 --http-proxy-temp-path
=/tmp
/var
/lib
/nginx
/proxy \
2099 --with-ld-opt
="$(LDFLAGS) -L $(TOP)/pcre/.libs -L $(TOP)/zlib -L $(TOP)/openssl" \
2100 --with-cc-opt
="$(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) -I $(TOP)/openssl/include -I $(TOP)/openssl/include/openssl -I $(TOP)/pcre -I $(TOP)/zlib" \
2101 $(ADDITIONAL_MODULES
)
2103 nginx
: nginx
/stamp-h1
2108 -@
$(MAKE
) -C nginx
clean
2109 -@
rm -f nginx
/stamp-h1
2111 nginx-install
: nginx
2112 install -d
$(INSTALLDIR
)/nginx
/usr
/sbin
2113 install -D nginx
/objs
/nginx
$(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
&& chmod
755 $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
2114 $(STRIP
) $(INSTALLDIR
)/nginx
/usr
/sbin
/nginx
2116 libncurses
/stamp-h1
:
2117 cd libncurses
&& CC
=$(CC
) \
2118 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC" \
2119 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2121 $(CONFIGURE
) --prefix=/usr
--with-shared
--with-normal
--disable-debug
--without-ada
--without-manpages
--without-progs
--without-tests
2122 touch libncurses
/stamp-h1
2124 libncurses
: libncurses
/stamp-h1
2126 $(MAKE
) -C libncurses
$(PARALLEL_BUILD
)
2127 $(MAKE
) -C libncurses DESTDIR
=$(TOP
)/libncurses
/staged
install
2130 -@
$(MAKE
) -C libncurses
clean
2131 @
rm -f libncurses
/stamp-h1 libncurses
/Makefile
2132 @
rm -rf libncurses
/staged
2134 libncurses-install
: libncurses
2135 install -d
$(INSTALLDIR
)/libncurses
/usr
/lib
2136 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
2137 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/l
2138 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
2139 install -d
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/x
2140 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/l
/linux
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/l
2141 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/v
/vt100
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
2142 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/v
/vt220
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/v
2143 install -D
-m
0644 libncurses
/staged
/usr
/share
/terminfo
/x
/xterm
$(INSTALLDIR
)/libncurses
/usr
/share
/terminfo
/x
2144 cd
$(INSTALLDIR
)/libncurses
/usr
/lib
&& ln
-sf ..
/share
/terminfo terminfo
2145 install libncurses
/lib
/libncurses.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libncurses.so
.5
2146 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libncurses.so
.5
2147 install libncurses
/lib
/libpanel.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libpanel.so
.5
2148 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libpanel.so
.5
2149 install libncurses
/lib
/libform.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libform.so
.5
2150 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libform.so
.5
2151 install libncurses
/lib
/libmenu.so
.5.9 $(INSTALLDIR
)/libncurses
/usr
/lib
/libmenu.so
.5
2152 $(STRIP
) $(INSTALLDIR
)/libncurses
/usr
/lib
/libmenu.so
.5
2153 cd
$(INSTALLDIR
)/libncurses
/usr
/lib
/ && \
2154 ln
-sf libncurses.so
.5 libncurses.so
&& \
2155 ln
-sf libpanel.so
.5 libpanel.so
&& \
2156 ln
-sf libform.so
.5 libform.so
&& \
2157 ln
-sf libmenu.so
.5 libmenu.so
2159 mysql
/stamp-h1
: openssl zlib libncurses
2161 cd mysql
&& cp
-f configure.arm configure
&& \
2162 CFLAGS
="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 \
2163 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$(TOP)/zlib \
2164 -I$(TOP)/openssl/include -I$(TOP)/libncurses/include" \
2165 CPPFLAGS
="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 \
2166 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$(TOP)/zlib \
2167 -I$(TOP)/openssl/include -I$(TOP)/libncurses/include" \
2168 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/zlib/staged/usr/lib -L$(TOP)/libncurses/lib -fPIC -EL" \
2169 LIBS
="-lcrypt -lz -lstdc++ -lssl -lcrypto -lncurses" \
2170 $(CONFIGURE
) --host
=$(HOST
) --build
=x86_64-linux-gnu
--prefix=/usr \
2171 --without-debug
--without-docs
--without-man
--with-charset
=utf8
--with-extra-charsets
=ascii
,latin1
,gb2312
,gbk \
2172 --enable-shared
--disable-static \
2173 --without-mysqlmanager \
2179 --enable-assembler \
2180 --with-zlib-dir
="$(TOP)/zlib/staged/usr" \
2181 ac_cv_c_stack_direction
=-1
2182 cd mysql
&& tar xvfz .host.tgz
2183 # Update time of config.status to avoid run 'config.status --recheck'
2184 touch mysql
/config.status
2185 # Update time of Makefile to avoid regenerate it when do make
2187 -find mysql
-name Makefile
-print | xargs
-i touch
{}
2188 touch mysql
/stamp-h1
2190 mysql
: mysql
/stamp-h1
2193 @
$(MAKE
) -C mysql DESTDIR
=$(TOP
)/mysql
/staged
install
2196 -@
$(MAKE
) -C mysql
clean
2197 -@
rm -f mysql
/stamp-h1
2198 -@
rm -rf mysql
/staged mysql
/host
2201 install -d
$(INSTALLDIR
)/mysql
/usr
/bin
2202 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
2203 install -d
$(INSTALLDIR
)/mysql
/usr
/libexec
2204 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2205 install -d
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/plugin
2206 install -d
$(INSTALLDIR
)/mysql
/usr
/share
2207 install -d
$(INSTALLDIR
)/mysql
/usr
/share
/mysql
2208 install -D
-m
755 mysql
/mycheck
$(INSTALLDIR
)/mysql
/usr
/bin
2209 install -D
-m
755 mysql
/staged
/usr
/bin
/my_print_defaults
$(INSTALLDIR
)/mysql
/usr
/bin
2210 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/my_print_defaults
2211 install -D
-m
755 mysql
/staged
/usr
/bin
/myisamchk
$(INSTALLDIR
)/mysql
/usr
/bin
2212 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/myisamchk
2213 install -D
-m
755 mysql
/staged
/usr
/bin
/mysql
$(INSTALLDIR
)/mysql
/usr
/bin
2214 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysql
2215 install -D
-m
755 mysql
/staged
/usr
/bin
/mysql_install_db
$(INSTALLDIR
)/mysql
/usr
/bin
2216 install -D
-m
755 mysql
/staged
/usr
/bin
/mysqladmin
$(INSTALLDIR
)/mysql
/usr
/bin
2217 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysqladmin
2218 install -D
-m
755 mysql
/staged
/usr
/bin
/mysqldump
$(INSTALLDIR
)/mysql
/usr
/bin
2219 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/bin
/mysqldump
2220 install -D
-m
755 mysql
/staged
/usr
/libexec
/mysqld
$(INSTALLDIR
)/mysql
/usr
/libexec
2221 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/libexec
/mysqld
2222 cd
$(INSTALLDIR
)/mysql
/usr
/bin
&& ln
-sf ..
/libexec
/mysqld mysqld
2223 # install -D -m 755 mysql/staged/usr/bin/mysqld_safe $(INSTALLDIR)/mysql/usr/bin
2224 install -D
-m
755 mysql
/staged
/usr
/lib
/mysql
/libmysqlclient.so
.16.0.0 $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2225 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/libmysqlclient.so
.16.0.0
2226 -@cd
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
&& \
2227 ln
-sf libmysqlclient.so
.16.0.0 libmysqlclient.so
.16 && \
2228 ln
-sf libmysqlclient.so
.16.0.0 libmysqlclient.so
2229 install -D
-m
755 mysql
/staged
/usr
/lib
/mysql
/libmysqlclient_r.so
.16.0.0 $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
2230 $(STRIP
) $(INSTALLDIR
)/mysql
/usr
/lib
/mysql
/libmysqlclient_r.so
.16.0.0
2231 -@cd
$(INSTALLDIR
)/mysql
/usr
/lib
/mysql
&& \
2232 ln
-sf libmysqlclient_r.so
.16.0.0 libmysqlclient_r.so
.16 && \
2233 ln
-sf libmysqlclient_r.so
.16.0.0 libmysqlclient_r.so
2234 # -@cd $(INSTALLDIR)/mysql/usr/lib/mysql/plugin && cp -arfpu $(TOP)/mysql/staged/usr/lib/mysql/plugin/* . && \
2235 # rm -f *.la *.a && \
2237 -@cd
$(INSTALLDIR
)/mysql
/usr
/share
/mysql
&& \
2238 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/english .
&& \
2239 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/fill_help_tables.sql .
&& \
2240 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/mysql_system_tables.sql .
&& \
2241 cp
-arfpu
$(TOP
)/mysql
/staged
/usr
/share
/mysql
/mysql_system_tables_data.sql .
2245 CFLAGS
="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
2249 @
$(MAKE
) -C lzo
$(PARALLEL_BUILD
)
2252 -@
$(MAKE
) -C lzo
clean
2256 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
2257 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2.0.0
2258 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& \
2259 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
.2 && \
2260 ln
-sf liblzo2.so
.2.0.0 liblzo2.so
2262 openvpn
/.conf
: openssl lzo
2263 cd openvpn
&& autoreconf
&& \
2264 CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2265 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
2266 CPPFLAGS
="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
2267 $(CONFIGURE
) --prefix= \
2268 --with-crypto-library
=openssl \
2269 --disable-debug
--disable-plugin-auth-pam
--disable-plugin-down-root
--with-plugindir
=/lib
--enable-management
--disable-small \
2270 --disable-selinux
--disable-socks
--enable-password-save \
2271 OPENSSL_SSL_CFLAGS
="-I$(TOP)/openssl/include" \
2272 OPENSSL_SSL_LIBS
="-L$(TOP)/openssl -lssl" \
2273 ac_cv_lib_resolv_gethostbyname
=no
2276 openvpn
: openvpn
/.conf
2277 @
$(MAKE
) -C openvpn
$(PARALLEL_BUILD
)
2280 -@
$(MAKE
) -C openvpn
clean
2281 @
rm -f openvpn
/.conf
2283 openvpn-install
: openvpn
2284 install -D openvpn
/src
/openvpn
/.libs
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2285 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2286 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
2288 openvpn_plugin_auth_nvram
: nvram
$(BCMEX
)
2291 nano
/stamp-h1
: libncurses
2292 cd nano
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2293 CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -I$(TOP)/libncurses/staged/usr/include -ffunction-sections -fdata-sections" \
2294 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -I$(TOP)/libncurses/staged/usr/include -ffunction-sections -fdata-sections" \
2295 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libncurses/staged/usr/lib -fPIC" \
2296 ac_cv_lib_ncursesw_get_wch
=no \
2297 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-all
--without-libiconv-prefix
--disable-utf8
2301 @
$(MAKE
) -C nano
$(PARALLEL_BUILD
)
2304 -@
$(MAKE
) -C nano
clean
2305 @
rm -f nano
/stamp-h1 nano
/Makefile nano
/src
/Makefile
2308 install -d
$(INSTALLDIR
)/nano
/usr
/sbin
2309 install -D nano
/src
/nano
$(INSTALLDIR
)/nano
/usr
/sbin
/nano
2310 $(STRIP
) -s
$(INSTALLDIR
)/nano
/usr
/sbin
/nano
2312 libcurl
/stamp-h1
: zlib openssl
2313 cd libcurl
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2314 CPPFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections -I$(TOP)/zlib" \
2315 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2316 $(CONFIGURE
) --prefix=/usr
--disable-thread
--enable-shared
--enable-static \
2317 --enable-ares
--enable-cookies
--enable-crypto-auth
--enable-nonblocking \
2318 --enable-file
--enable-ftp
--enable-http
--enable-ipv6
--enable-tftp \
2319 --disable-nls
--disable-ares
--disable-dict
--disable-debug
--disable-gopher \
2320 --disable-ldap
--disable-manual
--disable-telnet
--disable-verbose \
2321 --with-random
="/dev/urandom" --with-ssl
="$(TOP)/openssl" \
2322 --without-gnutls
--without-krb4
--without-libidn \
2323 --with-linux-headers
=$(LINUXDIR
)/include \
2324 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2325 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
2326 touch libcurl
/stamp-h1
2328 libcurl
: libcurl
/stamp-h1
2329 @
$(MAKE
) -C libcurl
$(PARALLEL_BUILD
)
2332 -@
$(MAKE
) -C libcurl
clean
2333 @
rm -f libcurl
/stamp-h1 libcurl
/Makefile
2335 libcurl-install
: libcurl
2336 install -d
$(INSTALLDIR
)/libcurl
/usr
/lib
2337 install -D libcurl
/lib
/.libs
/libcurl.so
.4.3.0 $(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2338 $(STRIP
) -s
$(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.3.0
2339 cd
$(INSTALLDIR
)/libcurl
/usr
/lib
/ && \
2340 ln
-sf libcurl.so
.4.3.0 libcurl.so
.4 && \
2341 ln
-sf libcurl.so
.4.3.0 libcurl.so
2344 cd libevent
&& CC
=$(CC
) \
2345 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2346 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2348 touch libevent
/stamp-h1
2350 libevent
: libevent
/stamp-h1
2352 $(MAKE
) -C libevent
$(PARALLEL_BUILD
)
2353 $(MAKE
) -C libevent DESTDIR
=$(TOP
)/libevent
/staged
install
2356 -@
$(MAKE
) -C libevent
clean
2357 @
rm -f libevent
/stamp-h1 libevent
/Makefile
2358 @
rm -rf libevent
/staged
2360 libevent-install
: libevent
2361 install -d
$(INSTALLDIR
)/libevent
/usr
/lib
2362 install libevent
/.libs
/libevent-2.0.so
.5.1.9 $(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2363 $(STRIP
) -s
$(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
2366 cd libiconv
&& CC
=$(CC
) \
2367 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2368 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2369 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-static
--enable-shared
2370 touch libiconv
/stamp-h1
2372 libiconv
: libiconv
/stamp-h1
2374 $(MAKE
) -C libiconv
$(PARALLEL_BUILD
)
2375 $(MAKE
) -C libiconv DESTDIR
=$(TOP
)/libiconv
/staged
install
2378 -@
$(MAKE
) -C libiconv
clean
2379 @
rm -rf libiconv
/stamp-h1 libiconv
/Makefile
2380 @
rm -rf libiconv
/staged
2382 libiconv-install
: libiconv
2383 install -d
$(INSTALLDIR
)/libiconv
/usr
/lib
2384 install libiconv
/lib
/.libs
/libiconv.so
.2.5.1 $(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2385 $(STRIP
) -s
$(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2.5.1
2386 cd
$(INSTALLDIR
)/libiconv
/usr
/lib
/ && \
2387 ln
-sf libiconv.so
.2.5.1 libiconv.so
.2 && \
2388 ln
-sf libiconv.so
.2.5.1 libiconv.so
2390 transmission
/stamp-h1
: openssl libcurl libevent zlib
2391 cd transmission
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2393 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2394 --param large-function-growth=800 --param max-inline-insns-single=3000 \
2395 -ffunction-sections -fdata-sections" \
2396 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC \
2397 -L$(TOP)/zlib -L$(TOP)/openssl -L$(TOP)/libcurl/lib/.libs -L$(TOP)/libevent/.libs" \
2399 $(CONFIGURE
) --target
=$(HOST
) --host
=$(HOST
) --build
=x86_64-linux-gnu
--prefix=/usr
--disable-nls \
2400 --enable-lightweight
--enable-largefile
--enable-utp
--without-gtk \
2401 LIBCURL_CFLAGS
="-I$(TOP)/libcurl/include" \
2402 LIBCURL_LDFLAGS
="-L$(TOP)/libcurl/lib/.libs/" \
2403 LIBCURL_LIBS
="-lcurl" \
2404 LIBEVENT_CFLAGS
="-I$(TOP)/libevent/include" \
2405 LIBEVENT_LDFLAGS
="-L$(TOP)/libevent/.libs" \
2406 LIBEVENT_LIBS
="-levent" \
2407 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
2408 OPENSSL_LDFLAGS
="-L$(TOP)/openssl" \
2409 OPENSSL_LIBS
="-lcrypto -lssl" \
2410 ZLIB_CFLAGS
="-I$(TOP)/zlib" \
2411 ZLIB_LDFLAGS
="-L$(TOP)/zlib" \
2413 touch transmission
/stamp-h1
2415 transmission
: transmission
/stamp-h1
2417 $(MAKE
) -C transmission
$(PARALLEL_BUILD
)
2420 -@
$(MAKE
) -C transmission
clean
2421 @
rm -f transmission
/stamp-h1 transmission
/Makefile
2423 transmission-install
: transmission
2424 $(MAKE
) -C transmission DESTDIR
=$(INSTALLDIR
)/transmission install-strip
2425 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/share
/man
2426 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-cli
2427 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-show
2428 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-edit
2429 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-create
2430 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-daemon
2431 ifeq ($(TCONFIG_TR_EXTRAS
),y
)
2432 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2434 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
2440 btgui-install
: btgui
2441 install -d
$(INSTALLDIR
)/btgui
/usr
/bin
2442 install -D transmission
/btcheck
$(INSTALLDIR
)/btgui
/usr
/bin
/btcheck
2444 libnfsidmap
/stamp-h1
:
2446 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2447 ac_cv_func_malloc_0_nonnull
=yes \
2448 ac_cv_func_realloc_0_nonnull
=yes \
2449 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
2450 touch libnfsidmap
/stamp-h1
2452 libnfsidmap
: libnfsidmap
/stamp-h1
2454 $(MAKE
) -C libnfsidmap
$(PARALLEL_BUILD
)
2457 -@
$(MAKE
) -C libnfsidmap
clean
2458 @
rm -f libnfsidmap
/stamp-h1
2459 @
rm -rf libnfsidmap
/staged
2461 libnfsidmap-install
: libnfsidmap
2462 install -d
$(TOP
)/libnfsidmap
/staged
2463 $(MAKE
) -C libnfsidmap DESTDIR
=$(TOP
)/libnfsidmap
/staged
install
2467 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2468 $(MAKE
) -C portmap CC
=$(CC
) AR
=$(AR
) LD
=$(LD
) RANLIB
=$(RANLIB
) RPCUSER
="nobody"
2469 touch portmap
/stamp-h1
2471 portmap
: portmap
/stamp-h1
2473 $(MAKE
) -C portmap
$(PARALLEL_BUILD
)
2476 -@
$(MAKE
) -C portmap
clean
2477 @
rm -f portmap
/stamp-h1
2479 portmap-install
: portmap
2480 install -d
$(INSTALLDIR
)/portmap
/usr
/sbin
2481 install -D portmap
/portmap
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2482 $(STRIP
) -s
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
2486 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2487 $(CONFIGURE
) --prefix=$(TOP
)/e2fsprogs
/staged
--enable-shared
--enable-static
2488 touch e2fsprogs
/stamp-h1
2490 e2fsprogs
: e2fsprogs
/stamp-h1
2492 $(MAKE
) -C e2fsprogs
$(PARALLEL_BUILD
)
2495 -@
$(MAKE
) -C e2fsprogs
clean
2496 @
rm -f e2fsprogs
/stamp-h1
2497 @
rm -f e2fsprogs
/Makefile
2498 @
rm -rf e2fsprogs
/staged
2500 nfs-utils
/stamp-h1
: libevent-install e2fsprogs portmap libnfsidmap-install
2501 cd nfs-utils
&& STRIP
=$(STRIP
) \
2502 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
2503 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
2504 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
2505 LDFLAGS
="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
2506 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2507 ac_cv_func_malloc_0_nonnull
=yes \
2508 ac_cv_func_realloc_0_nonnull
=yes \
2509 $(CONFIGURE
) --disable-gss
--without-tcp-wrappers
--enable-static
--enable-shared \
2510 --enable-nfsv4
--enable-nfsv3
2511 touch nfs-utils
/stamp-h1
2513 nfs-utils
: nfs-utils
/stamp-h1
2515 $(MAKE
) -C nfs-utils
$(PARALLEL_BUILD
)
2518 -@
$(MAKE
) -C nfs-utils
clean
2519 @
rm -f nfs-utils
/stamp-h1
2521 nfs-utils-install
: nfs-utils
2522 install -d
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
2523 install -D nfs-utils
/utils
/mount
/mount.nfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2524 install -D nfs-utils
/utils
/nfsd
/nfsd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2525 install -D nfs-utils
/utils
/showmount
/showmount
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2526 install -D nfs-utils
/utils
/exportfs
/exportfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2527 install -D nfs-utils
/utils
/statd
/statd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2528 install -D nfs-utils
/utils
/mountd
/mountd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2529 install -D nfs-utils
/nfs.rc
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfs.rc
2530 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
2531 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
2532 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
2533 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
2534 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
2535 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
2537 tinc
/stamp-h1
: openssl zlib lzo
2538 @cd tinc
&& autoreconf
-fsi
&& \
2539 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
2540 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
2541 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
2545 --localstatedir
=/var \
2546 --with-zlib-include
="$(TOP)/zlib" \
2547 --with-zlib-lib
="$(TOP)/zlib" \
2548 --with-lzo-include
="$(TOP)/lzo/include" \
2549 --with-lzo-lib
="$(TOP)/lzo/src/.libs" \
2550 --with-openssl-include
="$(TOP)/openssl/include" \
2551 --with-openssl-lib
="$(TOP)/openssl" \
2554 @touch tinc
/stamp-h1
2558 @
$(MAKE
) -C tinc LIBS
="-lcrypto $(TOP)/zlib/libz.a -llzo2" $(PARALLEL_BUILD
)
2561 -@
$(MAKE
) -C tinc
clean
2562 @
rm -f tinc
/stamp-h1
2565 install -D tinc
/src
/tinc
$(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2566 install -D tinc
/src
/tincd
$(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2567 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tinc
2568 $(STRIP
) $(INSTALLDIR
)/tinc
/usr
/sbin
/tincd
2572 CFLAGS
="-Os -Wall --host=$(HOST) --target=$(HOST) $(EXTRACFLAGS)" \
2574 chmod
0755 sd-idle
/sd-idle
2575 touch sd-idle
/stamp-h1
2578 -@
$(MAKE
) -C sd-idle
clean
2579 @
rm -f sd-idle
/stamp-h1
2581 sd-idle-install
: sd-idle
/stamp-h1
2582 install -d
$(INSTALLDIR
)/sd-idle
/usr
/bin
2583 install -D sd-idle
/sd-idle
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2584 $(STRIP
) -s
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
2588 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2589 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
2590 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
2591 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
2592 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
2593 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
2594 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
2595 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
2596 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
2604 -@
$(MAKE
) -C snmp
clean
2605 @
rm -f snmp
/stamp-h1
2608 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2609 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
2612 cd apcupsd
&& touch autoconf
/variables.mak
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2613 $(MAKE
) configure
&& \
2614 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
2615 LDFLAGS
="-L$(TOOLCHAIN)/lib -ffunction-sections -fdata-sections" \
2616 $(CONFIGURE
) --prefix=/usr
--without-x
--enable-usb
--disable-pcnet
--enable-cgi \
2617 --disable-lgd
--enable-net
--sysconfdir
=/usr
/local
/apcupsd
--bindir=/bin \
2618 --disable-dumb
--disable-snmp
--disable-net-snmp
--with-cgi-bin
=/www
/apcupsd
--with-serial-dev
=
2619 touch apcupsd
/stamp-h1
2621 apcupsd
: apcupsd
/stamp-h1
2622 $(MAKE
) -C apcupsd
$(PARALLEL_BUILD
)
2625 -@
$(MAKE
) -C apcupsd
clean
2626 @
rm -f apcupsd
/stamp-h1
2627 @
rm -f apcupsd
/config
*
2629 apcupsd-install
: apcupsd
2630 $(MAKE
) -C apcupsd DESTDIR
=$(INSTALLDIR
)/apcupsd
install
2631 @
rm -rf
$(INSTALLDIR
)/apcupsd
/sbin
/apctest
2632 @
rm -rf
$(INSTALLDIR
)/apcupsd
/www
/apcupsd
/ups
*.cgi
2633 $(STRIP
) $(INSTALLDIR
)/apcupsd
/sbin
/*
2634 $(STRIP
) $(INSTALLDIR
)/apcupsd
/www
/apcupsd
/*
2637 cd
$(TOP
)/libsodium
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2638 $(CONFIGURE
) --prefix=/usr
--disable-ssp
--enable-minimal
2639 touch libsodium
/stamp-h1
2641 libsodium
: libsodium
/stamp-h1
2642 $(MAKE
) -C libsodium
$(PARALLEL_BUILD
)
2644 libsodium-install
: libsodium
2645 install -d
$(INSTALLDIR
)/libsodium
/usr
/lib
2646 install -D libsodium
/src
/libsodium
/.libs
/libsodium.so
.18.0.1 $(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.18.0.1
2647 $(STRIP
) -s
$(INSTALLDIR
)/libsodium
/usr
/lib
/libsodium.so
.18.0.1
2648 cd
$(INSTALLDIR
)/libsodium
/usr
/lib
/ && \
2649 ln
-sf libsodium.so
.18.0.1 libsodium.so
.18 && \
2650 ln
-sf libsodium.so
.18.0.1 libsodium.so
2653 -$(MAKE
) -C libsodium
clean
2654 @
rm -rf libsodium
/stamp-h1
2656 dnscrypt
/stamp-h1
: libsodium
2657 cd
$(TOP
)/dnscrypt
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2658 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2659 CPPFLAGS
="-I$(TOP)/libsodium/src/libsodium/include" \
2660 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -L$(TOP)/libsodium/src/libsodium/.libs" \
2661 $(CONFIGURE
) --prefix=/usr
--disable-ssp
2662 touch dnscrypt
/stamp-h1
2664 dnscrypt
: dnscrypt
/stamp-h1
2665 $(MAKE
) -C dnscrypt
$(PARALLEL_BUILD
)
2667 dnscrypt-install
: dnscrypt
2668 install -D dnscrypt
/src
/proxy
/.libs
/dnscrypt-proxy
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2669 install -D dnscrypt
/src
/hostip
/.libs
/hostip
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2670 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
2671 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
2674 -@
$(MAKE
) -C dnscrypt
clean
2675 @
rm -rf dnscrypt
/stamp-h1 dnscrypt
/src
/dnscrypt-proxy
/.deps dnscrypt
/Makefile
2677 tor
/stamp-h1
: openssl zlib libevent
2678 cd
$(TOP
)/tor
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2679 CFLAGS
="-O2 -Wall $(EXTRACFLAGS)" \
2680 $(CONFIGURE
) --prefix=/usr
--with-libevent-dir
=$(TOP
)/libevent
/staged
/usr
/local \
2681 --with-openssl-dir
=$(TOP
)/openssl
--with-zlib-dir
=$(TOP
)/zlib \
2686 $(MAKE
) -C tor
$(PARALLEL_BUILD
)
2689 install -D tor
/src
/or
/tor
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2690 $(STRIP
) -s
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
2693 -@
$(MAKE
) -C tor
clean
2694 @
rm -rf tor
/stamp-h1 tor
/Makefile
2698 $(MAKE
) -C udpxy CFLAGS
="-Os -Wall --host=$(HOST) --target=$(HOST) $(EXTRACFLAGS)" \
2699 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections"
2700 touch udpxy
/stamp-h1
2703 -@
$(MAKE
) -C udpxy
clean
2704 @
rm -f udpxy
/stamp-h1
2706 udpxy-install
: udpxy
/stamp-h1
2707 install -d
$(INSTALLDIR
)/udpxy
/usr
/bin
2708 install -D udpxy
/udpxy
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2709 $(STRIP
) -s
$(INSTALLDIR
)/udpxy
/bin
/udpxy
2712 $(MAKE
) -C mdadm
$(PARALLEL_BUILD
)
2714 mdadm-install
: mdadm
2715 install -D mdadm
/mdadm
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2716 $(STRIP
) -s
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
2719 -@
$(MAKE
) -C mdadm
clean
2722 cd
$(TOP
)/libmnl
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2723 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2724 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
2725 $(CONFIGURE
) --prefix=/usr
2726 touch libmnl
/stamp-h1
2728 libmnl
: libmnl
/stamp-h1
2730 $(MAKE
) -C libmnl DESTDIR
=$(TOP
)/libmnl
/staged
install
2732 libmnl-install
: libmnl
2733 install -d
$(INSTALLDIR
)/libmnl
/usr
/lib
/
2734 install libmnl
/src
/.libs
/libmnl.so
.0.1.0 $(INSTALLDIR
)/libmnl
/usr
/lib
/libmnl.so
.0.1.0
2735 $(STRIP
) $(INSTALLDIR
)/libmnl
/usr
/lib
/libmnl.so
.0.1.0
2736 cd
$(INSTALLDIR
)/libmnl
/usr
/lib
/ && \
2737 ln
-sf libmnl.so
.0.1.0 libmnl.so
.0 && \
2738 ln
-sf libmnl.so
.0.1.0 libmnl.so
2741 -@
$(MAKE
) -C libmnl
clean
2742 -@
rm -rf libmnl
/staged
2744 ipset
/stamp-h1
: libmnl
2745 cd
$(TOP
)/ipset
&& CC
=$(CC
) STRIP
=$(STRIP
) \
2747 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
2748 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
2749 libmnl_CFLAGS
="-I$(TOP)/libmnl/staged/usr/include" \
2750 libmnl_LIBS
="-L$(TOP)/libmnl/staged/usr/lib -lmnl" \
2751 $(CONFIGURE
) --prefix=/usr
--with-kmod
=no
2752 touch ipset
/stamp-h1
2754 ipset
: ipset
/stamp-h1
2757 ipset-install
: ipset
2758 install -D ipset
/src
/ipset
$(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2759 install -d
$(INSTALLDIR
)/ipset
/usr
/lib
/
2760 install ipset
/lib
/.libs
/libipset.so
.3.6.0 $(INSTALLDIR
)/ipset
/usr
/lib
/libipset.so
.3.6.0
2761 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/lib
/libipset.so
.3.6.0
2762 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
2763 cd
$(INSTALLDIR
)/ipset
/usr
/lib
/ && \
2764 ln
-sf libipset.so
.3.6.0 libipset.so
.3 && \
2765 ln
-sf libipset.so
.3.6.0 libipset.so
2768 -@
$(MAKE
) -C ipset
clean
2769 -@
rm -rf ipset
/Makefile ipset
/stamp-h1
2772 @
$(MAKE
) -C comgt CC
=$(CC
) CFLAGS
="$(EXTRACFLAGS)" LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" comgt
2774 comgt-install
: comgt
2775 install -D comgt
/comgt
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2776 cd
$(INSTALLDIR
)/comgt
/usr
/sbin
/ && \
2778 $(STRIP
) -s
$(INSTALLDIR
)/comgt
/usr
/sbin
/comgt
2779 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/gcom
2780 @cp
-f comgt
/gcom
/* $(TARGETDIR
)/rom
/etc
/gcom
/
2783 -@
$(MAKE
) -C comgt
clean
2790 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
2794 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
2797 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
2800 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
2805 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
2807 .PHONY
: all clean distclean mrproper
install package image
2808 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
2809 .PHONY
: dummy libnet libpcap