2 # Broadcom Linux Router Makefile
4 # Copyright 2005, Broadcom Corporation
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
16 #TOMATO_EXPERIMENTAL=0
21 SEP
=echo
"\033[41;1m $@ \033[0m"
42 # obj-y += vlan # use Busybox vconfig
49 # !!TB - updated Broadcom Wireless driver
59 obj-
$(TCONFIG_USB
) += p910nd
60 obj-
$(TCONFIG_USB
) += scsi-idle
63 obj-y
+= usbmodeswitch
64 obj-
$(TCONFIG_FTP
) += vsftpd
66 ifeq ($(CONFIG_LINUX26
),y
)
67 ifeq ($(TCONFIG_SAMBASRV
),y
)
70 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
75 ifeq ($(TCONFIG_SAMBASRV
),y
)
76 ifeq ($(TCONFIG_SAMBA3
),y
)
83 ifeq ($(TCONFIG_IPV6
),y
)
84 export TCONFIG_IPV6
:= y
89 obj-
$(NEED_SAMBA2
) += samba
90 obj-
$(NEED_SAMBA3
) += samba3
91 obj-
$(TCONFIG_NTFS
) += ntfs-3g
92 obj-
$(TCONFIG_EBTABLES
) += ebtables
93 obj-
$(TCONFIG_IPV6
) += radvd
95 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
96 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
97 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
98 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
99 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
100 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
101 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
102 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
103 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
104 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
105 MEDIA_SERVER_STATIC
=y
112 # configurable packages
114 obj-
$(TCONFIG_L2TP
) += xl2tpd
115 obj-
$(TCONFIG_PPTP
) += accel-pptp
116 obj-
$(TCONFIG_HTTPS
) += openssl
117 obj-
$(TCONFIG_SSH
) += dropbear
118 obj-
$(TCONFIG_ZEBRA
) += zebra
119 # obj-$(TCONFIG_IPP2P) += ipp2p
120 obj-
$(TCONFIG_LZO
) += lzo
121 obj-
$(TCONFIG_OPENVPN
) += openvpn
122 obj-
$(TCONFIG_EMF
) += emf
123 obj-
$(TCONFIG_EMF
) += igs
125 ifeq ($(TCONFIG_L2TP
),y
)
128 ifeq ($(TCONFIG_PPTP
),y
)
131 obj-
$(NEED_PPPD
) += pppd
133 obj-
$(CONFIG_LINUX26
) += hotplug2
134 obj-
$(CONFIG_LINUX26
) += udev
136 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
137 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
145 all: clean-build libc
$(obj-y
) kernel
148 kernel
: $(LINUXDIR
)/.config
151 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
152 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
); \
154 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
155 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
); \
157 ifeq ($(CONFIG_LINUX26
),y
)
158 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
)
163 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
)
165 lzma-loader-install
: lzma-loader
170 $(MAKE
) -C
$(LINUXDIR
) modules
173 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
174 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
176 install package
: $(obj-install
) $(LINUXDIR
)/.config
179 install -d
$(TARGETDIR
)
183 $(MAKE
) -C
$(LINUXDIR
) modules_install DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
184 ##!!TB find $(TARGETDIR)/lib/modules -name *.o -exec mipsel-linux-strip --strip-unneeded {} \;
185 find
$(TARGETDIR
)/lib
/modules
-name
*.o
-exec
$(STRIP
) --strip-debug
{} \
;
186 find
$(TARGETDIR
)/lib
/modules
-name
*.ko
-exec
$(STRIP
) --strip-debug
{} \
;
188 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
191 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
192 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
193 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
194 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
195 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
196 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
197 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
198 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
199 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
200 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
203 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
204 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
205 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
206 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
207 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
208 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
209 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
210 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
211 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
212 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
213 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
214 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
215 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
216 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
217 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
218 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
219 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
220 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
221 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
222 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
223 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
224 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
225 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
226 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
227 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
228 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
229 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
230 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
231 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
232 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
233 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
234 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
235 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
236 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
237 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
238 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
239 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
241 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
242 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
243 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
244 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
245 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
248 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
249 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
252 ifneq ($(TCONFIG_L7
),y
)
253 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
257 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
258 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
259 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
260 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
261 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
262 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
263 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
264 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
265 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
266 ifeq ($(TCONFIG_SSH
),y
)
267 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
269 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
270 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
271 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
274 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
278 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
281 @..
/btools
/libfoo.pl
--noopt
283 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
284 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
286 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
287 # separated/copied extra stuff
288 @
rm -rf
$(PLATFORMDIR
)/extras
289 @mkdir
$(PLATFORMDIR
)/extras
290 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
292 $(if
$(TCONFIG_OPENVPN
),@cp
-f
,$(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/tun.
*o
$(PLATFORMDIR
)/extras
/ || true
293 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
295 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
296 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
297 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
298 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
299 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
300 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
301 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
302 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
303 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
304 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
305 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
306 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
307 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
308 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
309 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
310 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
312 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
313 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
314 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
315 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*acm.
*o
$(PLATFORMDIR
)/extras
/ || true
316 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
317 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
319 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
320 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
321 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
322 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
323 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
324 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
325 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
326 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
327 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
328 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_ether.
*o
$(PLATFORMDIR
)/extras
/ || true
329 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
330 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
331 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
332 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
333 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
334 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
335 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
336 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
337 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
338 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
339 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
340 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
341 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
342 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
343 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
344 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
345 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
346 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
347 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/* $(PLATFORMDIR
)/extras
/ || true
348 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
350 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
351 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
352 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
353 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
354 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
355 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
356 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
358 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
359 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
360 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
361 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
362 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
363 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
364 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
365 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
366 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
367 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
368 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
369 ifneq ($(TCONFIG_USB
),y
)
370 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
371 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
374 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
375 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
376 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
377 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
378 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
380 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
381 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
382 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
383 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
384 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
385 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
386 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
388 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
389 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
391 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
392 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
393 @mv
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
395 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
396 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
397 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
398 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
399 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
400 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
401 ifneq ($(NEED_EX_USB
),y
)
402 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
403 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
405 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
407 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
408 ifeq ($(TCONFIG_L7PAT
),y
)
409 @cd layer7
&& .
/squish.sh
410 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
413 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
414 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
417 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
419 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
420 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-nopad | tee target.
info
422 # Package kernel and filesystem
423 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
424 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
425 # $(MAKE) -C $(LINUXDIR) zImage ; \
427 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
428 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
431 # Pad self-booting Linux to a 64 KB boundary
432 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
433 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
434 # Append filesystem to self-booting Linux
435 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
438 libc
: $(LIBDIR
)/ld-uClibc.so
.0
439 # $(MAKE) -C ../../../tools-src/uClibc all
440 # $(MAKE) -C ../../../tools-src/uClibc install
447 clean: clean-build
$(obj-clean
)
448 rm -rf layer7
/squished
454 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
455 rm -rf
$(PLATFORMDIR
)/extras
458 ifneq ($(INSIDE_MAK
),1)
459 $(MAKE
) -C ..
$@ INSIDE_MAK
=1
461 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
467 CONFIG_IN
:= config
/config.in
469 config
/conf config
/mconf
:
473 @config
/conf
$(CONFIG_IN
)
476 @config
/mconf
$(CONFIG_IN
)
478 roldconf
: config
/conf
479 @config
/conf
-o
$(CONFIG_IN
)
480 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dnsmasq-clean
481 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean openssl-clean mssl-clean mdu-clean ppp-clean
484 @
$(MAKE
) -C
$(LINUXDIR
) config
487 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
490 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
491 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
494 @
$(MAKE
) -C busybox oldconfig
496 config conf
: rconf kconf
498 menuconfig mconf
: rmconf kmconf
500 oldconfig oldconf
: koldconf roldconf bboldconf
504 # overrides and extra dependencies
508 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)"
513 rm -rf
$(INSTALLDIR
)/busybox
514 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
517 $(MAKE
) -C busybox
distclean
520 $(MAKE
) -C busybox menuconfig
523 httpd
: shared nvram mssl
528 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
532 @
$(MAKE
) -C matrixssl
/src
538 $(MAKE
) -C matrixssl
/src
clean
541 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
542 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
543 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
544 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
545 $(CONFIGURE
) --with-libz
=no
546 @touch cyassl
/stamp-h1
548 cyassl
: cyassl
/stamp-h1
553 -@
$(MAKE
) -C cyassl
clean
554 @
rm -f cyassl
/stamp-h1
559 ifeq ($(TCONFIG_OPENVPN
),y
)
560 OPENSSL_CIPHERS
:=enable-rc5
562 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-aes no-aes192 no-cast no-des no-modes no-tls1 no-tlsext
567 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
568 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
569 shared
$(OPENSSL_CIPHERS
) \
570 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
571 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
572 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
573 no-zlib no-engine no-engines no-sse2 no-perlasm \
574 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
576 @
$(MAKE
) -C openssl
clean
577 @touch openssl
/stamp-h1
579 openssl
: openssl
/stamp-h1
582 -@
$(MAKE
) -C openssl
clean
583 @
rm -f openssl
/stamp-h1
585 openssl-install
: openssl
586 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
587 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
588 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
590 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
591 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
592 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
594 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
596 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
597 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
599 ifeq ($(TCONFIG_FTP_SSL
),y
)
601 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
602 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
603 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
606 ifeq ($(TCONFIG_OPENVPN
),y
)
607 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
608 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
609 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
612 mssl
: $(if
$(TCONFIG_OPENVPN
),openssl
,cyassl
)
619 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
620 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
622 bridge
: bridge
/Makefile
627 -@
$(MAKE
) -C bridge
clean
628 @
rm -f bridge
/Makefile
631 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
632 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
636 @
$(MAKE
) -C dnsmasq \
637 COPTS
="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) $(if $(TCONFIG_USB_EXTRAS),,-DNO_SCRIPT) $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
638 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
641 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
642 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
646 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS)"
649 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
650 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
651 ln
-sf iptables iptables-restore
653 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
654 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
656 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
658 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
659 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
660 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
662 ifeq ($(TCONFIG_IPV6
),y
)
663 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
664 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
665 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
666 ln
-sf ip6tables ip6tables-restore
670 -$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
674 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
675 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
678 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
681 upnp
: nvram shared iptables
685 $(MAKE
) -C miniupnpd
-f Makefile.tomato
688 -$(MAKE
) -C miniupnpd
-f Makefile.tomato
clean
691 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
692 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
702 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
703 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
707 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
708 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
709 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
710 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
711 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
713 ntfs-3g
: ntfs-3g
/Makefile
717 -@
$(MAKE
) -C ntfs-3g
clean
718 @
rm -f ntfs-3g
/Makefile
720 ntfs-3g-install
: ntfs-3g
721 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
722 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
723 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
724 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
725 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
727 libusb10
/Makefile
: libusb10
/Makefile.in
728 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
729 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
731 libusb10
: libusb10
/Makefile
734 libusb10-install
: libusb10
735 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
.0.0.0 $(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
.0
736 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so.
*
737 cd
$(INSTALLDIR
)/libusb10
/usr
/lib
&& \
738 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
.0.0.0 && \
739 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
741 libusb
/Makefile
: libusb
/Makefile.in
742 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
743 $(CONFIGURE
) --prefix=/usr \
744 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
745 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
746 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
748 libusb
: libusb10 libusb
/Makefile
751 libusb-install
: libusb
752 install -D libusb
/libusb
/.libs
/libusb-0.1.so
.4.4.4 $(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
.4
753 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so.
*
754 cd
$(INSTALLDIR
)/libusb
/usr
/lib
&& \
755 ln
-sf libusb-0.1.so
.4 libusb-0.1.so
.4.4.4 && \
756 ln
-sf libusb-0.1.so
.4 libusb.so
758 usbmodeswitch
: libusb10
759 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
760 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
761 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
763 usbmodeswitchdb-install
:
764 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
765 # compress whitespace
766 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
768 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
771 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
772 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
773 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
774 @mkdir
-p
$(TARGETDIR
)/rom
/etc
775 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
778 radvd
/stamp-h
: radvd
/Makefile.in
779 cd radvd
&& CPPFLAGS
="-Os $(EXTRACFLAGS)" $(CONFIGURE
) --prefix=""
784 -@
$(MAKE
) -C radvd
distclean
787 install -D radvd
/radvd
$(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
788 $(STRIP
) $(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
800 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
803 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
804 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
808 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
809 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
812 accel-pptp
: pppd accel-pptp
/Makefile
813 @
$(MAKE
) -C accel-pptp
815 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
816 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
817 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
820 -@
$(MAKE
) -C accel-pptp
clean
821 @
rm -f accel-pptp
/Makefile
823 accel-pptp-install
: accel-pptp
824 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
825 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
828 pppd
/Makefile
: pppd
/linux
/Makefile.top
829 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
833 @
$(MAKE
) -C pppd
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
836 -$(MAKE
) -C pppd
clean
840 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
841 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
842 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
843 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
844 ifeq ($(TCONFIG_L2TP
),y
)
845 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
846 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
850 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
851 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
854 @cd zebra
&& rm -f config.cache
&& \
855 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
856 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
857 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
858 $(CONFIGURE
) --sysconfdir
=/etc \
859 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
860 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
861 @touch zebra
/stamp-h1
863 zebra
: zebra
/stamp-h1
864 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
867 -@
$(MAKE
) -C zebra
clean
868 @
rm -f zebra
/stamp-h1
871 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
872 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
873 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
874 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
875 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
876 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
880 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
881 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
882 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
883 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
884 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
885 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
886 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
889 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
891 xl2tpd-install
: xl2tpd
892 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
893 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
897 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
898 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
903 # @-mkdir -p libnet/lib
904 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
908 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
911 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
914 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
915 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
919 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
920 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
921 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
922 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
928 dropbear
: dropbear
/config.h
930 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1
933 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
934 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
935 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
936 ln
-sf dropbearmulti dropbear
&& \
937 ln
-sf dropbearmulti dropbearconvert
&& \
938 ln
-sf dropbearmulti dropbearkey
&& \
939 ln
-sf dropbearmulti dbclient
&& \
940 ln
-sf dropbearmulti ssh
&& \
941 ln
-sf dropbearmulti scp
944 -@
$(MAKE
) -C dropbear
clean
945 @
rm -f dropbear
/config.h
948 cd dropbear
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
949 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
950 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
951 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
952 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
953 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
954 @
$(MAKE
) -C dropbear
clean
960 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
961 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
962 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
963 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
964 touch sqlite
/stamp-h1
966 sqlite
: sqlite
/stamp-h1
967 @
$(MAKE
) -C sqlite
all
970 -@
$(MAKE
) -C sqlite
clean
971 @
rm -f sqlite
/stamp-h1
973 sqlite-install
: sqlite
975 ifneq ($(MEDIA_SERVER_STATIC
),y
)
976 install -D sqlite
/.libs
/libsqlite3.so
.0 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
977 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
980 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
982 FFMPEG_DECODERS
:=aac ac3 atrac3 h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
983 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
985 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
986 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
988 FFMPEG_PROTOCOLS
:=file
989 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
991 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
992 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
994 ffmpeg
/stamp-h1
: zlib
995 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
996 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
997 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
998 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
999 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1000 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1001 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1002 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1003 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1004 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1005 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1006 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1007 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1008 --extra-libs
="-L$(TOP)/zlib -lz" \
1009 --enable-zlib
--disable-debug
--prefix=''
1010 touch ffmpeg
/stamp-h1
1012 ffmpeg
: ffmpeg
/stamp-h1 zlib
1013 @
$(MAKE
) -C ffmpeg
all
1016 -@
$(MAKE
) -C ffmpeg
clean
1017 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1019 ffmpeg-install
: ffmpeg
1021 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1022 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1023 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1024 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1025 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1026 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1027 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1032 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1033 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1034 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1035 touch libogg
/stamp-h1
1037 libogg
: libogg
/stamp-h1
1038 @
$(MAKE
) -C libogg
all
1041 -@
$(MAKE
) -C libogg
clean
1042 @
rm -f libogg
/stamp-h1
1044 libogg-install
: libogg
1046 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1047 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1048 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1051 flac
/stamp-h1
: libogg
1053 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1054 CPPFLAGS
="-I$(TOP)/libogg/include" \
1055 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1056 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1057 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1058 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1061 flac
: flac
/stamp-h1 libogg
1062 @
$(MAKE
) -C flac
/src
/libFLAC
all
1065 -@
$(MAKE
) -C flac
clean
1066 @
rm -f flac
/stamp-h1
1070 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1071 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1072 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1077 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1081 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
1084 -@
$(MAKE
) -C jpeg
clean
1085 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1089 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1090 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1091 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1095 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1096 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1097 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1098 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1099 touch libexif
/stamp-h1
1101 libexif
: libexif
/stamp-h1
1102 @
$(MAKE
) -C libexif
all
1105 -@
$(MAKE
) -C libexif
clean
1106 @
rm -f libexif
/stamp-h1
1108 libexif-install
: libexif
1110 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1111 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1112 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1117 CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1118 .
/configure
--shared
--prefix=''
1122 @
$(MAKE
) -C zlib CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) all
1125 -@
$(MAKE
) -C zlib
clean
1126 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1130 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1131 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1132 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1133 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1136 libid3tag
/stamp-h1
: zlib
1138 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1139 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1140 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1141 --disable-debugging
--disable-profiling
1142 touch libid3tag
/stamp-h1
1144 libid3tag
: libid3tag
/stamp-h1 zlib
1145 @
$(MAKE
) -C libid3tag
all
1148 -@
$(MAKE
) -C libid3tag
clean
1149 @
rm -f libid3tag
/stamp-h1
1151 libid3tag-install
: libid3tag
1153 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1154 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1155 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1158 libvorbis
/stamp-h1
: libogg
1160 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1161 CPPFLAGS
="-I$(TOP)/libogg/include" \
1162 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1163 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1164 --with-ogg-includes
="$(TOP)/libogg/include" \
1165 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1166 touch libvorbis
/stamp-h1
1168 libvorbis
: libvorbis
/stamp-h1
1169 @
$(MAKE
) -C libvorbis
/lib
all
1172 -@
$(MAKE
) -C libvorbis
clean
1173 @
rm -f libvorbis
/stamp-h1
1175 libvorbis-install
: libvorbis
1177 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1178 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1179 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1182 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1184 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
1187 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1188 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1189 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1190 $(CONFIGURE
) --prefix=/usr
1192 igmpproxy
: igmpproxy
/src
/Makefile
1194 @
$(MAKE
) -C igmpproxy
/src
1196 igmpproxy-install
: igmpproxy
1197 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1198 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1201 -$(MAKE
) -C igmpproxy
/src
clean
1202 @
rm -f igmpproxy
/src
/Makefile
1205 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1206 PROGRAMS
=udevtrigger
1209 install -d
$(INSTALLDIR
)
1210 install -d
$(TARGETDIR
)
1211 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1214 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1216 hotplug2-install
: hotplug2
1217 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1218 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1221 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1224 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1227 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1230 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1234 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1235 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1236 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1238 ebtables-install
: ebtables
1239 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1241 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1242 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1243 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1245 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1246 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1247 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1248 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1250 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1251 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1252 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1255 make
-C ebtables
clean
1259 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1265 -$(MAKE
) -C lzo
clean
1269 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1270 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1271 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1274 openvpn
: openvpn
/.conf
1277 cd openvpn
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1278 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1279 $(CONFIGURE
) --prefix= \
1280 --with-lzo-headers
="$(TOP)/lzo/include" \
1281 --with-ssl-headers
="$(TOP)/openssl/include/" \
1282 --with-iproute-path
="/usr/sbin/ip" \
1283 --disable-debug
--disable-plugins
--enable-management
--enable-small \
1284 --disable-selinux
--disable-socks
--enable-password-save
1288 -$(MAKE
) -C openvpn
clean
1289 @
rm -f openvpn
/.conf
1291 openvpn-install
: openvpn
1292 install -D openvpn
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1293 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1294 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1302 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
1306 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
1309 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
1314 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
1316 .PHONY
: all clean distclean mrproper
install package
1317 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1318 .PHONY
: dummy libnet libpcap