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
94 obj-
$(TCONFIG_IPV6
) += dhcpv6
96 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
97 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
98 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
99 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
100 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
101 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
102 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
103 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
104 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
105 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
106 MEDIA_SERVER_STATIC
=y
113 # configurable packages
115 obj-
$(TCONFIG_L2TP
) += xl2tpd
116 obj-
$(TCONFIG_PPTP
) += accel-pptp
117 obj-
$(TCONFIG_HTTPS
) += openssl
118 obj-
$(TCONFIG_SSH
) += dropbear
119 obj-
$(TCONFIG_ZEBRA
) += zebra
120 # obj-$(TCONFIG_IPP2P) += ipp2p
121 obj-
$(TCONFIG_LZO
) += lzo
122 obj-
$(TCONFIG_OPENVPN
) += openvpn
123 obj-
$(TCONFIG_EMF
) += emf
124 obj-
$(TCONFIG_EMF
) += igs
126 obj-
$(CONFIG_LINUX26
) += hotplug2
127 obj-
$(CONFIG_LINUX26
) += udev
129 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
130 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
138 all: clean-build libc
$(obj-y
) kernel
141 kernel
: $(LINUXDIR
)/.config
144 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
145 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
); \
147 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
148 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
); \
150 ifeq ($(CONFIG_LINUX26
),y
)
151 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
)
156 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
)
158 lzma-loader-install
: lzma-loader
163 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
)
166 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
167 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
169 install package
: $(obj-install
) $(LINUXDIR
)/.config
172 install -d
$(TARGETDIR
)
176 $(MAKE
) -C
$(LINUXDIR
) modules_install DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
178 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
{} \
;
179 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
{} \
;
180 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
{} \
;
181 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
{} \
;
182 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
{} \
;
183 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
{} \
;
184 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
{} \
;
186 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-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
)
279 @
$(SRCBASE
)/btools
/libfoo.pl
281 @
$(SRCBASE
)/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
/drivers
/leds
/*.
*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
373 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
376 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
377 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
378 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
379 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
380 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
382 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
383 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
384 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
385 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
386 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
387 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
388 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
390 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
391 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
393 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
394 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
395 @mv
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
397 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
398 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
399 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
400 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
401 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
402 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
403 ifneq ($(NEED_EX_USB
),y
)
404 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
405 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
407 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
409 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
410 ifeq ($(TCONFIG_L7PAT
),y
)
411 @cd layer7
&& .
/squish.sh
412 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
415 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
416 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
419 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
421 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
422 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-nopad | tee target.
info
424 # Package kernel and filesystem
425 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
426 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
427 # $(MAKE) -C $(LINUXDIR) zImage ; \
429 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
430 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
433 # Pad self-booting Linux to a 64 KB boundary
434 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
435 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
436 # Append filesystem to self-booting Linux
437 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
440 libc
: $(LIBDIR
)/ld-uClibc.so
.0
441 # $(MAKE) -C ../../../tools-src/uClibc all
442 # $(MAKE) -C ../../../tools-src/uClibc install
449 clean: clean-build
$(obj-clean
)
450 rm -rf layer7
/squished
456 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
457 rm -rf
$(PLATFORMDIR
)/extras
460 ifneq ($(INSIDE_MAK
),1)
461 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
463 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
469 CONFIG_IN
:= config
/config.in
471 config
/conf config
/mconf
:
475 @config
/conf
$(CONFIG_IN
)
478 @config
/mconf
$(CONFIG_IN
)
480 roldconf
: config
/conf
481 @config
/conf
-o
$(CONFIG_IN
)
482 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean vsftpd-clean
483 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean openssl-clean mssl-clean mdu-clean dnsmasq-clean dhcpv6-clean
486 @
$(MAKE
) -C
$(LINUXDIR
) config
489 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
492 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
493 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
496 @
$(MAKE
) -C busybox oldconfig
498 config conf
: rconf kconf
500 menuconfig mconf
: rmconf kmconf
502 oldconfig oldconf
: koldconf roldconf bboldconf
506 # overrides and extra dependencies
510 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)"
515 rm -rf
$(INSTALLDIR
)/busybox
516 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
519 $(MAKE
) -C busybox
distclean
522 $(MAKE
) -C busybox menuconfig
525 httpd
: shared nvram mssl
530 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
534 @
$(MAKE
) -C matrixssl
/src
540 $(MAKE
) -C matrixssl
/src
clean
543 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
544 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
545 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
546 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
547 PTHREAD_CFLAGS
="-lpthread" PTHREAD_LIBS
="-lpthread" \
548 $(CONFIGURE
) --with-libz
=no
549 @touch cyassl
/stamp-h1
551 cyassl
: cyassl
/stamp-h1
556 -@
$(MAKE
) -C cyassl
clean
557 @
rm -f cyassl
/stamp-h1
562 ifeq ($(TCONFIG_OPENVPN
),y
)
563 OPENSSL_CIPHERS
:=enable-rc5
565 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-aes no-aes192 no-cast no-des no-modes no-tls1 no-tlsext
570 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
571 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
572 shared
$(OPENSSL_CIPHERS
) \
573 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
574 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
575 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
576 no-zlib no-engine no-engines no-sse2 no-perlasm \
577 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
579 @
$(MAKE
) -C openssl
clean
580 @touch openssl
/stamp-h1
582 openssl
: openssl
/stamp-h1
585 -@
$(MAKE
) -C openssl
clean
586 @
rm -f openssl
/stamp-h1
588 openssl-install
: openssl
589 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
590 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
591 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
593 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
594 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
595 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
597 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
599 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
600 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
602 ifeq ($(TCONFIG_FTP_SSL
),y
)
604 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
605 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
606 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
609 ifeq ($(TCONFIG_OPENVPN
),y
)
610 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
611 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
612 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
615 mssl
: $(if
$(TCONFIG_OPENVPN
),openssl
,cyassl
)
622 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
623 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
625 bridge
: bridge
/Makefile
630 -@
$(MAKE
) -C bridge
clean
631 @
rm -f bridge
/Makefile
634 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
635 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
639 @
$(MAKE
) -C dnsmasq \
640 COPTS
="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) $(if $(TCONFIG_USB_EXTRAS),,-DNO_SCRIPT) $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
641 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
644 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
645 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
649 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
652 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
653 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
654 ln
-sf iptables iptables-restore
656 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
657 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
659 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
661 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
662 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
663 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
665 ifeq ($(TCONFIG_IPV6
),y
)
666 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
667 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
668 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
669 ln
-sf ip6tables ip6tables-restore
673 -$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
677 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
678 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
681 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
683 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
684 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
685 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
686 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
687 @touch rp-pppoe
/src
/stamp-h1
689 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
690 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
693 -$(MAKE
) -C rp-pppoe
/src
clean
694 @
rm -f rp-pppoe
/src
/pppoe-relay
695 @
rm -f rp-pppoe
/src
/stamp-h1
697 rp-pppoe-install
: rp-pppoe
698 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
699 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
700 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
701 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
704 upnp
: nvram shared iptables
708 $(MAKE
) -C miniupnpd
-f Makefile.tomato
711 -$(MAKE
) -C miniupnpd
-f Makefile.tomato
clean
714 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
715 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
724 vsftpd-install
: vsftpd
725 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
726 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
730 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
731 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
732 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
733 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
734 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
736 ntfs-3g
: ntfs-3g
/Makefile
740 -@
$(MAKE
) -C ntfs-3g
clean
741 @
rm -f ntfs-3g
/Makefile
743 ntfs-3g-install
: ntfs-3g
744 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
745 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
746 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
747 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
748 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
750 libusb10
/Makefile
: libusb10
/Makefile.in
751 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
752 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
754 libusb10
: libusb10
/Makefile
757 libusb10-install
: libusb10
758 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
.0.0.0 $(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
.0
759 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so.
*
760 cd
$(INSTALLDIR
)/libusb10
/usr
/lib
&& \
761 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
.0.0.0 && \
762 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
764 libusb
/Makefile
: libusb
/Makefile.in
765 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
766 $(CONFIGURE
) --prefix=/usr \
767 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
768 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
769 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
771 libusb
: libusb10 libusb
/Makefile
774 libusb-install
: libusb
775 install -D libusb
/libusb
/.libs
/libusb-0.1.so
.4.4.4 $(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
.4
776 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so.
*
777 cd
$(INSTALLDIR
)/libusb
/usr
/lib
&& \
778 ln
-sf libusb-0.1.so
.4 libusb-0.1.so
.4.4.4 && \
779 ln
-sf libusb-0.1.so
.4 libusb.so
781 usbmodeswitch
: libusb10
782 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
783 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
784 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
786 usbmodeswitchdb-install
:
787 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
788 # compress whitespace
789 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
791 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
794 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
795 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
796 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
797 @mkdir
-p
$(TARGETDIR
)/rom
/etc
798 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
801 radvd
/stamp-h1
: radvd
/Makefile.in
802 cd radvd
&& CPPFLAGS
="-Os $(EXTRACFLAGS)" $(CONFIGURE
) --prefix=""
803 @touch radvd
/stamp-h1
805 radvd
: radvd
/stamp-h1
808 -@
$(MAKE
) -C radvd
distclean
809 @
rm -f radvd
/stamp-h1
812 install -D radvd
/radvd
$(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
813 $(STRIP
) $(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
817 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
818 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
819 ac_cv_func_setpgrp_void
=yes \
820 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
821 @
$(MAKE
) -C dhcpv6
clean
822 @touch dhcpv6
/stamp-h1
824 dhcpv6
: dhcpv6
/stamp-h1
826 @
$(MAKE
) -C dhcpv6 dhcp6c
828 dhcpv6-install
: dhcpv6
829 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
830 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
833 -@
$(MAKE
) -C dhcpv6
clean
834 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
847 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
850 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
851 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
855 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
856 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
859 accel-pptp
: pppd accel-pptp
/Makefile
860 @
$(MAKE
) -C accel-pptp
862 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
863 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
864 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
867 -@
$(MAKE
) -C accel-pptp
clean
868 @
rm -f accel-pptp
/Makefile
870 accel-pptp-install
: accel-pptp
871 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
872 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
875 pppd
/Makefile
: pppd
/linux
/Makefile.top
876 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
880 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
883 -$(MAKE
) -C pppd
clean
887 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
888 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
889 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
890 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
891 ifeq ($(TCONFIG_L2TP
),y
)
892 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
893 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
897 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
898 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
901 @cd zebra
&& rm -f config.cache
&& \
902 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
903 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
904 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
905 $(CONFIGURE
) --sysconfdir
=/etc \
906 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
907 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
908 @touch zebra
/stamp-h1
910 zebra
: zebra
/stamp-h1
911 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
914 -@
$(MAKE
) -C zebra
clean
915 @
rm -f zebra
/stamp-h1
918 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
919 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
920 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
921 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
922 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
923 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
927 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
928 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
929 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
930 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
931 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
932 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
933 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
936 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
938 xl2tpd-install
: xl2tpd
939 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
940 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
944 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
945 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
950 # @-mkdir -p libnet/lib
951 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
955 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
958 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
961 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
962 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
967 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS)"
969 iproute2-install
: iproute2
970 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
971 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
972 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
973 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
979 dropbear
: dropbear
/config.h
981 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1
984 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
985 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
986 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
987 ln
-sf dropbearmulti dropbear
&& \
988 ln
-sf dropbearmulti dropbearconvert
&& \
989 ln
-sf dropbearmulti dropbearkey
&& \
990 ln
-sf dropbearmulti dbclient
&& \
991 ln
-sf dropbearmulti ssh
&& \
992 ln
-sf dropbearmulti scp
995 -@
$(MAKE
) -C dropbear
clean
996 @
rm -f dropbear
/config.h
999 cd dropbear
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1000 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1001 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1002 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1003 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1004 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
1005 @
$(MAKE
) -C dropbear
clean
1011 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1012 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1013 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1014 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1015 touch sqlite
/stamp-h1
1017 sqlite
: sqlite
/stamp-h1
1018 @
$(MAKE
) -C sqlite
all
1021 -@
$(MAKE
) -C sqlite
clean
1022 @
rm -f sqlite
/stamp-h1
1024 sqlite-install
: sqlite
1026 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1027 install -D sqlite
/.libs
/libsqlite3.so
.0 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1028 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1031 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1033 FFMPEG_DECODERS
:=aac ac3 atrac3 h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1034 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1036 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1037 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1039 FFMPEG_PROTOCOLS
:=file
1040 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1042 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
1043 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1045 ffmpeg
/stamp-h1
: zlib
1046 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1047 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1048 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1049 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1050 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1051 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1052 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1053 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1054 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1055 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1056 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1057 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1058 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1059 --extra-libs
="-L$(TOP)/zlib -lz" \
1060 --enable-zlib
--disable-debug
--prefix=''
1061 touch ffmpeg
/stamp-h1
1063 ffmpeg
: ffmpeg
/stamp-h1 zlib
1064 @
$(MAKE
) -C ffmpeg
all
1067 -@
$(MAKE
) -C ffmpeg
clean
1068 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1070 ffmpeg-install
: ffmpeg
1072 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1073 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1074 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1075 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1076 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1077 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1078 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1083 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1084 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1085 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1086 touch libogg
/stamp-h1
1088 libogg
: libogg
/stamp-h1
1089 @
$(MAKE
) -C libogg
all
1092 -@
$(MAKE
) -C libogg
clean
1093 @
rm -f libogg
/stamp-h1
1095 libogg-install
: libogg
1097 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1098 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1099 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1102 flac
/stamp-h1
: libogg
1104 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1105 CPPFLAGS
="-I$(TOP)/libogg/include" \
1106 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1107 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1108 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1109 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1112 flac
: flac
/stamp-h1 libogg
1113 @
$(MAKE
) -C flac
/src
/libFLAC
all
1116 -@
$(MAKE
) -C flac
clean
1117 @
rm -f flac
/stamp-h1
1121 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1122 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1123 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1128 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1132 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
1135 -@
$(MAKE
) -C jpeg
clean
1136 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1140 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1141 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1142 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1146 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1147 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1148 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1149 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1150 touch libexif
/stamp-h1
1152 libexif
: libexif
/stamp-h1
1153 @
$(MAKE
) -C libexif
all
1156 -@
$(MAKE
) -C libexif
clean
1157 @
rm -f libexif
/stamp-h1
1159 libexif-install
: libexif
1161 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1162 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1163 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1168 CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1169 .
/configure
--shared
--prefix=''
1173 @
$(MAKE
) -C zlib CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) all
1176 -@
$(MAKE
) -C zlib
clean
1177 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1181 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1182 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1183 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1184 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1187 libid3tag
/stamp-h1
: zlib
1189 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1190 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1191 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1192 --disable-debugging
--disable-profiling
1193 touch libid3tag
/stamp-h1
1195 libid3tag
: libid3tag
/stamp-h1 zlib
1196 @
$(MAKE
) -C libid3tag
all
1199 -@
$(MAKE
) -C libid3tag
clean
1200 @
rm -f libid3tag
/stamp-h1
1202 libid3tag-install
: libid3tag
1204 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1205 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1206 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1209 libvorbis
/stamp-h1
: libogg
1211 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1212 CPPFLAGS
="-I$(TOP)/libogg/include" \
1213 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1214 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1215 --with-ogg-includes
="$(TOP)/libogg/include" \
1216 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1217 touch libvorbis
/stamp-h1
1219 libvorbis
: libvorbis
/stamp-h1
1220 @
$(MAKE
) -C libvorbis
/lib
all
1223 -@
$(MAKE
) -C libvorbis
clean
1224 @
rm -f libvorbis
/stamp-h1
1226 libvorbis-install
: libvorbis
1228 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1229 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1230 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1233 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1235 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
1238 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1239 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1240 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1241 $(CONFIGURE
) --prefix=/usr
1243 igmpproxy
: igmpproxy
/src
/Makefile
1245 @
$(MAKE
) -C igmpproxy
/src
1247 igmpproxy-install
: igmpproxy
1248 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1249 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1252 -$(MAKE
) -C igmpproxy
/src
clean
1253 @
rm -f igmpproxy
/src
/Makefile
1256 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1257 PROGRAMS
=udevtrigger
1260 install -d
$(INSTALLDIR
)
1261 install -d
$(TARGETDIR
)
1262 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1265 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1267 hotplug2-install
: hotplug2
1268 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1269 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1272 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1275 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1278 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1281 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1285 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1286 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1287 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1289 ebtables-install
: ebtables
1290 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1292 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1293 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1294 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1296 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1297 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1298 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1299 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1301 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1302 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1303 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1306 make
-C ebtables
clean
1310 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1316 -$(MAKE
) -C lzo
clean
1320 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1321 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1322 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1325 openvpn
: openvpn
/.conf
1328 cd openvpn
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1329 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1330 $(CONFIGURE
) --prefix= \
1331 --with-lzo-headers
="$(TOP)/lzo/include" \
1332 --with-ssl-headers
="$(TOP)/openssl/include/" \
1333 --with-iproute-path
="/usr/sbin/ip" \
1334 --disable-debug
--disable-plugins
--enable-management
--enable-small \
1335 --disable-selinux
--disable-socks
--enable-password-save
1339 -$(MAKE
) -C openvpn
clean
1340 @
rm -f openvpn
/.conf
1342 openvpn-install
: openvpn
1343 install -D openvpn
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1344 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1345 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1353 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
1357 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
1360 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
1365 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
1367 .PHONY
: all clean distclean mrproper
install package
1368 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1369 .PHONY
: dummy libnet libpcap