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
48 # !!TB - updated Broadcom Wireless driver
58 obj-
$(TCONFIG_USB
) += p910nd
59 obj-
$(TCONFIG_USB
) += scsi-idle
62 obj-y
+= usbmodeswitch
63 obj-
$(TCONFIG_FTP
) += vsftpd
65 ifeq ($(CONFIG_LINUX26
),y
)
66 ifeq ($(TCONFIG_SAMBASRV
),y
)
69 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
74 ifeq ($(TCONFIG_SAMBASRV
),y
)
75 ifeq ($(TCONFIG_SAMBA3
),y
)
82 ifeq ($(TCONFIG_IPV6
),y
)
83 export TCONFIG_IPV6
:= y
88 obj-
$(NEED_SAMBA2
) += samba
89 obj-
$(NEED_SAMBA3
) += samba3
90 obj-
$(TCONFIG_NTFS
) += ntfs-3g
91 obj-
$(TCONFIG_EBTABLES
) += ebtables
92 obj-
$(TCONFIG_IPV6
) += radvd
93 obj-
$(TCONFIG_IPV6
) += dhcpv6
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_SDHC
) += mmc
123 obj-
$(TCONFIG_EMF
) += emf
124 obj-
$(TCONFIG_EMF
) += igs
126 ifeq ($(TCONFIG_L2TP
),y
)
129 ifeq ($(TCONFIG_PPTP
),y
)
132 obj-
$(NEED_PPPD
) += pppd
134 obj-
$(CONFIG_LINUX26
) += hotplug2
135 obj-
$(CONFIG_LINUX26
) += udev
137 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
138 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
146 all: clean-build libc
$(obj-y
) kernel
149 kernel
: $(LINUXDIR
)/.config
152 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
153 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
); \
155 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
156 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
); \
158 ifeq ($(CONFIG_LINUX26
),y
)
159 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
)
164 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
)
166 lzma-loader-install
: lzma-loader
171 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
)
174 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
175 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
177 install package
: $(obj-install
) $(LINUXDIR
)/.config
180 install -d
$(TARGETDIR
)
184 $(MAKE
) -C
$(LINUXDIR
) modules_install DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
185 ##!!TB find $(TARGETDIR)/lib/modules -name *.o -exec mipsel-linux-strip --strip-unneeded {} \;
186 find
$(TARGETDIR
)/lib
/modules
-name
*.o
-exec
$(STRIP
) --strip-debug
{} \
;
187 find
$(TARGETDIR
)/lib
/modules
-name
*.ko
-exec
$(STRIP
) --strip-debug
{} \
;
189 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
192 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
193 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
194 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
195 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
196 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
197 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
198 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
199 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
200 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
201 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
204 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
205 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
206 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
207 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
208 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
209 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
210 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
211 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
212 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
213 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
214 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
215 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
216 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
217 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
218 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
219 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
220 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
221 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
222 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
223 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
224 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
225 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
226 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
227 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
228 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
229 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
230 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
231 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
232 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
233 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
234 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
235 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
236 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
237 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
238 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
239 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
240 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
242 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
243 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
244 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
245 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
246 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
249 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
250 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
253 ifneq ($(TCONFIG_L7
),y
)
254 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
258 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
259 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
260 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
261 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
262 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
263 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
264 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
265 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
266 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
267 ifeq ($(TCONFIG_SSH
),y
)
268 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
270 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
271 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
272 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
275 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
279 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
280 @
$(SRCBASE
)/btools
/libfoo.pl
282 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
284 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
285 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
287 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
288 # separated/copied extra stuff
289 @
rm -rf
$(PLATFORMDIR
)/extras
290 @mkdir
$(PLATFORMDIR
)/extras
291 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
293 $(if
$(TCONFIG_OPENVPN
),@cp
-f
,$(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/tun.
*o
$(PLATFORMDIR
)/extras
/ || true
294 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
296 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
297 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
298 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
299 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
300 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
301 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
302 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
303 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
304 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
305 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
306 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
307 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
308 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
309 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
310 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
311 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
313 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
314 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
315 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
316 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*acm.
*o
$(PLATFORMDIR
)/extras
/ || true
317 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
318 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
320 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
321 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
322 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
323 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
324 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
325 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
326 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
327 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
328 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
329 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_ether.
*o
$(PLATFORMDIR
)/extras
/ || true
330 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
331 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
332 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
333 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
334 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
335 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
336 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
337 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
338 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
339 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
340 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
341 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
342 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
343 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
344 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
345 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
346 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
347 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
348 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/* $(PLATFORMDIR
)/extras
/ || true
349 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
351 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
352 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
353 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
354 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
355 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
356 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
357 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
359 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
360 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
361 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
362 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
363 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
364 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
365 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
366 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
367 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
368 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
369 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
370 ifneq ($(TCONFIG_USB
),y
)
371 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
372 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
375 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
376 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
377 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
378 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
379 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
381 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
382 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
383 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
384 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
385 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
386 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
387 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
389 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
390 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
392 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
393 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
394 @mv
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
396 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
397 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
398 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
399 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
400 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
401 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
402 ifneq ($(NEED_EX_USB
),y
)
403 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
404 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
406 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
408 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
409 ifeq ($(TCONFIG_L7PAT
),y
)
410 @cd layer7
&& .
/squish.sh
411 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
414 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
415 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
418 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
420 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
421 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-nopad | tee target.
info
423 # Package kernel and filesystem
424 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
425 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
426 # $(MAKE) -C $(LINUXDIR) zImage ; \
428 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
429 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
432 # Pad self-booting Linux to a 64 KB boundary
433 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
434 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
435 # Append filesystem to self-booting Linux
436 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
439 libc
: $(LIBDIR
)/ld-uClibc.so
.0
440 # $(MAKE) -C ../../../tools-src/uClibc all
441 # $(MAKE) -C ../../../tools-src/uClibc install
448 clean: clean-build
$(obj-clean
)
449 rm -rf layer7
/squished
455 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
456 rm -rf
$(PLATFORMDIR
)/extras
459 ifneq ($(INSIDE_MAK
),1)
460 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
462 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
468 CONFIG_IN
:= config
/config.in
470 config
/conf config
/mconf
:
474 @config
/conf
$(CONFIG_IN
)
477 @config
/mconf
$(CONFIG_IN
)
479 roldconf
: config
/conf
480 @config
/conf
-o
$(CONFIG_IN
)
481 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dnsmasq-clean
482 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean openssl-clean mssl-clean mdu-clean ppp-clean
485 @
$(MAKE
) -C
$(LINUXDIR
) config
488 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
491 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
492 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
495 @
$(MAKE
) -C busybox oldconfig
497 config conf
: rconf kconf
499 menuconfig mconf
: rmconf kmconf
501 oldconfig oldconf
: koldconf roldconf bboldconf
505 # overrides and extra dependencies
509 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)"
514 rm -rf
$(INSTALLDIR
)/busybox
515 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
518 $(MAKE
) -C busybox
distclean
521 $(MAKE
) -C busybox menuconfig
524 httpd
: shared nvram mssl
529 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
533 @
$(MAKE
) -C matrixssl
/src
539 $(MAKE
) -C matrixssl
/src
clean
542 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
543 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
544 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
545 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
546 PTHREAD_CFLAGS
="-lpthread" PTHREAD_LIBS
="-lpthread" \
547 $(CONFIGURE
) --with-libz
=no
548 @touch cyassl
/stamp-h1
550 cyassl
: cyassl
/stamp-h1
555 -@
$(MAKE
) -C cyassl
clean
556 @
rm -f cyassl
/stamp-h1
561 ifeq ($(TCONFIG_OPENVPN
),y
)
562 OPENSSL_CIPHERS
:=enable-rc5
564 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-aes no-aes192 no-cast no-des no-modes no-tls1 no-tlsext
569 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
570 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
571 shared
$(OPENSSL_CIPHERS
) \
572 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
573 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
574 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
575 no-zlib no-engine no-engines no-sse2 no-perlasm \
576 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
578 @
$(MAKE
) -C openssl
clean
579 @touch openssl
/stamp-h1
581 openssl
: openssl
/stamp-h1
584 -@
$(MAKE
) -C openssl
clean
585 @
rm -f openssl
/stamp-h1
587 openssl-install
: openssl
588 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
589 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
590 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
592 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
593 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
594 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
596 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
598 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
599 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
601 ifeq ($(TCONFIG_FTP_SSL
),y
)
603 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
604 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
605 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
608 ifeq ($(TCONFIG_OPENVPN
),y
)
609 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
610 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
611 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
614 mssl
: $(if
$(TCONFIG_OPENVPN
),openssl
,cyassl
)
621 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
622 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
624 bridge
: bridge
/Makefile
629 -@
$(MAKE
) -C bridge
clean
630 @
rm -f bridge
/Makefile
633 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
634 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
638 @
$(MAKE
) -C dnsmasq \
639 COPTS
="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) $(if $(TCONFIG_USB_EXTRAS),,-DNO_SCRIPT) $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
640 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
643 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
644 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
648 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
651 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
652 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
653 ln
-sf iptables iptables-restore
655 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
656 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
658 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
660 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
661 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
662 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
664 ifeq ($(TCONFIG_IPV6
),y
)
665 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
666 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
667 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
668 ln
-sf ip6tables ip6tables-restore
672 -$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
676 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
677 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
680 $(MAKE
) -C ppp
/pppoecd
clean INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
682 $(MAKE
) -C ppp
/pppoecd
install INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
685 upnp
: nvram shared iptables
689 $(MAKE
) -C miniupnpd
-f Makefile.tomato
692 -$(MAKE
) -C miniupnpd
-f Makefile.tomato
clean
695 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
696 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
706 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
707 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
711 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
712 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
713 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
714 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
715 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
717 ntfs-3g
: ntfs-3g
/Makefile
721 -@
$(MAKE
) -C ntfs-3g
clean
722 @
rm -f ntfs-3g
/Makefile
724 ntfs-3g-install
: ntfs-3g
725 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
726 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
727 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
728 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
729 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
731 libusb10
/Makefile
: libusb10
/Makefile.in
732 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
733 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
735 libusb10
: libusb10
/Makefile
738 libusb10-install
: libusb10
739 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
.0.0.0 $(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
.0
740 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so.
*
741 cd
$(INSTALLDIR
)/libusb10
/usr
/lib
&& \
742 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
.0.0.0 && \
743 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
745 libusb
/Makefile
: libusb
/Makefile.in
746 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
747 $(CONFIGURE
) --prefix=/usr \
748 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
749 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
750 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
752 libusb
: libusb10 libusb
/Makefile
755 libusb-install
: libusb
756 install -D libusb
/libusb
/.libs
/libusb-0.1.so
.4.4.4 $(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
.4
757 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so.
*
758 cd
$(INSTALLDIR
)/libusb
/usr
/lib
&& \
759 ln
-sf libusb-0.1.so
.4 libusb-0.1.so
.4.4.4 && \
760 ln
-sf libusb-0.1.so
.4 libusb.so
762 usbmodeswitch
: libusb10
763 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
764 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
765 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
767 usbmodeswitchdb-install
:
768 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
769 # compress whitespace
770 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
772 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
775 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
776 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
777 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
778 @mkdir
-p
$(TARGETDIR
)/rom
/etc
779 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
782 radvd
/stamp-h
: radvd
/Makefile.in
783 cd radvd
&& CPPFLAGS
="-Os $(EXTRACFLAGS)" $(CONFIGURE
) --prefix=""
788 -@
$(MAKE
) -C radvd
distclean
791 install -D radvd
/radvd
$(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
792 $(STRIP
) $(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
796 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
797 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
798 ac_cv_func_setpgrp_void
=yes \
799 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
800 @
$(MAKE
) -C dhcpv6
clean
801 @touch dhcpv6
/stamp-h1
803 dhcpv6
: dhcpv6
/stamp-h1
805 @
$(MAKE
) -C dhcpv6 dhcp6c
807 dhcpv6-install
: dhcpv6
808 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
809 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
812 -@
$(MAKE
) -C dhcpv6
clean
813 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
826 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
829 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
830 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
834 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
835 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
838 accel-pptp
: pppd accel-pptp
/Makefile
839 @
$(MAKE
) -C accel-pptp
841 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
842 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
843 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
846 -@
$(MAKE
) -C accel-pptp
clean
847 @
rm -f accel-pptp
/Makefile
849 accel-pptp-install
: accel-pptp
850 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
851 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
854 pppd
/Makefile
: pppd
/linux
/Makefile.top
855 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
859 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
862 -$(MAKE
) -C pppd
clean
866 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
867 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
868 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
869 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
870 ifeq ($(TCONFIG_L2TP
),y
)
871 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
872 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
876 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
877 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
880 @cd zebra
&& rm -f config.cache
&& \
881 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
882 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
883 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
884 $(CONFIGURE
) --sysconfdir
=/etc \
885 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
886 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
887 @touch zebra
/stamp-h1
889 zebra
: zebra
/stamp-h1
890 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
893 -@
$(MAKE
) -C zebra
clean
894 @
rm -f zebra
/stamp-h1
897 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
898 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
899 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
900 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
901 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
902 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
906 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
907 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
908 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
909 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
910 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
911 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
912 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
915 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
917 xl2tpd-install
: xl2tpd
918 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
919 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
923 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
924 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
929 # @-mkdir -p libnet/lib
930 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
934 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
937 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
940 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
941 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
946 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS)"
948 iproute2-install
: iproute2
949 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
950 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
951 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
952 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
958 dropbear
: dropbear
/config.h
960 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1
963 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
964 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
965 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
966 ln
-sf dropbearmulti dropbear
&& \
967 ln
-sf dropbearmulti dropbearconvert
&& \
968 ln
-sf dropbearmulti dropbearkey
&& \
969 ln
-sf dropbearmulti dbclient
&& \
970 ln
-sf dropbearmulti ssh
&& \
971 ln
-sf dropbearmulti scp
974 -@
$(MAKE
) -C dropbear
clean
975 @
rm -f dropbear
/config.h
978 cd dropbear
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
979 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
980 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
981 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
982 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
983 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
984 @
$(MAKE
) -C dropbear
clean
990 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
991 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
992 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
993 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
994 touch sqlite
/stamp-h1
996 sqlite
: sqlite
/stamp-h1
997 @
$(MAKE
) -C sqlite
all
1000 -@
$(MAKE
) -C sqlite
clean
1001 @
rm -f sqlite
/stamp-h1
1003 sqlite-install
: sqlite
1005 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1006 install -D sqlite
/.libs
/libsqlite3.so
.0 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1007 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1010 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1012 FFMPEG_DECODERS
:=aac ac3 atrac3 h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1013 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1015 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1016 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1018 FFMPEG_PROTOCOLS
:=file
1019 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1021 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
1022 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1024 ffmpeg
/stamp-h1
: zlib
1025 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1026 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1027 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1028 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1029 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1030 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1031 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1032 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1033 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1034 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1035 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1036 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1037 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1038 --extra-libs
="-L$(TOP)/zlib -lz" \
1039 --enable-zlib
--disable-debug
--prefix=''
1040 touch ffmpeg
/stamp-h1
1042 ffmpeg
: ffmpeg
/stamp-h1 zlib
1043 @
$(MAKE
) -C ffmpeg
all
1046 -@
$(MAKE
) -C ffmpeg
clean
1047 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1049 ffmpeg-install
: ffmpeg
1051 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1052 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1053 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1054 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1055 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1056 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1057 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1062 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1063 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1064 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1065 touch libogg
/stamp-h1
1067 libogg
: libogg
/stamp-h1
1068 @
$(MAKE
) -C libogg
all
1071 -@
$(MAKE
) -C libogg
clean
1072 @
rm -f libogg
/stamp-h1
1074 libogg-install
: libogg
1076 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1077 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1078 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1081 flac
/stamp-h1
: libogg
1083 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1084 CPPFLAGS
="-I$(TOP)/libogg/include" \
1085 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1086 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1087 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1088 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1091 flac
: flac
/stamp-h1 libogg
1092 @
$(MAKE
) -C flac
/src
/libFLAC
all
1095 -@
$(MAKE
) -C flac
clean
1096 @
rm -f flac
/stamp-h1
1100 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1101 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1102 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1107 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1111 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
1114 -@
$(MAKE
) -C jpeg
clean
1115 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1119 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1120 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1121 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1125 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1126 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1127 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1128 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1129 touch libexif
/stamp-h1
1131 libexif
: libexif
/stamp-h1
1132 @
$(MAKE
) -C libexif
all
1135 -@
$(MAKE
) -C libexif
clean
1136 @
rm -f libexif
/stamp-h1
1138 libexif-install
: libexif
1140 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1141 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1142 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1147 CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1148 .
/configure
--shared
--prefix=''
1152 @
$(MAKE
) -C zlib CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) all
1155 -@
$(MAKE
) -C zlib
clean
1156 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1160 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1161 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1162 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1163 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1166 libid3tag
/stamp-h1
: zlib
1168 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1169 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1170 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1171 --disable-debugging
--disable-profiling
1172 touch libid3tag
/stamp-h1
1174 libid3tag
: libid3tag
/stamp-h1 zlib
1175 @
$(MAKE
) -C libid3tag
all
1178 -@
$(MAKE
) -C libid3tag
clean
1179 @
rm -f libid3tag
/stamp-h1
1181 libid3tag-install
: libid3tag
1183 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1184 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1185 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1188 libvorbis
/stamp-h1
: libogg
1190 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1191 CPPFLAGS
="-I$(TOP)/libogg/include" \
1192 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1193 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1194 --with-ogg-includes
="$(TOP)/libogg/include" \
1195 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1196 touch libvorbis
/stamp-h1
1198 libvorbis
: libvorbis
/stamp-h1
1199 @
$(MAKE
) -C libvorbis
/lib
all
1202 -@
$(MAKE
) -C libvorbis
clean
1203 @
rm -f libvorbis
/stamp-h1
1205 libvorbis-install
: libvorbis
1207 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1208 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1209 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1212 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1214 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
1217 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1218 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1219 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1220 $(CONFIGURE
) --prefix=/usr
1222 igmpproxy
: igmpproxy
/src
/Makefile
1224 @
$(MAKE
) -C igmpproxy
/src
1226 igmpproxy-install
: igmpproxy
1227 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1228 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1231 -$(MAKE
) -C igmpproxy
/src
clean
1232 @
rm -f igmpproxy
/src
/Makefile
1235 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1236 PROGRAMS
=udevtrigger
1239 install -d
$(INSTALLDIR
)
1240 install -d
$(TARGETDIR
)
1241 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1244 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1246 hotplug2-install
: hotplug2
1247 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1248 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1251 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1254 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1257 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1260 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1264 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1265 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1266 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1268 ebtables-install
: ebtables
1269 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1271 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1272 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1273 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1275 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1276 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1277 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1278 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1280 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1281 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1282 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1285 make
-C ebtables
clean
1289 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1295 -$(MAKE
) -C lzo
clean
1299 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1300 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1301 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1304 openvpn
: openvpn
/.conf
1307 cd openvpn
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1308 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1309 $(CONFIGURE
) --prefix= \
1310 --with-lzo-headers
="$(TOP)/lzo/include" \
1311 --with-ssl-headers
="$(TOP)/openssl/include/" \
1312 --with-iproute-path
="/usr/sbin/ip" \
1313 --disable-debug
--disable-plugins
--enable-management
--enable-small \
1314 --disable-selinux
--disable-socks
--enable-password-save
1318 -$(MAKE
) -C openvpn
clean
1319 @
rm -f openvpn
/.conf
1321 openvpn-install
: openvpn
1322 install -D openvpn
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1323 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1324 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1332 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
1336 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
1339 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
1344 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
1346 .PHONY
: all clean distclean mrproper
install package
1347 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1348 .PHONY
: dummy libnet libpcap