1 # Broadcom Linux Router Makefile
3 # Copyright 2005, Broadcom Corporation
6 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
7 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
8 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
9 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
15 #TOMATO_EXPERIMENTAL=0
17 #export PARALLEL_BUILD :=
18 export PARALLEL_BUILD
:= -j
`grep -c '^processor' /proc/cpuinfo`
23 SEP
=echo
"\033[41;1m $@ \033[0m"
44 # obj-y += vlan # use Busybox vconfig
52 obj-
$(TCONFIG_TOR
) += tor
53 obj-
$(TCONFIG_TOR
) += libevent
54 obj-
$(TCONFIG_TOR
) += zlib
55 obj-
$(TCONFIG_DNSCRYPT
) += dnscrypt
56 obj-
$(TCONFIG_SNMP
) += snmp
57 obj-
$(TCONFIG_SDHC
) += mmc
59 # !!TB - updated Broadcom Wireless driver
67 obj-
$(TCONFIG_RAID
) += mdadm
69 obj-
$(TCONFIG_NFS
) += portmap
70 obj-
$(TCONFIG_NFS
) += e2fsprogs
71 obj-
$(TCONFIG_NFS
) += libevent
72 obj-
$(TCONFIG_NFS
) += libnfsidmap
73 obj-
$(TCONFIG_NFS
) += nfs-utils
76 obj-
$(TCONFIG_NOCAT
) += nocat
79 obj-
$(TCONFIG_USB
) += p910nd
81 obj-
$(TCONFIG_UPS
) += apcupsd
83 ifeq ($(CONFIG_LINUX26
),y
)
84 obj-
$(TCONFIG_USB
) += sd-idle
86 obj-
$(TCONFIG_USB
) += scsi-idle
91 obj-y
+= usbmodeswitch
92 obj-
$(TCONFIG_FTP
) += vsftpd
94 ifeq ($(CONFIG_LINUX26
),y
)
95 ifeq ($(TCONFIG_SAMBASRV
),y
)
98 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
103 ifeq ($(TCONFIG_SAMBASRV
),y
)
104 ifeq ($(TCONFIG_SAMBA3
),y
)
111 ifeq ($(TCONFIG_IPV6
),y
)
112 export TCONFIG_IPV6
:= y
117 ifeq ($(TCONFIG_IPSEC
),y
)
118 export TCONFIG_IPSEC
:= y
123 ifeq ($(TCONFIG_RAID
),y
)
124 export TCONFIG_RAID
:= y
129 obj-
$(NEED_SAMBA2
) += samba
130 obj-
$(NEED_SAMBA3
) += samba3
131 obj-
$(TCONFIG_NTFS
) += ntfs-3g
132 obj-
$(TCONFIG_EBTABLES
) += ebtables
133 #obj-$(TCONFIG_IPV6) += libdaemon
134 #obj-$(TCONFIG_IPV6) += radvd
135 obj-
$(TCONFIG_IPV6
) += dhcpv6
137 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
138 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
139 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
140 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
141 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
142 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
143 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
144 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
145 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
146 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
147 MEDIA_SERVER_STATIC
=y
149 obj-y
+= libnfnetlink
152 obj-
$(CONFIG_LINUX26
) += ipset
156 # configurable packages
158 obj-
$(TCONFIG_L2TP
) += xl2tpd
159 obj-
$(TCONFIG_PPTP
) += accel-pptp
160 obj-
$(TCONFIG_PPTPD
) += pptpd
161 obj-
$(TCONFIG_HTTPS
) += openssl
162 obj-
$(TCONFIG_SSH
) += dropbear
163 obj-
$(TCONFIG_ZEBRA
) += zebra
164 # obj-$(TCONFIG_IPP2P) += ipp2p
165 obj-
$(TCONFIG_LZO
) += lzo
166 obj-
$(TCONFIG_OPENVPN
) += openvpn
167 obj-
$(TCONFIG_EMF
) += emf
168 obj-
$(TCONFIG_EMF
) += igs
170 obj-
$(TCONFIG_BBT
) += openssl
171 obj-
$(TCONFIG_BBT
) += libevent
172 obj-
$(TCONFIG_BBT
) += libcurl
173 obj-
$(TCONFIG_BBT
) += transmission
174 obj-
$(TCONFIG_BT
) += btgui
175 obj-
$(TCONFIG_BBT
) += zlib
176 #obj-$(TCONFIG_BBT) += libiconv
178 obj-
$(CONFIG_LINUX26
) += hotplug2
179 obj-
$(CONFIG_LINUX26
) += udevtrigger
181 ifeq ($(TCONFIG_OPENVPN
),y
)
182 export FULL_OPENSSL
:= y
184 ifeq ($(TCONFIG_FTP_SSL
),y
)
185 export FULL_OPENSSL
:= y
187 ifeq ($(TCONFIG_BBT
),y
)
188 export FULL_OPENSSL
:= y
190 ifeq ($(TCONFIG_TOR
),y
)
191 export FULL_OPENSSL
:= y
201 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
202 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
210 all: clean-build libc
$(obj-y
) kernel
213 kernel
: $(LINUXDIR
)/.config
216 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
217 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
219 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
220 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
); \
222 ifeq ($(CONFIG_LINUX26
),y
)
223 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
) $(PARALLEL_BUILD
)
228 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
) $(PARALLEL_BUILD
)
230 lzma-loader-install
: lzma-loader
235 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
) $(PARALLEL_BUILD
)
238 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
239 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
241 install package
: $(obj-install
) $(LINUXDIR
)/.config
244 install -d
$(TARGETDIR
)
248 $(MAKE
) -C
$(LINUXDIR
) modules_install \
249 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" \
250 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
252 ifneq ($(CONFIG_LINUX26
),y
)
253 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
254 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
255 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
256 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
257 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
258 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
259 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
261 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
264 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
267 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
268 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
269 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
270 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
271 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
272 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
273 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
274 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
275 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
276 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
279 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
280 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
281 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
282 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
283 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
284 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
285 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
286 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
287 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
288 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
289 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
290 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfs
/* .
&& rm -rf hfs || true
291 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
292 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
293 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
294 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
295 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
296 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
297 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
298 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
299 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
300 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
301 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
302 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
303 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
304 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
305 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
306 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
307 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
308 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
309 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
310 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
311 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
312 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
313 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
314 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
315 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
316 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
317 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
318 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
319 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
320 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
321 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
322 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
323 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
325 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
326 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
327 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
328 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
329 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
332 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
333 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
336 ifneq ($(TCONFIG_L7
),y
)
337 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
341 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
342 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
343 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
344 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
345 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
346 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
347 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
348 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
349 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
350 ifeq ($(TCONFIG_SSH
),y
)
351 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
353 ifeq ($(TCONFIG_BBT
),y
)
354 install $(LIBDIR
)/librt-0.9
.30.1.so
$(TARGETDIR
)/lib
/librt.so
.0
356 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
357 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
358 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
361 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
365 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
366 @
$(SRCBASE
)/btools
/libfoo.pl
368 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
370 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
371 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
373 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
374 # separated/copied extra stuff
375 @
rm -rf
$(PLATFORMDIR
)/extras
376 @mkdir
$(PLATFORMDIR
)/extras
377 @mkdir
$(PLATFORMDIR
)/extras
/ipsec
378 @mkdir
$(PLATFORMDIR
)/extras
/raid
379 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
380 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/usr/lib/iptables/libipt_policy.*o $(PLATFORMDIR)/extras/ipsec/ || true
382 $(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
383 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
385 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/mdadm
$(PLATFORMDIR
)/extras
/raid
/ || true
386 $(if
$(TCONFIG_RAID
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md
/*.ko
$(PLATFORMDIR
)/extras
/raid
/ || true
387 $(if
$(TCONFIG_RAID
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/md || true
389 @cp
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ip_set
*o
$(PLATFORMDIR
)/extras
/ || true
390 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
391 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
392 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
393 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
394 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
395 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
396 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
397 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
398 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
399 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
400 $(if
$(TCONFIG_NFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
401 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
402 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
403 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
404 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
405 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
407 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
408 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
409 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
410 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*acm.
*o
$(PLATFORMDIR
)/extras
/ || true
411 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_ether.
*o
$(PLATFORMDIR
)/extras
/ || true
412 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
413 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
414 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
415 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
417 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ch341.
*o
$(PLATFORMDIR
)/extras
/ || true
418 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
419 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
420 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
421 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
422 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
423 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
424 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
425 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
426 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
427 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
428 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
429 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
430 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
431 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
432 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
433 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
434 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
435 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
436 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
437 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
438 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
439 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
440 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
441 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
442 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
443 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
444 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
445 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
446 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
447 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
448 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/xfrm || true
449 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key
/*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
450 $(if
$(TCONFIG_IPSEC
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/key || true
451 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/xfrm
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
452 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv*/tunnel*.ko $(PLATFORMDIR)/extras/ipsec/ || true
453 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ah
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
454 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/esp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
455 $(if
$(TCONFIG_IPSEC
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv
*/ipcomp
*.ko
$(PLATFORMDIR
)/extras
/ipsec
/ || true
456 # $(if $(TCONFIG_IPSEC),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_policy.ko $(PLATFORMDIR)/extras/ipsec/ || true
458 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
459 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
460 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
461 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
462 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
463 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
464 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
466 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
467 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
468 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
469 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
470 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
471 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
472 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
473 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
474 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
475 $(if
$(TCONFIG_USB
),@cp
-f
,$(if
$(TCONFIG_SDHC
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
476 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
477 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
478 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfs.
*o
$(PLATFORMDIR
)/extras
/ || true
479 $(if
$(TCONFIG_HFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
481 ifneq ($(TCONFIG_USB
),y
)
482 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
483 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
484 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
487 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
488 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
489 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
490 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
491 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
493 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
494 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
495 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
496 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
497 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
498 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
499 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
501 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
502 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
504 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
505 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
506 @cp
-r
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
508 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
509 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
510 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
511 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
512 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
513 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
514 ifneq ($(NEED_EX_USB
),y
)
515 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
516 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
518 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
520 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
521 ifeq ($(TCONFIG_L7PAT
),y
)
522 @cd layer7
&& .
/squish.sh
523 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
526 ifeq ($(TCONFIG_PPTPD
),y
)
527 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/vpn
528 cp rc
/vpn
/* $(TARGETDIR
)/rom
/etc
/vpn
529 chmod
+x
$(TARGETDIR
)/rom
/etc
/vpn
/*
532 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
533 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
536 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
538 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
539 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-nopad | tee target.
info
541 # Package kernel and filesystem
542 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
543 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
544 # $(MAKE) -C $(LINUXDIR) zImage ; \
546 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
547 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
550 # Pad self-booting Linux to a 64 KB boundary
551 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
552 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
553 # Append filesystem to self-booting Linux
554 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
557 libc
: $(LIBDIR
)/ld-uClibc.so
.0
558 # $(MAKE) -C ../../../tools-src/uClibc all
559 # $(MAKE) -C ../../../tools-src/uClibc install
566 clean: clean-build
$(obj-clean
)
567 rm -rf layer7
/squished
568 rm -f .ipv6-y .ipv6-n
569 rm -f .fullssl-y .fullssl-n
575 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
576 rm -rf
$(PLATFORMDIR
)/extras
579 ifneq ($(INSIDE_MAK
),1)
580 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
582 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
588 CONFIG_IN
:= config
/config.in
590 config
/conf config
/mconf
:
594 @config
/conf
$(CONFIG_IN
)
597 @config
/mconf
$(CONFIG_IN
)
599 roldconf
: config
/conf
600 @config
/conf
-o
$(CONFIG_IN
)
601 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
604 @
$(MAKE
) -C
$(LINUXDIR
) config
607 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
610 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
611 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
614 @
$(MAKE
) -C busybox oldconfig
616 config conf
: rconf kconf
618 menuconfig mconf
: rmconf kmconf
621 @
rm -f .ipv6-y .ipv6-n
622 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
625 .fullssl-y .fullssl-n
:
626 @
rm -f .fullssl-y .fullssl-n
627 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
630 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
632 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
636 # overrides and extra dependencies
640 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" $(PARALLEL_BUILD
)
643 rm -rf
$(INSTALLDIR
)/busybox
644 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
647 -@
$(MAKE
) -C busybox
distclean
650 $(MAKE
) -C busybox menuconfig
653 httpd
: shared nvram mssl
658 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
662 @
$(MAKE
) -C matrixssl
/src
668 -@
$(MAKE
) -C matrixssl
/src
clean
671 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
672 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
673 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
674 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
675 PTHREAD_LIBS
="-lpthread" \
677 @touch cyassl
/stamp-h1
679 cyassl
: cyassl
/stamp-h1
684 -@
$(MAKE
) -C cyassl
clean
685 @
rm -f cyassl
/stamp-h1
690 ifeq ($(FULL_OPENSSL
),y
)
691 OPENSSL_CIPHERS
:=enable-rc5
693 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-engine no-aes192 no-cast
698 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
699 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
700 shared
$(OPENSSL_CIPHERS
) \
701 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
702 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
703 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
704 no-zlib no-engines no-sse2 \
705 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
707 @
$(MAKE
) -C openssl
clean
708 @touch openssl
/stamp-h1
710 openssl
: openssl
/stamp-h1
713 -@
$(MAKE
) -C openssl
clean
714 @
rm -f openssl
/stamp-h1
716 openssl-install
: openssl
717 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
718 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
719 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
721 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
722 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
723 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
725 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
727 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
728 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
730 ifeq ($(FULL_OPENSSL
),y
)
731 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
732 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
733 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
736 mssl
: $(if
$(FULL_OPENSSL
),openssl
,cyassl
)
743 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
744 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
746 bridge
: bridge
/Makefile
751 -@
$(MAKE
) -C bridge
clean
752 @
rm -f bridge
/Makefile
755 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
756 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
760 @
$(MAKE
) -C dnsmasq
$(PARALLEL_BUILD
) \
761 COPTS
="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) $(if $(CONFIG_LINUX26),-DUSE_IPSET,-DNO_IPSET) -DHAVE_BROKEN_RTC -DHAVE_TOMATO $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
762 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
765 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
766 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
769 ifeq ($(CONFIG_LINUX26
),y
)
770 cp
-f iptables
/extensions
/libipt_ipp2p_K26.c iptables
/extensions
/libipt_ipp2p.c
772 cp
-f iptables
/extensions
/libipt_ipp2p_K24.c iptables
/extensions
/libipt_ipp2p.c
775 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
778 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
779 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
780 ln
-sf iptables iptables-restore
782 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
783 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
785 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
787 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
788 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
789 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
791 ifeq ($(TCONFIG_IPV6
),y
)
792 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
793 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
794 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
795 ln
-sf ip6tables ip6tables-restore
799 -@
$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
803 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,) $(PARALLEL_BUILD
)
804 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
807 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
809 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
810 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
811 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
812 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
813 @touch rp-pppoe
/src
/stamp-h1
815 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
816 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
$(PARALLEL_BUILD
)
819 -@
$(MAKE
) -C rp-pppoe
/src
clean
820 @
rm -f rp-pppoe
/src
/pppoe-relay
821 @
rm -f rp-pppoe
/src
/stamp-h1
823 rp-pppoe-install
: rp-pppoe
824 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
825 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
826 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
827 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
830 upnp
: nvram shared iptables
832 libnfnetlink
/stamp-h1
:
833 cd
$(TOP
)/libnfnetlink
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
834 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
835 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
836 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
839 libnfnetlink
: libnfnetlink
/stamp-h1
841 $(MAKE
) -C libnfnetlink
843 libnfnetlink-install
:
844 install -D libnfnetlink
/src
/.libs
/libnfnetlink.so
.0.2.0 $(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
845 $(STRIP
) -s
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/libnfnetlink.so
.0.2.0
846 cd
$(INSTALLDIR
)/libnfnetlink
/usr
/lib
/ && \
847 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
.0 && \
848 ln
-sf libnfnetlink.so
.0.2.0 libnfnetlink.so
851 #ifeq ($(TCONFIG_IPV6),y)
852 # @cd miniupnpd && ./genconfig.sh --leasefile --ipv6
854 @cd miniupnpd
&& .
/genconfig.sh
--leasefile
857 miniupnpd
: iptables miniupnpd-config libnfnetlink
859 $(MAKE
) -C miniupnpd miniupnpd
-f Makefile.linux CC
=$(CC
) \
860 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include -I$(TOP)/libnfnetlink/include" \
861 LDFLAGS
="-L$(TOP)/iptables -liptc -L$(TOP)/libnfnetlink/src/.libs -lnfnetlink" LIBS
="" $(PARALLEL_BUILD
)
864 -@
$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
865 @
rm -f miniupnpd
/config.h
868 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
869 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
874 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
876 $(MAKE
) -C vsftpd
$(PARALLEL_BUILD
)
878 vsftpd-install
: vsftpd
879 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
880 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
884 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
885 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
886 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
887 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
888 --disable-ntfsprogs
--disable-crypto
--without-uuid \
889 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
891 ntfs-3g
: ntfs-3g
/Makefile
892 @
$(MAKE
) -C ntfs-3g
$(PARALLEL_BUILD
)
895 -@
$(MAKE
) -C ntfs-3g
clean
896 @
rm -f ntfs-3g
/Makefile
898 ntfs-3g-install
: ntfs-3g
899 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
900 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
901 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
902 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
903 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
905 libusb10
/Makefile
: libusb10
/Makefile.in
906 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
907 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
909 libusb10
: libusb10
/Makefile
912 libusb10-install
: libusb10
913 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
914 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
917 -@
$(MAKE
) -C
$@
clean
918 @
rm -rf libusb10
/Makefile
920 libusb
/Makefile
: libusb
/Makefile.in
921 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
922 $(CONFIGURE
) --prefix=/usr \
923 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
924 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
925 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
927 libusb
: libusb10 libusb
/Makefile
930 libusb-install
: libusb
931 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
932 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
935 -@
$(MAKE
) -C
$@
clean
936 @
rm -rf libusb
/Makefile
938 usbmodeswitch
: libusb10
939 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
940 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
941 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
943 usbmodeswitchdb-install
:
944 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
945 # compress whitespace
946 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
948 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
951 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
952 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
953 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
954 @mkdir
-p
$(TARGETDIR
)/rom
/etc
955 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
957 #libdaemon: libdaemon/Makefile
960 #libdaemon/Makefile: libdaemon/Makefile.in
961 # cd libdaemon && $(CONFIGURE) ac_cv_func_setpgrp_void=yes \
962 # --disable-dependency-tracking
964 #libdaemon-install: libdaemon
965 # install -D libdaemon/libdaemon/.libs/libdaemon.so.0.5.0 $(INSTALLDIR)/libdaemon/usr/lib/libdaemon.so.0.5.0
966 # $(STRIP) $(INSTALLDIR)/libdaemon/usr/lib/*.so.*
967 # cd $(INSTALLDIR)/libdaemon/usr/lib && \
968 # ln -sf libdaemon.so.0.5.0 libdaemon.so && \
969 # ln -sf libdaemon.so.0.5.0 libdaemon.so.0
972 # -@$(MAKE) -C libdaemon distclean
975 # cd radvd && CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
976 # LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
977 # $(CONFIGURE) --prefix="" --disable-dependency-tracking \
978 # DAEMON_CFLAGS="-I$(TOP)/libdaemon" \
979 # DAEMON_LIBS="-ldaemon -L$(TOP)/libdaemon/libdaemon/.libs"
980 # @$(MAKE) -C radvd clean
981 # @touch radvd/stamp-h1
983 #radvd: libdaemon radvd/stamp-h1
986 # -@$(MAKE) -C radvd distclean
987 # @rm -f radvd/stamp-h1
989 #radvd-install: radvd
990 # install -D radvd/radvd $(INSTALLDIR)/radvd/usr/sbin/radvd
991 # $(STRIP) $(INSTALLDIR)/radvd/usr/sbin/radvd
995 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
996 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
997 ac_cv_func_setpgrp_void
=yes \
998 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
999 @
$(MAKE
) -C dhcpv6
clean
1000 @touch dhcpv6
/stamp-h1
1002 dhcpv6
: dhcpv6
/stamp-h1
1004 @
$(MAKE
) -C dhcpv6 dhcp6c
1006 dhcpv6-install
: dhcpv6
1007 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1008 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
1011 -@
$(MAKE
) -C dhcpv6
clean
1012 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
1025 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
1028 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
1029 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
1032 pptp-client-install
:
1033 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1034 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
1037 accel-pptp
: pppd accel-pptp
/Makefile
1038 @
$(MAKE
) -C accel-pptp
1040 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
1041 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
1042 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
1045 -@
$(MAKE
) -C accel-pptp
clean
1046 @
rm -f accel-pptp
/Makefile
1048 accel-pptp-install
: accel-pptp
1049 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1050 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
1053 cd pptpd
&& $(CONFIGURE
) --prefix=$(INSTALLDIR
)/pptpd
--enable-bcrelay CC
=mipsel-uclibc-gcc \
1054 STRIP
=mipsel-uclibc-strip AR
=mipsel-uclibc-ar LD
=mipsel-uclibc-ld NM
=mipsel-uclibc-nm RANLIB
=mipsel-uclibc-ranlib
1055 touch pptpd
/stamp-h1
1057 pptpd
: pptpd
/stamp-h1
1059 pptpd-install
: pptpd
1061 @
install -D pptpd
/pptpd
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1062 @
install -D pptpd
/bcrelay
$(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1063 @
install -D pptpd
/pptpctrl
$(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1064 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpd
1065 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/bcrelay
1066 @
$(STRIP
) $(INSTALLDIR
)/pptpd
/usr
/sbin
/pptpctrl
1069 -@
$(MAKE
) -C pptpd
clean
1070 rm -rf pptpd
/stamp-h1 pptpd
/.deps
1072 pppd
/Makefile
: pppd
/linux
/Makefile.top
1073 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
1077 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
1080 -@
$(MAKE
) -C pppd
clean
1081 @
rm -f pppd
/Makefile
1084 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1085 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
1086 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1087 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
1088 ifeq ($(TCONFIG_L2TP
),y
)
1089 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
1090 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
1094 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1095 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
1098 @cd zebra
&& rm -f config.cache
&& \
1099 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
1100 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1101 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1102 $(CONFIGURE
) --sysconfdir
=/etc \
1103 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
1104 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
1105 @touch zebra
/stamp-h1
1107 zebra
: zebra
/stamp-h1
1108 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
1111 -@
$(MAKE
) -C zebra
clean
1112 @
rm -f zebra
/stamp-h1
1114 zebra-install
: zebra
1115 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1116 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1117 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1118 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
1119 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
1120 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
1124 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1125 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
1126 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
1127 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1128 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
1129 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1130 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
1133 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
1135 xl2tpd-install
: xl2tpd
1136 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1137 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
1141 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1142 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1147 # @-mkdir -p libnet/lib
1148 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1152 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1155 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1158 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1159 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1164 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1166 iproute2-install
: iproute2
1167 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1168 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1169 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1170 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1176 dropbear
: dropbear
/config.h
1178 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1 $(PARALLEL_BUILD
)
1181 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1182 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1183 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1184 ln
-sf dropbearmulti dropbear
&& \
1185 ln
-sf dropbearmulti dropbearconvert
&& \
1186 ln
-sf dropbearmulti dropbearkey
&& \
1187 ln
-sf dropbearmulti dbclient
&& \
1188 ln
-sf dropbearmulti ssh
&& \
1189 ln
-sf dropbearmulti scp
1192 -@
$(MAKE
) -C dropbear
clean
1193 @
rm -f dropbear
/config.h
1197 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1198 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1199 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1200 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1201 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1202 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1203 @
$(MAKE
) -C dropbear
clean
1209 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1210 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1211 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1212 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1213 touch sqlite
/stamp-h1
1215 sqlite
: sqlite
/stamp-h1
1216 @
$(MAKE
) -C sqlite
all $(PARALLEL_BUILD
)
1219 -@
$(MAKE
) -C sqlite
clean
1220 @
rm -f sqlite
/stamp-h1
1222 sqlite-install
: sqlite
1224 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1225 install -D sqlite
/.libs
/libsqlite3.so
.0 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1226 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1229 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1231 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1232 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1234 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1235 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1237 FFMPEG_PROTOCOLS
:=file
1238 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1240 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
1241 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1243 ffmpeg
/stamp-h1
: zlib
1244 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1245 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1246 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1247 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1248 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1249 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1250 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1251 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1252 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1253 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1254 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1255 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1256 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1257 --extra-libs
="-L$(TOP)/zlib -lz" \
1258 --enable-zlib
--disable-debug
--prefix=''
1259 touch ffmpeg
/stamp-h1
1261 ffmpeg
: ffmpeg
/stamp-h1 zlib
1262 @
$(MAKE
) -C ffmpeg
all $(PARALLEL_BUILD
)
1265 -@
$(MAKE
) -C ffmpeg
clean
1266 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1268 ffmpeg-install
: ffmpeg
1270 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1271 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1272 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1273 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1274 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1275 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1276 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1281 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1282 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1283 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1284 touch libogg
/stamp-h1
1286 libogg
: libogg
/stamp-h1
1287 @
$(MAKE
) -C libogg
all $(PARALLEL_BUILD
)
1290 -@
$(MAKE
) -C libogg
clean
1291 @
rm -f libogg
/stamp-h1
1293 libogg-install
: libogg
1295 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1296 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1297 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1300 flac
/stamp-h1
: libogg
1302 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1303 CPPFLAGS
="-I$(TOP)/libogg/include" \
1304 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1305 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1306 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1307 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1310 flac
: flac
/stamp-h1 libogg
1311 @
$(MAKE
) -C flac
/src
/libFLAC
all $(PARALLEL_BUILD
)
1314 -@
$(MAKE
) -C flac
clean
1315 @
rm -f flac
/stamp-h1
1319 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1320 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1321 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1326 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1330 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
$(PARALLEL_BUILD
)
1333 -@
$(MAKE
) -C jpeg
clean
1334 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1338 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1339 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1340 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1344 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1345 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1346 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1347 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1348 touch libexif
/stamp-h1
1350 libexif
: libexif
/stamp-h1
1351 @
$(MAKE
) -C libexif
all
1354 -@
$(MAKE
) -C libexif
clean
1355 @
rm -f libexif
/stamp-h1
1357 libexif-install
: libexif
1359 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1360 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1361 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1366 CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1367 .
/configure
--shared
--prefix=''
1371 @
$(MAKE
) -C zlib CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) all $(PARALLEL_BUILD
)
1374 -@
$(MAKE
) -C zlib
clean
1375 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1379 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1380 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1381 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1382 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1384 ifeq ($(TCONFIG_BT
),y
)
1385 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1386 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1387 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1389 ifeq ($(TCONFIG_TOR
),y
)
1390 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1391 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1392 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1395 libid3tag
/stamp-h1
: zlib
1397 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1398 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1399 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1400 --disable-debugging
--disable-profiling
1401 touch libid3tag
/stamp-h1
1403 libid3tag
: libid3tag
/stamp-h1 zlib
1404 @
$(MAKE
) -C libid3tag
all $(PARALLEL_BUILD
)
1407 -@
$(MAKE
) -C libid3tag
clean
1408 @
rm -f libid3tag
/stamp-h1
1410 libid3tag-install
: libid3tag
1412 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1413 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1414 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1417 libvorbis
/stamp-h1
: libogg
1419 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1420 CPPFLAGS
="-I$(TOP)/libogg/include" \
1421 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1422 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1423 --with-ogg-includes
="$(TOP)/libogg/include" \
1424 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1425 touch libvorbis
/stamp-h1
1427 libvorbis
: libvorbis
/stamp-h1
1428 @
$(MAKE
) -C libvorbis
/lib
all $(PARALLEL_BUILD
)
1431 -@
$(MAKE
) -C libvorbis
clean
1432 @
rm -f libvorbis
/stamp-h1
1434 libvorbis-install
: libvorbis
1436 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1437 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1438 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1441 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1443 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
$(PARALLEL_BUILD
)
1446 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1447 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1448 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1449 $(CONFIGURE
) --prefix=/usr
1451 igmpproxy
: igmpproxy
/src
/Makefile
1453 @
$(MAKE
) -C igmpproxy
/src
$(PARALLEL_BUILD
)
1455 igmpproxy-install
: igmpproxy
1456 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1457 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1460 -@
$(MAKE
) -C igmpproxy
/src
clean
1461 @
rm -f igmpproxy
/src
/Makefile
1464 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1465 PROGRAMS
=udevtrigger
1468 install -d
$(INSTALLDIR
)
1469 install -d
$(TARGETDIR
)
1470 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1473 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1475 hotplug2-install
: hotplug2
1476 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1477 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1480 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1483 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1486 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1489 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1491 wanuptime
: nvram shared
1493 @
$(MAKE
) -C wanuptime
1496 -@
$(MAKE
) -C wanuptime
clean
1499 install -D wanuptime
/wanuptime
$(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1500 $(STRIP
) $(INSTALLDIR
)/wanuptime
/usr
/sbin
/wanuptime
1503 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1504 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1505 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1507 ebtables-install
: ebtables
1508 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1510 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1511 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1512 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1514 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1515 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1516 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1517 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1519 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1520 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1521 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1524 -@
$(MAKE
) -C ebtables
clean
1529 @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 \
1530 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 \
1531 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 \
1532 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 \
1533 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
1538 @
$(MAKE
) -C glib
$(PARALLEL_BUILD
)
1541 -@
$(MAKE
) -C glib
clean
1545 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1548 nocat
/stamp-h1
: glib-install
1552 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1555 echo
*** integrate glib to nocat installdir
1556 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1557 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1558 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1559 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1560 touch nocat
/stamp-h1
1562 nocat
: nocat
/stamp-h1
1563 @
$(MAKE
) -C nocat
$(PARALLEL_BUILD
)
1566 -@
$(MAKE
) -C nocat
clean
1567 rm -f nocat
/stamp-h1
1570 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1571 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1572 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1573 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1577 CFLAGS
="-O3 -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1581 @
$(MAKE
) -C lzo
$(PARALLEL_BUILD
)
1584 -@
$(MAKE
) -C lzo
clean
1588 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1589 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1590 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1592 openvpn
/.conf
: openssl lzo
1593 cd openvpn
&& CFLAGS
="-O3 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1594 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1595 CPPFLAGS
="-I$(TOP)/lzo/include -I$(TOP)/openssl/include" \
1596 $(CONFIGURE
) --prefix= \
1597 --with-crypto-library
=openssl \
1598 --disable-debug
--disable-plugins
--enable-management
--enable-small \
1599 --disable-selinux
--disable-socks
--enable-password-save \
1600 OPENSSL_SSL_CFLAGS
="-I$(TOP)/openssl/include" \
1601 OPENSSL_SSL_LIBS
="-L$(TOP)/openssl -lssl" \
1602 ac_cv_lib_resolv_gethostbyname
=no
1605 openvpn
: openvpn
/.conf
1606 @
$(MAKE
) -C openvpn
$(PARALLEL_BUILD
)
1609 -@
$(MAKE
) -C openvpn
clean
1610 @
rm -f openvpn
/.conf
1612 openvpn-install
: openvpn
1613 install -D openvpn
/src
/openvpn
/.libs
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1614 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1615 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1618 libcurl
/stamp-h1
: zlib openssl
1619 cd libcurl
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
1620 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1621 CPPFLAGS
="-I$(TOP)/zlib" \
1622 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1623 $(CONFIGURE
) --prefix=/usr
--disable-thread
--enable-shared
--enable-static \
1624 --enable-ares
--enable-cookies
--enable-crypto-auth
--enable-nonblocking \
1625 --enable-file
--enable-ftp
--enable-http
--enable-ipv6
--enable-tftp \
1626 --disable-nls
--disable-ares
--disable-dict
--disable-debug
--disable-gopher \
1627 --disable-ldap
--disable-manual
--disable-telnet
--disable-verbose \
1628 --with-random
="/dev/urandom" --with-ssl
="$(TOP)/openssl" \
1629 --without-gnutls
--without-krb4
--without-libidn \
1630 --with-linux-headers
=$(LINUXDIR
)/include \
1631 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
1632 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
1633 touch libcurl
/stamp-h1
1635 libcurl
: libcurl
/stamp-h1
1636 @
$(MAKE
) -C libcurl
$(PARALLEL_BUILD
)
1639 -@
$(MAKE
) -C libcurl
clean
1640 @
rm -f libcurl
/stamp-h1 libcurl
/Makefile
1642 libcurl-install
: libcurl
1643 install -d
$(INSTALLDIR
)/libcurl
/usr
/lib
1644 install -D libcurl
/lib
/.libs
/libcurl.so
.4.2.0 $(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.2.0
1645 $(STRIP
) -s
$(INSTALLDIR
)/libcurl
/usr
/lib
/libcurl.so
.4.2.0
1646 cd
$(INSTALLDIR
)/libcurl
/usr
/lib
/ && \
1647 ln
-sf libcurl.so
.4.2.0 libcurl.so
.4 && \
1648 ln
-sf libcurl.so
.4.2.0 libcurl.so
1651 cd libevent
&& CC
=$(CC
) \
1652 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1653 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1655 touch libevent
/stamp-h1
1657 libevent
: libevent
/stamp-h1
1659 $(MAKE
) -C libevent
$(PARALLEL_BUILD
)
1660 $(MAKE
) -C libevent DESTDIR
=$(TOP
)/libevent
/staged
install
1663 -@
$(MAKE
) -C libevent
clean
1664 @
rm -f libevent
/stamp-h1 libevent
/Makefile
1665 @
rm -rf libevent
/staged
1667 libevent-install
: libevent
1668 install -d
$(INSTALLDIR
)/libevent
/usr
/lib
1669 install libevent
/.libs
/libevent-2.0.so
.5.1.9 $(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
1670 $(STRIP
) -s
$(INSTALLDIR
)/libevent
/usr
/lib
/libevent-2.0.so
.5
1673 cd libiconv
&& CC
=$(CC
) \
1674 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1675 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1676 $(CONFIGURE
) --prefix=/usr
--disable-nls
--enable-static
1677 touch libiconv
/stamp-h1
1679 libiconv
: libiconv
/stamp-h1
1681 $(MAKE
) -C libiconv
$(PARALLEL_BUILD
)
1684 -@
$(MAKE
) -C libiconv
clean
1685 @
rm -f libiconv
/stamp-h1 libiconv
/Makefile
1687 libiconv-install
: libiconv
1688 install -d
$(INSTALLDIR
)/libiconv
/usr
/lib
1689 install libiconv
/lib
/.libs
/libiconv.so
.2.4.0 $(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2
1690 $(STRIP
)-s
$(INSTALLDIR
)/libiconv
/usr
/lib
/libiconv.so
.2
1692 transmission
/stamp-h1
: openssl libcurl libevent zlib
1693 cd transmission
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
1694 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
1695 --param large-function-growth=800 --param max-inline-insns-single=3000 \
1696 -ffunction-sections -fdata-sections" \
1697 LDFLAGS
="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1698 CPPFLAGS
="-I$(TOP)/zlib" \
1700 $(CONFIGURE
) --target
=mipsel-linux
--prefix=/usr
--disable-nls \
1701 --enable-lightweight
--enable-largefile
--enable-utp
--without-gtk \
1702 LIBCURL_CFLAGS
="-I$(TOP)/libcurl/include" \
1703 LIBCURL_LIBS
="-L$(TOP)/libcurl/lib/.libs/ -lcurl" \
1704 LIBEVENT_CFLAGS
="-I$(TOP)/libevent/include" \
1705 LIBEVENT_LIBS
="-L$(TOP)/libevent/.libs -levent" \
1706 OPENSSL_CFLAGS
="-I$(TOP)/openssl/include" \
1707 OPENSSL_LIBS
="-L$(TOP)/openssl -lcrypto -lssl"
1708 touch transmission
/stamp-h1
1710 transmission
: transmission
/stamp-h1
1712 $(MAKE
) -C transmission
$(PARALLEL_BUILD
)
1715 -@
$(MAKE
) -C transmission
clean
1716 @
rm -f transmission
/stamp-h1 transmission
/Makefile
1718 transmission-install
: transmission
1719 $(MAKE
) -C transmission DESTDIR
=$(INSTALLDIR
)/transmission install-strip
1720 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/share
/man
1721 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-cli
1722 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-show
1723 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-edit
1724 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-create
1725 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-daemon
1726 ifeq ($(TCONFIG_TR_EXTRAS
),y
)
1727 $(STRIP
) -s
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
1729 @
rm -rf
$(INSTALLDIR
)/transmission
/usr
/bin
/transmission-remote
1735 btgui-install
: btgui
1736 install -d
$(INSTALLDIR
)/btgui
/usr
/bin
1737 install -D transmission
/btcheck
$(INSTALLDIR
)/btgui
/usr
/bin
/btcheck
1739 libnfsidmap
/stamp-h1
:
1741 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1742 ac_cv_func_malloc_0_nonnull
=yes \
1743 ac_cv_func_realloc_0_nonnull
=yes \
1744 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static
1745 touch libnfsidmap
/stamp-h1
1747 libnfsidmap
: libnfsidmap
/stamp-h1
1749 $(MAKE
) -C libnfsidmap
$(PARALLEL_BUILD
)
1752 -@
$(MAKE
) -C libnfsidmap
clean
1753 @
rm -f libnfsidmap
/stamp-h1
1754 @
rm -rf libnfsidmap
/staged
1756 libnfsidmap-install
: libnfsidmap
1757 install -d
$(TOP
)/libnfsidmap
/staged
1758 $(MAKE
) -C libnfsidmap DESTDIR
=$(TOP
)/libnfsidmap
/staged
install
1762 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1763 $(MAKE
) -C portmap CC
=$(CC
) AR
=$(AR
) LD
=$(LD
) RANLIB
=$(RANLIB
) RPCUSER
="nobody"
1764 touch portmap
/stamp-h1
1766 portmap
: portmap
/stamp-h1
1768 $(MAKE
) -C portmap
$(PARALLEL_BUILD
)
1771 -@
$(MAKE
) -C portmap
clean
1772 @
rm -f portmap
/stamp-h1
1774 portmap-install
: portmap
1775 install -d
$(INSTALLDIR
)/portmap
/usr
/sbin
1776 install -D portmap
/portmap
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
1777 $(STRIP
) -s
$(INSTALLDIR
)/portmap
/usr
/sbin
/portmap
1781 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1782 $(CONFIGURE
) --prefix=$(TOP
)/e2fsprogs
/staged
--enable-shared
--enable-static
1783 touch e2fsprogs
/stamp-h1
1785 e2fsprogs
: e2fsprogs
/stamp-h1
1787 $(MAKE
) -C e2fsprogs
$(PARALLEL_BUILD
)
1790 -@
$(MAKE
) -C e2fsprogs
clean
1791 @
rm -f e2fsprogs
/stamp-h1
1792 @
rm -f e2fsprogs
/Makefile
1793 @
rm -rf e2fsprogs
/staged
1795 nfs-utils
/stamp-h1
: libevent-install e2fsprogs portmap libnfsidmap-install
1796 cd nfs-utils
&& STRIP
='mipsel-uclibc-strip' \
1797 CFLAGS
="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
1798 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
1799 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
1800 LDFLAGS
="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
1801 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1802 ac_cv_func_malloc_0_nonnull
=yes \
1803 ac_cv_func_realloc_0_nonnull
=yes \
1804 $(CONFIGURE
) --disable-gss
--without-tcp-wrappers
--enable-static
--enable-shared \
1805 --enable-nfsv4
--enable-nfsv3
1806 touch nfs-utils
/stamp-h1
1808 nfs-utils
: nfs-utils
/stamp-h1
1810 $(MAKE
) -C nfs-utils
$(PARALLEL_BUILD
)
1813 -@
$(MAKE
) -C nfs-utils
clean
1814 @
rm -f nfs-utils
/stamp-h1
1816 nfs-utils-install
: nfs-utils
1817 install -d
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
1818 install -D nfs-utils
/utils
/mount
/mount.nfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
1819 install -D nfs-utils
/utils
/nfsd
/nfsd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
1820 install -D nfs-utils
/utils
/showmount
/showmount
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
1821 install -D nfs-utils
/utils
/exportfs
/exportfs
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
1822 install -D nfs-utils
/utils
/statd
/statd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
1823 install -D nfs-utils
/utils
/mountd
/mountd
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
1824 install -D nfs-utils
/nfs.rc
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfs.rc
1825 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mount.nfs
1826 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/nfsd
1827 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/showmount
1828 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/exportfs
1829 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/statd
1830 $(STRIP
) -s
$(INSTALLDIR
)/nfs-utils
/usr
/sbin
/mountd
1834 CFLAGS
="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
1836 chmod
0755 sd-idle
/sd-idle
1837 touch sd-idle
/stamp-h1
1840 -@
$(MAKE
) -C sd-idle
clean
1841 @
rm -f sd-idle
/stamp-h1
1843 sd-idle-install
: sd-idle
/stamp-h1
1844 install -d
$(INSTALLDIR
)/sd-idle
/usr
/bin
1845 install -D sd-idle
/sd-idle
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
1846 $(STRIP
) -s
$(INSTALLDIR
)/sd-idle
/usr
/bin
/sd-idle
1850 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1851 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
1852 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
1853 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
1854 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
1855 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
1856 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
1857 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
1858 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
1863 $(MAKE
) -C snmp
$(PARALLEL_BUILD
)
1866 -@
$(MAKE
) -C snmp
clean
1867 @
rm -f snmp
/stamp-h1
1870 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
1871 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
1874 cd apcupsd
&& touch autoconf
/variables.mak
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
1875 $(MAKE
) configure
&& \
1876 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1877 LDFLAGS
="-L$(TOOLCHAIN)/lib -ffunction-sections -fdata-sections" \
1878 $(CONFIGURE
) --prefix=/usr
--without-x
--enable-usb
--disable-pcnet
--enable-cgi \
1879 --disable-lgd
--enable-net
--sysconfdir
=/usr
/local
/apcupsd
--bindir=/bin \
1880 --disable-dumb
--disable-snmp
--disable-net-snmp
--with-cgi-bin
=/www
/apcupsd
--with-serial-dev
=
1881 touch apcupsd
/stamp-h1
1883 apcupsd
: apcupsd
/stamp-h1
1884 $(MAKE
) -C apcupsd
$(PARALLEL_BUILD
)
1887 -@
$(MAKE
) -C apcupsd
clean
1888 @
rm -f apcupsd
/stamp-h1
1889 @
rm -f apcupsd
/config
*
1891 apcupsd-install
: apcupsd
1892 $(MAKE
) -C apcupsd DESTDIR
=$(INSTALLDIR
)/apcupsd
install
1893 @
rm -rf
$(INSTALLDIR
)/apcupsd
/sbin
/apctest
1894 @
rm -rf
$(INSTALLDIR
)/apcupsd
/www
/apcupsd
/ups
*.cgi
1895 $(STRIP
) $(INSTALLDIR
)/apcupsd
/sbin
/*
1896 $(STRIP
) $(INSTALLDIR
)/apcupsd
/www
/apcupsd
/*
1899 cd
$(TOP
)/dnscrypt
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
1900 $(CONFIGURE
) --prefix=/usr
--disable-ssp
1901 touch dnscrypt
/stamp-h1
1903 dnscrypt
: dnscrypt
/stamp-h1
1904 $(MAKE
) -C dnscrypt
$(PARALLEL_BUILD
)
1906 dnscrypt-install
: dnscrypt
1907 install -D dnscrypt
/src
/proxy
/dnscrypt-proxy
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
1908 install -D dnscrypt
/src
/hostip
/hostip
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
1909 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/dnscrypt-proxy
1910 $(STRIP
) -s
$(INSTALLDIR
)/dnscrypt
/usr
/sbin
/hostip
1913 -@
$(MAKE
) -C dnscrypt
clean
1914 @
rm -rf dnscrypt
/stamp-h1 dnscrypt
/src
/dnscrypt-proxy
/.deps dnscrypt
/Makefile
1916 tor
/stamp-h1
: openssl zlib libevent
1917 cd
$(TOP
)/tor
&& CC
=$(CC
) STRIP
='mipsel-uclibc-strip' \
1918 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1919 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1920 $(CONFIGURE
) --prefix=/usr
--with-libevent-dir
=$(TOP
)/libevent
/staged
/usr
/local \
1921 --with-openssl-dir
=$(TOP
)/openssl
--with-zlib-dir
=$(TOP
)/zlib
--disable-asciidoc
1925 $(MAKE
) -C tor
$(PARALLEL_BUILD
)
1928 install -D tor
/src
/or
/tor
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
1929 $(STRIP
) -s
$(INSTALLDIR
)/tor
/usr
/sbin
/tor
1932 -@
$(MAKE
) -C tor
clean
1933 @
rm -rf tor
/stamp-h1 tor
/Makefile
1936 $(MAKE
) -C mdadm
$(PARALLEL_BUILD
)
1938 mdadm-install
: mdadm
1939 install -D mdadm
/mdadm
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
1940 $(STRIP
) -s
$(INSTALLDIR
)/mdadm
/usr
/sbin
/mdadm
1943 -@
$(MAKE
) -C mdadm
clean
1946 $(MAKE
) -C ipset binaries
1948 ipset-install
: ipset
1949 install -D ipset
/ipset
$(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
1950 install -d
$(INSTALLDIR
)/ipset
/usr
/lib
/
1951 install ipset
/*.so
$(INSTALLDIR
)/ipset
/usr
/lib
/
1952 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/lib
/*.so
1953 $(STRIP
) $(INSTALLDIR
)/ipset
/usr
/sbin
/ipset
1956 -@
$(MAKE
) -C ipset
clean
1963 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
1967 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
1970 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
1973 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
1978 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
1980 .PHONY
: all clean distclean mrproper
install package
1981 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1982 .PHONY
: dummy libnet libpcap