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_USB
) += p910nd
63 obj-
$(TCONFIG_USB
) += scsi-idle
66 obj-y
+= usbmodeswitch
67 obj-
$(TCONFIG_FTP
) += vsftpd
69 ifeq ($(CONFIG_LINUX26
),y
)
70 ifeq ($(TCONFIG_SAMBASRV
),y
)
73 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
78 ifeq ($(TCONFIG_SAMBASRV
),y
)
79 ifeq ($(TCONFIG_SAMBA3
),y
)
86 ifeq ($(TCONFIG_IPV6
),y
)
87 export TCONFIG_IPV6
:= y
92 obj-
$(NEED_SAMBA2
) += samba
93 obj-
$(NEED_SAMBA3
) += samba3
94 obj-
$(TCONFIG_NTFS
) += ntfs-3g
95 obj-
$(TCONFIG_EBTABLES
) += ebtables
96 obj-
$(TCONFIG_IPV6
) += radvd
97 obj-
$(TCONFIG_IPV6
) += dhcpv6
99 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
100 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
101 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
102 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
103 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
104 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
105 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
106 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
107 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
108 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
109 MEDIA_SERVER_STATIC
=y
116 # configurable packages
118 obj-
$(TCONFIG_L2TP
) += xl2tpd
119 obj-
$(TCONFIG_PPTP
) += accel-pptp
120 obj-
$(TCONFIG_HTTPS
) += openssl
121 obj-
$(TCONFIG_SSH
) += dropbear
122 obj-
$(TCONFIG_ZEBRA
) += zebra
123 # obj-$(TCONFIG_IPP2P) += ipp2p
124 obj-
$(TCONFIG_LZO
) += lzo
125 obj-
$(TCONFIG_OPENVPN
) += openvpn
126 obj-
$(TCONFIG_EMF
) += emf
127 obj-
$(TCONFIG_EMF
) += igs
129 obj-
$(CONFIG_LINUX26
) += hotplug2
130 obj-
$(CONFIG_LINUX26
) += udevtrigger
132 ifeq ($(TCONFIG_OPENVPN
),y
)
133 export FULL_OPENSSL
:= y
135 ifeq ($(TCONFIG_FTP_SSL
),y
)
136 export FULL_OPENSSL
:= y
142 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
143 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
151 all: clean-build libc
$(obj-y
) kernel
154 kernel
: $(LINUXDIR
)/.config
157 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
158 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
); \
160 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
161 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
); \
163 ifeq ($(CONFIG_LINUX26
),y
)
164 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
)
169 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
)
171 lzma-loader-install
: lzma-loader
176 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
)
179 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
180 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
182 install package
: $(obj-install
) $(LINUXDIR
)/.config
185 install -d
$(TARGETDIR
)
189 $(MAKE
) -C
$(LINUXDIR
) modules_install \
190 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" \
191 DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
193 ifneq ($(CONFIG_LINUX26
),y
)
194 find
$(TARGETDIR
)/lib
/modules
-name wl.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
195 find
$(TARGETDIR
)/lib
/modules
-name et.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
196 find
$(TARGETDIR
)/lib
/modules
-name bcm57
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
197 find
$(TARGETDIR
)/lib
/modules
-name ctf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
198 find
$(TARGETDIR
)/lib
/modules
-name emf.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
199 find
$(TARGETDIR
)/lib
/modules
-name igs.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
200 find
$(TARGETDIR
)/lib
/modules
-name jffs
*.
*o
-exec
$(STRIP
) --strip-unneeded
-x
{} \
;
202 find
$(TARGETDIR
)/lib
/modules
-name
*.
*o
-exec
$(STRIP
) --strip-debug
-x
-R .mdebug.abi32
{} \
;
205 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
208 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
209 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
210 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
211 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
212 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
213 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
214 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
215 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
216 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
217 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
220 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
221 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
222 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
223 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
224 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jfs
/* .
&& rm -rf jfs || true
225 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
226 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
227 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
228 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
229 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
230 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
231 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
232 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
233 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
234 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
235 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
236 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
237 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
238 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
239 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
240 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
241 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
242 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
243 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
244 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
245 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
246 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
247 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
248 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
249 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
250 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
251 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv usbip
/* .
&& rm -rf usbip || true
252 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv core
/* .
&& rm -rf core || true
253 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv card
/* .
&& rm -rf card || true
254 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
&& mv host
/* .
&& rm -rf host || true
255 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
256 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
257 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
258 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
259 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
260 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
261 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv pwc
/* .
&& rm -rf pwc || true
262 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv gl860
/* .
&& rm -rf gl860 || true
263 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv m5602
/* .
&& rm -rf m5602 || true
264 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
/gspca
&& mv stv06xx
/* .
&& rm -rf stv06xx || true
265 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv gspca
/* .
&& rm -rf gspca || true
266 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
268 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
269 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
270 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
271 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
272 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
275 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
276 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
279 ifneq ($(TCONFIG_L7
),y
)
280 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
284 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
285 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
286 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
287 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
288 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
289 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
290 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
291 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
292 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
293 ifeq ($(TCONFIG_SSH
),y
)
294 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
296 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
297 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
298 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
301 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
305 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
306 @
$(SRCBASE
)/btools
/libfoo.pl
308 @
$(SRCBASE
)/btools
/libfoo.pl
--noopt
310 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
311 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
313 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
314 # separated/copied extra stuff
315 @
rm -rf
$(PLATFORMDIR
)/extras
316 @mkdir
$(PLATFORMDIR
)/extras
317 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
319 $(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
320 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
322 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
323 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
324 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
325 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
326 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
327 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
328 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jfs.
*o
$(PLATFORMDIR
)/extras
/ || true
329 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
330 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
331 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
332 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
333 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
334 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
335 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
336 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
337 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
338 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
340 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
341 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
342 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
343 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*acm.
*o
$(PLATFORMDIR
)/extras
/ || true
344 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
345 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
346 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
347 $(if
$(NEED_EX_USB
),@ls
,@
rm -rf
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/mmc || true
349 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbip
*.
*o
$(PLATFORMDIR
)/extras
/ || true
350 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
351 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
352 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
353 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
354 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
355 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
356 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
357 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
358 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
359 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_ether.
*o
$(PLATFORMDIR
)/extras
/ || true
360 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
361 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
362 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
363 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
364 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
365 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
366 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
367 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
368 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
369 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
370 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
371 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
372 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
373 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
374 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
375 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ctf
*.
*o
$(PLATFORMDIR
)/extras
/ || true
376 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
377 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
378 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
379 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/* $(PLATFORMDIR
)/extras
/ || true
380 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
382 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
383 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
384 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
385 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
386 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
387 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
388 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
390 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
391 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
392 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
393 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
394 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
395 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
396 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
397 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
398 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
399 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
400 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
401 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
402 ifneq ($(TCONFIG_USB
),y
)
403 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
404 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
405 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/leds || true
408 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
409 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
410 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
411 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
412 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
414 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
415 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
416 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
417 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
418 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
419 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
420 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
422 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
423 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
425 @mv
$(TARGETDIR
)/usr
/sbin
/ttcp
$(PLATFORMDIR
)/extras
/apps
/ || true
426 @mv
$(TARGETDIR
)/usr
/sbin
/mii-tool
$(PLATFORMDIR
)/extras
/apps
/ || true
427 @mv
$(TARGETDIR
)/usr
/sbin
/robocfg
$(PLATFORMDIR
)/extras
/apps
/ || true
429 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
430 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
431 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
432 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
433 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
434 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
435 ifneq ($(NEED_EX_USB
),y
)
436 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
437 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
439 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
441 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
442 ifeq ($(TCONFIG_L7PAT
),y
)
443 @cd layer7
&& .
/squish.sh
444 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
447 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
448 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
451 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
453 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
454 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-nopad | tee target.
info
456 # Package kernel and filesystem
457 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
458 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
459 # $(MAKE) -C $(LINUXDIR) zImage ; \
461 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
462 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
465 # Pad self-booting Linux to a 64 KB boundary
466 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
467 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
468 # Append filesystem to self-booting Linux
469 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
472 libc
: $(LIBDIR
)/ld-uClibc.so
.0
473 # $(MAKE) -C ../../../tools-src/uClibc all
474 # $(MAKE) -C ../../../tools-src/uClibc install
481 clean: clean-build
$(obj-clean
)
482 rm -rf layer7
/squished
483 rm -f .ipv6-y .ipv6-n
484 rm -f .fullssl-y .fullssl-n
490 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
491 rm -rf
$(PLATFORMDIR
)/extras
494 ifneq ($(INSIDE_MAK
),1)
495 $(MAKE
) -C
$(SRCBASE
) $@ INSIDE_MAK
=1
497 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
503 CONFIG_IN
:= config
/config.in
505 config
/conf config
/mconf
:
509 @config
/conf
$(CONFIG_IN
)
512 @config
/mconf
$(CONFIG_IN
)
514 roldconf
: config
/conf
515 @config
/conf
-o
$(CONFIG_IN
)
516 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
519 @
$(MAKE
) -C
$(LINUXDIR
) config
522 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
525 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
526 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
529 @
$(MAKE
) -C busybox oldconfig
531 config conf
: rconf kconf
533 menuconfig mconf
: rmconf kmconf
536 @
rm -f .ipv6-y .ipv6-n
537 @
$(MAKE
) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
540 .fullssl-y .fullssl-n
:
541 @
rm -f .fullssl-y .fullssl-n
542 @
$(MAKE
) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
545 dependconf
: .ipv6-
$(if
$(TCONFIG_IPV6
),y
,n
) .fullssl-
$(if
$(FULL_OPENSSL
),y
,n
)
547 oldconfig oldconf
: koldconf roldconf dependconf bboldconf
551 # overrides and extra dependencies
555 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)"
560 rm -rf
$(INSTALLDIR
)/busybox
561 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
564 $(MAKE
) -C busybox
distclean
567 $(MAKE
) -C busybox menuconfig
570 httpd
: shared nvram mssl
575 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
579 @
$(MAKE
) -C matrixssl
/src
585 $(MAKE
) -C matrixssl
/src
clean
588 @cd cyassl
&& CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
589 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections \
590 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
591 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
592 PTHREAD_LIBS
="-lpthread" \
594 @touch cyassl
/stamp-h1
596 cyassl
: cyassl
/stamp-h1
601 -@
$(MAKE
) -C cyassl
clean
602 @
rm -f cyassl
/stamp-h1
607 ifeq ($(FULL_OPENSSL
),y
)
608 OPENSSL_CIPHERS
:=enable-rc5
610 OPENSSL_CIPHERS
:=no-dh no-idea no-rc2 no-rc5 no-aes no-aes192 no-cast no-des no-modes no-tls1 no-tlsext
615 .
/Configure linux-mipsel
--openssldir
=/etc
--cross-compile-prefix
=' ' \
616 -ffunction-sections
-fdata-sections
-Wl
,--gc-sections \
617 shared
$(OPENSSL_CIPHERS
) \
618 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
619 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
620 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
621 no-zlib no-engine no-engines no-sse2 no-perlasm \
622 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
624 @
$(MAKE
) -C openssl
clean
625 @touch openssl
/stamp-h1
627 openssl
: openssl
/stamp-h1
630 -@
$(MAKE
) -C openssl
clean
631 @
rm -f openssl
/stamp-h1
633 openssl-install
: openssl
634 install -D openssl
/libcrypto.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
635 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
.1.0.0
636 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libcrypto.so
.1.0.0 libcrypto.so
638 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
639 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
640 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
642 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
644 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
645 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
647 ifeq ($(FULL_OPENSSL
),y
)
648 install -D openssl
/libssl.so
.1.0.0 $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
649 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
.1.0.0
650 cd
$(INSTALLDIR
)/openssl
/usr
/lib
&& ln
-sf libssl.so
.1.0.0 libssl.so
653 mssl
: $(if
$(FULL_OPENSSL
),openssl
,cyassl
)
660 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
661 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
663 bridge
: bridge
/Makefile
668 -@
$(MAKE
) -C bridge
clean
669 @
rm -f bridge
/Makefile
672 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
673 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
677 @
$(MAKE
) -C dnsmasq \
678 COPTS
="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
679 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
682 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
683 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
687 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
690 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
691 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
692 ln
-sf iptables iptables-restore
694 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
695 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
697 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
699 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
700 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
701 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
703 ifeq ($(TCONFIG_IPV6
),y
)
704 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
705 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
706 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
707 ln
-sf ip6tables ip6tables-restore
711 -$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
715 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
716 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
719 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
721 rp-pppoe
/src
/stamp-h1
: rp-pppoe
/src
/Makefile.in
722 cd rp-pppoe
/src
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
723 $(CONFIGURE
) --prefix=/usr
--enable-plugin
=$(TOP
)/pppd \
724 ac_cv_linux_kernel_pppoe
=yes rpppoe_cv_pack_bitfields
=rev
725 @touch rp-pppoe
/src
/stamp-h1
727 rp-pppoe
: pppd rp-pppoe
/src
/stamp-h1
728 $(MAKE
) -C rp-pppoe
/src pppoe-relay rp-pppoe.so
731 -$(MAKE
) -C rp-pppoe
/src
clean
732 @
rm -f rp-pppoe
/src
/pppoe-relay
733 @
rm -f rp-pppoe
/src
/stamp-h1
735 rp-pppoe-install
: rp-pppoe
736 install -D rp-pppoe
/src
/rp-pppoe.so
$(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/rp-pppoe.so
737 $(STRIP
) $(INSTALLDIR
)/rp-pppoe
/usr
/lib
/pppd
/*.so
738 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
739 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
742 upnp
: nvram shared iptables
745 @cd miniupnpd
&& .
/genconfig.sh
747 miniupnpd
: iptables miniupnpd-config
749 $(MAKE
) -C miniupnpd miniupnpd
-f Makefile.linux \
750 TARGET_OPENWRT
="not really" CC
=$(CC
) \
751 CFLAGS
="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include -I$(TOP)/shared" \
752 LDFLAGS
="-L$(TOP)/iptables -liptc" LIBS
=""
755 -$(MAKE
) -C miniupnpd
-f Makefile.linux
clean
756 @
rm -f miniupnpd
/config.h
759 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
760 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
765 vsftpd
: $(if
$(TCONFIG_FTP_SSL
),openssl
,)
769 vsftpd-install
: vsftpd
770 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
771 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
775 CC
=$(CC
) CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
776 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
777 $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
778 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
779 --disable-ntfsprogs
--disable-crypto
--without-uuid \
780 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
782 ntfs-3g
: ntfs-3g
/Makefile
786 -@
$(MAKE
) -C ntfs-3g
clean
787 @
rm -f ntfs-3g
/Makefile
789 ntfs-3g-install
: ntfs-3g
790 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
791 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
792 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
793 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
794 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
796 libusb10
/Makefile
: libusb10
/Makefile.in
797 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
798 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
800 libusb10
: libusb10
/Makefile
803 libusb10-install
: libusb10
804 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
$(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
805 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so
808 -@
$(MAKE
) -C
$@
clean
809 @
rm -rf libusb10
/Makefile
811 libusb
/Makefile
: libusb
/Makefile.in
812 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
813 $(CONFIGURE
) --prefix=/usr \
814 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
815 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
816 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
818 libusb
: libusb10 libusb
/Makefile
821 libusb-install
: libusb
822 install -D libusb
/libusb
/.libs
/libusb-0.1.so
$(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
823 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so
826 -@
$(MAKE
) -C
$@
clean
827 @
rm -rf libusb
/Makefile
829 usbmodeswitch
: libusb10
830 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
831 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
832 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
834 usbmodeswitchdb-install
:
835 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
836 # compress whitespace
837 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
839 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
842 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
843 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
844 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
845 @mkdir
-p
$(TARGETDIR
)/rom
/etc
846 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
850 cd radvd
&& CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
851 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
852 $(CONFIGURE
) --prefix=""
853 @
$(MAKE
) -C radvd
clean
854 @touch radvd
/stamp-h1
856 radvd
: radvd
/stamp-h1
859 -@
$(MAKE
) -C radvd
distclean
860 @
rm -f radvd
/stamp-h1
863 install -D radvd
/radvd
$(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
864 $(STRIP
) $(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
868 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
869 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
870 ac_cv_func_setpgrp_void
=yes \
871 $(CONFIGURE
) --prefix= --with-localdbdir
=/var
872 @
$(MAKE
) -C dhcpv6
clean
873 @touch dhcpv6
/stamp-h1
875 dhcpv6
: dhcpv6
/stamp-h1
877 @
$(MAKE
) -C dhcpv6 dhcp6c
879 dhcpv6-install
: dhcpv6
880 install -D dhcpv6
/dhcp6c
$(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
881 $(STRIP
) $(INSTALLDIR
)/dhcpv6
/usr
/sbin
/dhcp6c
884 -@
$(MAKE
) -C dhcpv6
clean
885 @
rm -f dhcpv6
/Makefile dhcpv6
/stamp-h1
894 prebuilt
: shared libbcmcrypto
898 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
901 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
902 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
906 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
907 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
910 accel-pptp
: pppd accel-pptp
/Makefile
911 @
$(MAKE
) -C accel-pptp
913 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
914 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
915 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
918 -@
$(MAKE
) -C accel-pptp
clean
919 @
rm -f accel-pptp
/Makefile
921 accel-pptp-install
: accel-pptp
922 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
923 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
926 pppd
/Makefile
: pppd
/linux
/Makefile.top
927 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
931 @
$(MAKE
) -C pppd MFLAGS
='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
934 -$(MAKE
) -C pppd
clean
938 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
939 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
940 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
941 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
942 ifeq ($(TCONFIG_L2TP
),y
)
943 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
944 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
948 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
949 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
952 @cd zebra
&& rm -f config.cache
&& \
953 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) \
954 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
955 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
956 $(CONFIGURE
) --sysconfdir
=/etc \
957 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
958 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
959 @touch zebra
/stamp-h1
961 zebra
: zebra
/stamp-h1
962 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
965 -@
$(MAKE
) -C zebra
clean
966 @
rm -f zebra
/stamp-h1
969 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
970 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
971 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
972 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
973 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
974 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
978 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
979 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
980 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
981 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
982 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
983 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
984 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
987 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
989 xl2tpd-install
: xl2tpd
990 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
991 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
995 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
996 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
1001 # @-mkdir -p libnet/lib
1002 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1006 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1009 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
1012 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1013 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
1018 @
$(MAKE
) -C
$@ KERNEL_INCLUDE
=$(LINUXDIR
)/include EXTRACFLAGS
="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1020 iproute2-install
: iproute2
1021 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1022 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
1023 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1024 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
1030 dropbear
: dropbear
/config.h
1032 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1
1035 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1036 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
1037 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
1038 ln
-sf dropbearmulti dropbear
&& \
1039 ln
-sf dropbearmulti dropbearconvert
&& \
1040 ln
-sf dropbearmulti dropbearkey
&& \
1041 ln
-sf dropbearmulti dbclient
&& \
1042 ln
-sf dropbearmulti ssh
&& \
1043 ln
-sf dropbearmulti scp
1046 -@
$(MAKE
) -C dropbear
clean
1047 @
rm -f dropbear
/config.h
1051 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1052 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1053 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
1054 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
1055 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
1056 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
--enable-bundled-libtom
1057 @
$(MAKE
) -C dropbear
clean
1063 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1064 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1065 $(CONFIGURE
) --prefix=/usr
--enable-shared
--enable-static \
1066 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
1067 touch sqlite
/stamp-h1
1069 sqlite
: sqlite
/stamp-h1
1070 @
$(MAKE
) -C sqlite
all
1073 -@
$(MAKE
) -C sqlite
clean
1074 @
rm -f sqlite
/stamp-h1
1076 sqlite-install
: sqlite
1078 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1079 install -D sqlite
/.libs
/libsqlite3.so
.0 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1080 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
1083 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --$(1)="$(c)")
1085 FFMPEG_DECODERS
:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1086 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-decoder
,$(FFMPEG_DECODERS
))
1088 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1089 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,enable-parser
,$(FFMPEG_PARSERS
))
1091 FFMPEG_PROTOCOLS
:=file
1092 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,enable-protocol
,$(FFMPEG_PROTOCOLS
))
1094 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
1095 FFMPEG_CONFIGURE_DEMUXERS
:=$(call FFMPEG_FILTER_CONFIG
,disable-demuxer
,$(FFMPEG_DISABLED_DEMUXERS
))
1097 ffmpeg
/stamp-h1
: zlib
1098 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
1099 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
1100 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
1101 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
1102 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
1103 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
1104 --disable-hwaccels
--disable-network
--disable-bsfs
--disable-mpegaudio-hp \
1105 --enable-demuxers
$(FFMPEG_CONFIGURE_DEMUXERS
) \
1106 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
1107 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
1108 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
1109 --extra-cflags
="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1110 --extra-ldflags
="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1111 --extra-libs
="-L$(TOP)/zlib -lz" \
1112 --enable-zlib
--disable-debug
--prefix=''
1113 touch ffmpeg
/stamp-h1
1115 ffmpeg
: ffmpeg
/stamp-h1 zlib
1116 @
$(MAKE
) -C ffmpeg
all
1119 -@
$(MAKE
) -C ffmpeg
clean
1120 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
1122 ffmpeg-install
: ffmpeg
1124 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1125 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1126 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1127 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1128 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
1129 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
1130 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
1135 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1136 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1137 $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1138 touch libogg
/stamp-h1
1140 libogg
: libogg
/stamp-h1
1141 @
$(MAKE
) -C libogg
all
1144 -@
$(MAKE
) -C libogg
clean
1145 @
rm -f libogg
/stamp-h1
1147 libogg-install
: libogg
1149 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1150 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1151 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1154 flac
/stamp-h1
: libogg
1156 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1157 CPPFLAGS
="-I$(TOP)/libogg/include -I$(LINUXDIR)/include" \
1158 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1159 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1160 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1161 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1164 flac
: flac
/stamp-h1 libogg
1165 @
$(MAKE
) -C flac
/src
/libFLAC
all
1168 -@
$(MAKE
) -C flac
clean
1169 @
rm -f flac
/stamp-h1
1173 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1174 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1175 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1180 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1184 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
1187 -@
$(MAKE
) -C jpeg
clean
1188 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1192 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1193 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1194 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1198 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1199 LDFLAGS
="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1200 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1201 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1202 touch libexif
/stamp-h1
1204 libexif
: libexif
/stamp-h1
1205 @
$(MAKE
) -C libexif
all
1208 -@
$(MAKE
) -C libexif
clean
1209 @
rm -f libexif
/stamp-h1
1211 libexif-install
: libexif
1213 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1214 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1215 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1220 CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1221 .
/configure
--shared
--prefix=''
1225 @
$(MAKE
) -C zlib CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) all
1228 -@
$(MAKE
) -C zlib
clean
1229 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1233 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1234 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1235 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1236 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1239 libid3tag
/stamp-h1
: zlib
1241 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS
="-I$(TOP)/zlib" \
1242 LDFLAGS
="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1243 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1244 --disable-debugging
--disable-profiling
1245 touch libid3tag
/stamp-h1
1247 libid3tag
: libid3tag
/stamp-h1 zlib
1248 @
$(MAKE
) -C libid3tag
all
1251 -@
$(MAKE
) -C libid3tag
clean
1252 @
rm -f libid3tag
/stamp-h1
1254 libid3tag-install
: libid3tag
1256 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1257 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1258 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1261 libvorbis
/stamp-h1
: libogg
1263 CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1264 CPPFLAGS
="-I$(TOP)/libogg/include" \
1265 LDFLAGS
="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1266 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1267 --with-ogg-includes
="$(TOP)/libogg/include" \
1268 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1269 touch libvorbis
/stamp-h1
1271 libvorbis
: libvorbis
/stamp-h1
1272 @
$(MAKE
) -C libvorbis
/lib
all
1275 -@
$(MAKE
) -C libvorbis
clean
1276 @
rm -f libvorbis
/stamp-h1
1278 libvorbis-install
: libvorbis
1280 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1281 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1282 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1285 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1287 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
1290 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1291 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1292 LDFLAGS
="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1293 $(CONFIGURE
) --prefix=/usr
1295 igmpproxy
: igmpproxy
/src
/Makefile
1297 @
$(MAKE
) -C igmpproxy
/src
1299 igmpproxy-install
: igmpproxy
1300 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1301 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1304 -$(MAKE
) -C igmpproxy
/src
clean
1305 @
rm -f igmpproxy
/src
/Makefile
1308 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1309 PROGRAMS
=udevtrigger
1312 install -d
$(INSTALLDIR
)
1313 install -d
$(TARGETDIR
)
1314 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1317 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1319 hotplug2-install
: hotplug2
1320 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1321 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1324 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1327 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1330 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1333 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1337 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) \
1338 CFLAGS
="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1339 LOCKFILE
="/var/lock/ebtables" LOCKDIR
="/var/lock" \
1340 BINDIR
="/usr/sbin" LIBDIR
="/usr/lib/ebtables" KERNEL_INCLUDES
=$(LINUXDIR
)/include $(if
$(TCONFIG_IPV6
),DO_IPV6
=1,)
1342 ebtables-install
: ebtables
1343 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1345 @mkdir
-p
$(TARGETDIR
)/rom
/etc
1346 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/ebtables
/ethertypes
> $(TARGETDIR
)/rom
/etc
/ethertypes
1347 chmod
0644 $(TARGETDIR
)/rom
/etc
/ethertypes
1349 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1350 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
1351 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1352 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/
1354 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1355 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/ebtables
/*.so
1356 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1359 make
-C ebtables
clean
1363 CFLAGS
="-Os -Wall -fPIC $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1369 -$(MAKE
) -C lzo
clean
1373 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1374 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1375 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1378 openvpn
: openvpn
/.conf openssl lzo
1381 cd openvpn
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1382 LDFLAGS
="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1383 $(CONFIGURE
) --prefix= \
1384 --with-lzo-headers
="$(TOP)/lzo/include" \
1385 --with-ssl-headers
="$(TOP)/openssl/include/" \
1386 --with-iproute-path
="/usr/sbin/ip" \
1387 --disable-debug
--disable-plugins
--enable-management
--enable-small \
1388 --disable-selinux
--disable-socks
--enable-password-save
1392 -$(MAKE
) -C openvpn
clean
1393 @
rm -f openvpn
/.conf
1395 openvpn-install
: openvpn
1396 install -D openvpn
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1397 $(STRIP
) -s
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1398 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1402 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1403 $(CONFIGURE
) --prefix=/usr
--with-endianness
=little
--enable-mini-agent
--disable-debugging \
1404 --disable-privacy
--without-opaque-special-types
--with-persistent-directory
=/tmp
/snmp-persist \
1405 --with-default-snmp-version
=3 --with-sys-contact
=root
--with-sys-location
=Unknown
--with-logfile
=/dev
/null \
1406 --with-out-transports
=UDPIPv6
,TCPIPv6
,AAL5PVC
,IPX
,TCP
,Unix
--enable-shared
=no
--enable-static
--with-gnu-ld \
1407 --enable-internal-md5
--with-copy-persistent-files
=no
--without-openssl
-sysconfdir
=/tmp \
1408 --with-mib-modules
=mibII
,host
,mibII
/ip
,mibII
/tcp
,mibII
/udp
,mibII
/icmp
,mibII
/var_route
,mibII
/kernel_linux
,qos
,ucd_snmp \
1409 --with-out-mib-modules
=snmpv3mibs
,agent_mips
,agentx
,notification
,utilities
,target
--disable-ipv6
--with-defaults \
1410 --without-efence
--without-rsaref
--without-kmem-usage
--without-rpm
--without-dmalloc
1418 -$(MAKE
) -C snmp
clean
1419 @
rm -f snmp
/stamp-h1
1422 install -D snmp
/agent
/snmpd
$(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
1423 $(STRIP
) $(INSTALLDIR
)/snmp
/usr
/sbin
/snmpd
1430 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
1434 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
1437 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* distclean
1440 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
1445 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
1447 .PHONY
: all clean distclean mrproper
install package
1448 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1449 .PHONY
: dummy libnet libpcap