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 obj-
$(TCONFIG_SNMP
) += snmp
52 # !!TB - updated Broadcom Wireless driver
62 obj-
$(TCONFIG_NOCAT
) += nocat
64 obj-
$(TCONFIG_USB
) += p910nd
65 obj-
$(TCONFIG_USB
) += scsi-idle
68 obj-y
+= usbmodeswitch
69 obj-
$(TCONFIG_FTP
) += vsftpd
71 ifeq ($(CONFIG_LINUX26
),y
)
72 ifeq ($(TCONFIG_SAMBASRV
),y
)
75 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
80 ifeq ($(TCONFIG_SAMBASRV
),y
)
81 ifeq ($(TCONFIG_SAMBA3
),y
)
88 ifeq ($(TCONFIG_IPV6
),y
)
89 export TCONFIG_IPV6
:= y
94 obj-
$(NEED_SAMBA2
) += samba
95 obj-
$(NEED_SAMBA3
) += samba3
96 obj-
$(TCONFIG_NTFS
) += ntfs-3g
97 obj-
$(TCONFIG_EBTABLES
) += ebtables
98 obj-
$(TCONFIG_IPV6
) += radvd
99 obj-
$(TCONFIG_IPV6
) += dhcpv6
101 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
102 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
103 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
104 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
105 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
106 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
107 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
108 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
109 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
110 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
111 MEDIA_SERVER_STATIC
=y
118 # configurable packages
120 obj-
$(TCONFIG_L2TP
) += xl2tpd
121 obj-
$(TCONFIG_PPTP
) += accel-pptp
122 obj-
$(TCONFIG_HTTPS
) += openssl
123 obj-
$(TCONFIG_SSH
) += dropbear
124 obj-
$(TCONFIG_ZEBRA
) += zebra
125 # obj-$(TCONFIG_IPP2P) += ipp2p
126 obj-
$(TCONFIG_LZO
) += lzo
127 obj-
$(TCONFIG_OPENVPN
) += openvpn
128 obj-
$(TCONFIG_EMF
) += emf
129 obj-
$(TCONFIG_EMF
) += igs
131 obj-
$(CONFIG_LINUX26
) += hotplug2
132 obj-
$(CONFIG_LINUX26
) += udevtrigger
134 ifeq ($(TCONFIG_OPENVPN
),y
)
135 export FULL_OPENSSL
:= y
137 ifeq ($(TCONFIG_FTP_SSL
),y
)
138 export FULL_OPENSSL
:= y
144 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
145 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
153 all: clean-build libc
$(obj-y
) kernel
156 kernel
: $(LINUXDIR
)/.config
159 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
160 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
); \
162 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
163 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
); \
165 ifeq ($(CONFIG_LINUX26
),y
)
166 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
)
171 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
)
173 lzma-loader-install
: lzma-loader
178 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
)
181 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
182 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
184 install package
: $(obj-install
) $(LINUXDIR
)/.config
187 install -d
$(TARGETDIR
)
191 $(MAKE
) -C
$(LINUXDIR
) modules_install \
192 INSTALL_MOD_STRIP
="--strip-debug -x -R .comment -R .note -R .pdr -R .mdebug.abi32 -R .note.gnu.build-id -R .gnu.attributes -R .reginfo" \
193 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
195 ifneq ($(CONFIG_LINUX26
),y
)
196 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
197 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
198 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
199 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
200 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
201 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
202 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
204 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
207 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
210 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
211 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
212 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
213 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
214 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
215 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
216 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
217 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
218 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
219 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
222 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
223 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
224 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
225 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
226 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
227 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
228 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
229 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
230 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
231 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
232 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
233 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
234 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
235 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
236 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
237 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
238 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
239 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
240 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
241 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
242 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
243 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
244 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
245 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
246 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
247 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
248 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
249 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
250 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
251 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
252 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
253 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
254 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv core
/* .
&& rm -rf core || true
255 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv card
/* .
&& rm -rf card || true
256 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv host
/* .
&& rm -rf host || true
257 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
258 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
259 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
260 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
261 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
262 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
263 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
264 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
265 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
266 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
267 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
268 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
270 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
271 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
272 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
273 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
274 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
277 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
278 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
281 ifneq ($(TCONFIG_L7
),y
)
282 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
286 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
287 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
288 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
289 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
290 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
291 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
292 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
293 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
294 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
295 ifeq ($(TCONFIG_SSH
),y
)
296 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
298 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
299 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
300 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
303 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
307 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
308 @
$(SRCBASE
)/btools
/libfoo.pl
310 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
312 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
313 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
315 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
316 # separated/copied extra stuff
317 @
rm -rf
$(PLATFORMDIR
)/extras
318 @mkdir
$(PLATFORMDIR
)/extras
319 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
321 $(if
$(TCONFIG_OPENVPN
),@cp
-f
,$(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,$(if
$(TCONFIG_IPV6
),@cp
-f
,@mv
))) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/tun.
*o
$(PLATFORMDIR
)/extras
/ || true
322 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
324 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
325 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
326 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
327 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
328 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
329 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
330 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
331 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
332 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
333 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
334 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
335 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
336 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
337 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
338 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
339 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
340 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
342 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
343 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
344 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
345 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*acm.
*o
$(PLATFORMDIR
)/extras
/ || true
346 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
347 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
348 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
349 $(if
$(NEED_EX_USB
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc || true
351 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
352 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
353 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
354 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
355 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
356 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
357 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
358 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
359 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
360 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
361 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_ether.
*o
$(PLATFORMDIR
)/extras
/ || true
362 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
363 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
364 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
365 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
366 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
367 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
368 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
369 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
370 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
371 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
372 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
373 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
374 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
375 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
376 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
377 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
378 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
379 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
380 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
381 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/* $(PLATFORMDIR
)/extras
/ || true
382 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
384 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
385 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
386 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
387 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
388 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
389 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
390 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
392 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
393 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
394 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
395 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
396 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
397 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
398 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
399 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
400 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
401 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
402 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
403 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
404 ifneq ($(TCONFIG_USB
),y
)
405 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
406 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
407 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
410 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
411 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
412 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
413 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
414 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
416 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
417 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
418 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
419 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
420 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
421 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
422 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
424 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
425 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
427 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
428 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
429 @mv
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
431 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
432 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
433 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
434 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
435 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
436 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
437 ifneq ($(NEED_EX_USB
),y
)
438 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
439 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
441 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
443 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
444 ifeq ($(TCONFIG_L7PAT
),y
)
445 @cd layer7
&& .
/squish.sh
446 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
449 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
450 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
453 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
455 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
456 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-nopad | tee target.
info
458 # Package kernel and filesystem
459 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
460 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
461 # $(MAKE) -C $(LINUXDIR) zImage ; \
463 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
464 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
467 # Pad self-booting Linux to a 64 KB boundary
468 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
469 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
470 # Append filesystem to self-booting Linux
471 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
474 libc
: $(LIBDIR
)/ld-uClibc.so
.0
475 # $(MAKE) -C ../../../tools-src/uClibc all
476 # $(MAKE) -C ../../../tools-src/uClibc install
483 clean: clean-build
$(obj-clean
)
484 rm -rf layer7
/squished
485 rm -f .ipv6-y .ipv6-n
486 rm -f .fullssl-y .fullssl-n
492 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
493 rm -rf
$(PLATFORMDIR
)/extras
496 ifneq ($(INSIDE_MAK
),1)
497 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
499 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
505 CONFIG_IN
:= config
/config.in
507 config
/conf config
/mconf
:
511 @config
/conf
$(CONFIG_IN
)
514 @config
/mconf
$(CONFIG_IN
)
516 roldconf
: config
/conf
517 @config
/conf
-o
$(CONFIG_IN
)
518 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
521 @
$(MAKE
) -C
$(LINUXDIR
) config
524 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
527 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
528 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
531 @
$(MAKE
) -C busybox oldconfig
533 config conf
: rconf kconf
535 menuconfig mconf
: rmconf kmconf
538 @
rm -f .ipv6-y .ipv6-n
539 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
542 .fullssl-y .fullssl-n
:
543 @
rm -f .fullssl-y .fullssl-n
544 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
547 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
549 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
553 # overrides and extra dependencies
557 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)"
562 rm -rf
$(INSTALLDIR
)/busybox
563 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
566 $(MAKE
) -C busybox
distclean
569 $(MAKE
) -C busybox menuconfig
572 httpd
: shared nvram mssl
577 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
581 @
$(MAKE
) -C matrixssl
/src
587 $(MAKE
) -C matrixssl
/src
clean
590 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
591 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections \
592 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
593 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
594 PTHREAD_LIBS
="-lpthread" \
596 @touch cyassl
/stamp-h1
598 cyassl
: cyassl
/stamp-h1
603 -@
$(MAKE
) -C cyassl
clean
604 @
rm -f cyassl
/stamp-h1
609 ifeq ($(FULL_OPENSSL
),y
)
610 OPENSSL_CIPHERS
:=enable-rc5
612 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-aes no-aes192 no-cast no-des no-modes no-tls1 no-tlsext
617 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
618 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
619 shared
$(OPENSSL_CIPHERS
) \
620 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
621 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
622 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
623 no-zlib no-engine no-engines no-sse2 no-perlasm \
624 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
626 @
$(MAKE
) -C openssl
clean
627 @touch openssl
/stamp-h1
629 openssl
: openssl
/stamp-h1
632 -@
$(MAKE
) -C openssl
clean
633 @
rm -f openssl
/stamp-h1
635 openssl-install
: openssl
636 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
637 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
638 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
640 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
641 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
642 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
644 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
646 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
647 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
649 ifeq ($(FULL_OPENSSL
),y
)
650 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
651 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
652 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
655 mssl
: $(if
$(FULL_OPENSSL
),openssl
,cyassl
)
662 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
663 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
665 bridge
: bridge
/Makefile
670 -@
$(MAKE
) -C bridge
clean
671 @
rm -f bridge
/Makefile
674 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
675 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
679 @
$(MAKE
) -C dnsmasq \
680 COPTS
="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
681 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
684 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
685 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
689 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
692 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
693 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
694 ln
-sf iptables iptables-restore
696 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
697 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
699 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
701 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
702 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
703 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
705 ifeq ($(TCONFIG_IPV6
),y
)
706 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
707 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
708 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
709 ln
-sf ip6tables ip6tables-restore
713 -$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
717 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
718 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
721 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
723 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
724 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
725 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
726 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
727 @touch rp-pppoe
/src
/stamp-h1
729 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
730 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
733 -$(MAKE
) -C rp-pppoe
/src
clean
734 @
rm -f rp-pppoe
/src
/pppoe-relay
735 @
rm -f rp-pppoe
/src
/stamp-h1
737 rp-pppoe-install
: rp-pppoe
738 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
739 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
740 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
741 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
744 upnp
: nvram shared iptables
747 @cd miniupnpd
&& .
/genconfig.sh
749 miniupnpd
: iptables miniupnpd-config
751 $(MAKE
) -C miniupnpd miniupnpd
-f Makefile.linux \
752 TARGET_OPENWRT
="not really" CC
=$(CC
) \
753 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include -I$(TOP)/shared" \
754 LDFLAGS
="-L$(TOP)/iptables -liptc" LIBS
=""
757 -$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
758 @
rm -f miniupnpd
/config.h
761 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
762 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
767 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
771 vsftpd-install
: vsftpd
772 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
773 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
777 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
778 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
779 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
780 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
781 --disable-ntfsprogs
--disable-crypto
--without-uuid \
782 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
784 ntfs-3g
: ntfs-3g
/Makefile
788 -@
$(MAKE
) -C ntfs-3g
clean
789 @
rm -f ntfs-3g
/Makefile
791 ntfs-3g-install
: ntfs-3g
792 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
793 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
794 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
795 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
796 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
798 libusb10
/Makefile
: libusb10
/Makefile.in
799 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
800 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
802 libusb10
: libusb10
/Makefile
805 libusb10-install
: libusb10
806 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
807 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
810 -@
$(MAKE
) -C
$@
clean
811 @
rm -rf libusb10
/Makefile
813 libusb
/Makefile
: libusb
/Makefile.in
814 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
815 $(CONFIGURE
) --prefix=/usr \
816 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
817 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
818 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
820 libusb
: libusb10 libusb
/Makefile
823 libusb-install
: libusb
824 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
825 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
828 -@
$(MAKE
) -C
$@
clean
829 @
rm -rf libusb
/Makefile
831 usbmodeswitch
: libusb10
832 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
833 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
834 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
836 usbmodeswitchdb-install
:
837 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
838 # compress whitespace
839 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
841 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
844 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
845 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
846 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
847 @mkdir
-p
$(TARGETDIR
)/rom
/etc
848 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
852 cd radvd
&& CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
853 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
854 $(CONFIGURE
) --prefix=""
855 @
$(MAKE
) -C radvd
clean
856 @touch radvd
/stamp-h1
858 radvd
: radvd
/stamp-h1
861 -@
$(MAKE
) -C radvd
distclean
862 @
rm -f radvd
/stamp-h1
865 install -D radvd
/radvd
$(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
866 $(STRIP
) $(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
870 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
871 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
872 ac_cv_func_setpgrp_void
=yes \
873 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
874 @
$(MAKE
) -C dhcpv6
clean
875 @touch dhcpv6
/stamp-h1
877 dhcpv6
: dhcpv6
/stamp-h1
879 @
$(MAKE
) -C dhcpv6 dhcp6c
881 dhcpv6-install
: dhcpv6
882 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
883 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
886 -@
$(MAKE
) -C dhcpv6
clean
887 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
896 prebuilt
: shared libbcmcrypto
900 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
903 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
904 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
908 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
909 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
912 accel-pptp
: pppd accel-pptp
/Makefile
913 @
$(MAKE
) -C accel-pptp
915 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
916 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
917 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
920 -@
$(MAKE
) -C accel-pptp
clean
921 @
rm -f accel-pptp
/Makefile
923 accel-pptp-install
: accel-pptp
924 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
925 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
928 pppd
/Makefile
: pppd
/linux
/Makefile.top
929 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
933 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
936 -$(MAKE
) -C pppd
clean
940 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
941 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
942 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
943 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
944 ifeq ($(TCONFIG_L2TP
),y
)
945 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
946 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
950 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
951 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
954 @cd zebra
&& rm -f config.cache
&& \
955 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
956 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
957 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
958 $(CONFIGURE
) --sysconfdir
=/etc \
959 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
960 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
961 @touch zebra
/stamp-h1
963 zebra
: zebra
/stamp-h1
964 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
967 -@
$(MAKE
) -C zebra
clean
968 @
rm -f zebra
/stamp-h1
971 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
972 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
973 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
974 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
975 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
976 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
980 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
981 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
982 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
983 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
984 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
985 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
986 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
989 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
991 xl2tpd-install
: xl2tpd
992 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
993 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
997 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
998 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1003 # @-mkdir -p libnet/lib
1004 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1008 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1011 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1014 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1015 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1020 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1022 iproute2-install
: iproute2
1023 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1024 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1025 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1026 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1032 dropbear
: dropbear
/config.h
1034 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1
1037 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1038 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1039 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1040 ln
-sf dropbearmulti dropbear
&& \
1041 ln
-sf dropbearmulti dropbearconvert
&& \
1042 ln
-sf dropbearmulti dropbearkey
&& \
1043 ln
-sf dropbearmulti dbclient
&& \
1044 ln
-sf dropbearmulti ssh
&& \
1045 ln
-sf dropbearmulti scp
1048 -@
$(MAKE
) -C dropbear
clean
1049 @
rm -f dropbear
/config.h
1053 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1054 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1055 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1056 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1057 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1058 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1059 @
$(MAKE
) -C dropbear
clean
1065 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1066 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1067 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1068 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1069 touch sqlite
/stamp-h1
1071 sqlite
: sqlite
/stamp-h1
1072 @
$(MAKE
) -C sqlite
all
1075 -@
$(MAKE
) -C sqlite
clean
1076 @
rm -f sqlite
/stamp-h1
1078 sqlite-install
: sqlite
1080 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1081 install -D sqlite
/.libs
/libsqlite3.so
.0 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1082 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1085 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1087 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1088 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1090 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1091 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1093 FFMPEG_PROTOCOLS
:=file
1094 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1096 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
1097 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1099 ffmpeg
/stamp-h1
: zlib
1100 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1101 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1102 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1103 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1104 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1105 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1106 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1107 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1108 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1109 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1110 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1111 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1112 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1113 --extra-libs
="-L$(TOP)/zlib -lz" \
1114 --enable-zlib
--disable-debug
--prefix=''
1115 touch ffmpeg
/stamp-h1
1117 ffmpeg
: ffmpeg
/stamp-h1 zlib
1118 @
$(MAKE
) -C ffmpeg
all
1121 -@
$(MAKE
) -C ffmpeg
clean
1122 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1124 ffmpeg-install
: ffmpeg
1126 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1127 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1128 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1129 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1130 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1131 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1132 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1137 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1138 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1139 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1140 touch libogg
/stamp-h1
1142 libogg
: libogg
/stamp-h1
1143 @
$(MAKE
) -C libogg
all
1146 -@
$(MAKE
) -C libogg
clean
1147 @
rm -f libogg
/stamp-h1
1149 libogg-install
: libogg
1151 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1152 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1153 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1156 flac
/stamp-h1
: libogg
1158 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1159 CPPFLAGS
="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1160 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1161 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1162 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1163 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1166 flac
: flac
/stamp-h1 libogg
1167 @
$(MAKE
) -C flac
/src
/libFLAC
all
1170 -@
$(MAKE
) -C flac
clean
1171 @
rm -f flac
/stamp-h1
1175 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1176 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1177 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1182 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1186 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
1189 -@
$(MAKE
) -C jpeg
clean
1190 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1194 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1195 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1196 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1200 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1201 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1202 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1203 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1204 touch libexif
/stamp-h1
1206 libexif
: libexif
/stamp-h1
1207 @
$(MAKE
) -C libexif
all
1210 -@
$(MAKE
) -C libexif
clean
1211 @
rm -f libexif
/stamp-h1
1213 libexif-install
: libexif
1215 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1216 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1217 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1222 CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1223 .
/configure
--shared
--prefix=''
1227 @
$(MAKE
) -C zlib CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) all
1230 -@
$(MAKE
) -C zlib
clean
1231 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1235 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1236 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1237 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1238 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1241 libid3tag
/stamp-h1
: zlib
1243 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1244 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1245 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1246 --disable-debugging
--disable-profiling
1247 touch libid3tag
/stamp-h1
1249 libid3tag
: libid3tag
/stamp-h1 zlib
1250 @
$(MAKE
) -C libid3tag
all
1253 -@
$(MAKE
) -C libid3tag
clean
1254 @
rm -f libid3tag
/stamp-h1
1256 libid3tag-install
: libid3tag
1258 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1259 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1260 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1263 libvorbis
/stamp-h1
: libogg
1265 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1266 CPPFLAGS
="-I$(TOP)/libogg/include" \
1267 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1268 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1269 --with-ogg-includes
="$(TOP)/libogg/include" \
1270 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1271 touch libvorbis
/stamp-h1
1273 libvorbis
: libvorbis
/stamp-h1
1274 @
$(MAKE
) -C libvorbis
/lib
all
1277 -@
$(MAKE
) -C libvorbis
clean
1278 @
rm -f libvorbis
/stamp-h1
1280 libvorbis-install
: libvorbis
1282 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1283 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1284 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1287 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1289 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
1292 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1293 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1294 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1295 $(CONFIGURE
) --prefix=/usr
1297 igmpproxy
: igmpproxy
/src
/Makefile
1299 @
$(MAKE
) -C igmpproxy
/src
1301 igmpproxy-install
: igmpproxy
1302 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1303 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1306 -$(MAKE
) -C igmpproxy
/src
clean
1307 @
rm -f igmpproxy
/src
/Makefile
1310 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1311 PROGRAMS
=udevtrigger
1314 install -d
$(INSTALLDIR
)
1315 install -d
$(TARGETDIR
)
1316 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1319 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1321 hotplug2-install
: hotplug2
1322 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1323 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1326 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1329 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1332 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1335 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1339 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1340 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1341 LOCKFILE
="/var/lock/ebtables" LOCKDIR
="/var/lock" \
1342 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1344 ebtables-install
: ebtables
1345 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1347 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1348 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1349 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1351 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1352 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1353 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1354 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1356 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1357 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1358 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1361 make
-C ebtables
clean
1366 @cd glib
&& $(CONFIGURE
) --prefix=/usr glib_cv_prog_cc_ansi_proto
=no glib_cv_has__inline
=yes glib_cv_has__inline__
=yes glib_cv_hasinline
=yes \
1367 glib_cv_sane_realloc
=yes glib_cv_va_copy
=no glib_cv___va_copy
=yes glib_cv_va_val_copy
=yes glib_cv_rtldglobal_broken
=no \
1368 glib_cv_uscore
=no glib_cv_func_pthread_mutex_trylock_posix
=yes glib_cv_func_pthread_cond_timedwait_posix
=yes glib_cv_sizeof_gmutex
=24 \
1369 glib_cv_byte_contents_gmutex
="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" glib_cv_sys_pthread_getspecific_posix
=yes \
1370 glib_cv_sys_pthread_mutex_trylock_posix
=yes glib_cv_sys_pthread_cond_timedwait_posix
=yes ac_cv_func_getpwuid_r
=yes ac_cv_func_getpwuid_r_posix
=yes
1374 $(MAKE
) -C glib
clean
1377 @
$(MAKE
) -C glib DESTDIR
=$(INSTALLDIR
)/glib
install
1380 nocat
: glib glib-install
1384 $(CONFIGURE
) --with-firewall
=iptables
--with-glib-prefix
="$(INSTALLDIR)/glib/usr" --localstatedir
=/var
--sysconfdir
=/etc
1387 echo
*** cleaning up glib staging after compile
1388 rm -rfv
$(INSTALLDIR
)/glib
/usr
1389 echo
*** integrate glib to nocat installdir
1390 install -d
$(INSTALLDIR
)/nocat
/usr
/lib
1391 install -D glib
/.libs
/libglib-1.2.so
.0.0.10 $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1392 cd
$(INSTALLDIR
)/nocat
/usr
/lib
&& ln
-s libglib-1.2.so
.0.0.10 libglib-1.2.so
.0
1393 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/lib
/libglib-1.2.so
.0.0.10
1396 $(MAKE
) -C nocat
clean
1399 install -D nocat
/src
/splashd
$(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1400 $(STRIP
) $(INSTALLDIR
)/nocat
/usr
/sbin
/splashd
1401 mkdir
-p
$(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1402 install -D nocat
/libexec
/iptables
/* $(INSTALLDIR
)/nocat
/usr
/libexec
/nocat
1406 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1412 -$(MAKE
) -C lzo
clean
1416 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1417 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1418 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1421 openvpn
: openvpn
/.conf openssl lzo
1424 cd openvpn
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1425 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1426 $(CONFIGURE
) --prefix= \
1427 --with-lzo-headers
="$(TOP)/lzo/include" \
1428 --with-ssl-headers
="$(TOP)/openssl/include/" \
1429 --with-iproute-path
="/usr/sbin/ip" \
1430 --disable-debug
--disable-plugins
--enable-management
--enable-small \
1431 --disable-selinux
--disable-socks
--enable-password-save
1435 -$(MAKE
) -C openvpn
clean
1436 @
rm -f openvpn
/.conf
1438 openvpn-install
: openvpn
1439 install -D openvpn
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1440 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1441 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1445 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1446 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
1447 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
1448 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
1449 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
1450 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
1451 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
1452 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
1453 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
1461 -$(MAKE
) -C snmp
clean
1462 @
rm -f snmp
/stamp-h1
1465 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
1466 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
1473 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
1477 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
1480 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
1483 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
1488 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
1490 .PHONY
: all clean distclean mrproper
install package
1491 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1492 .PHONY
: dummy libnet libpcap