2 # Broadcom Linux Router Makefile
4 # Copyright 2005, Broadcom Corporation
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
16 #TOMATO_EXPERIMENTAL=0
21 SEP
=echo
"\033[41;1m $@ \033[0m"
42 # obj-y += vlan # use Busybox vconfig
48 # !!TB - updated Broadcom Wireless driver
57 obj-
$(TCONFIG_USB
) += p910nd
58 obj-
$(TCONFIG_USB
) += scsi-idle
61 obj-y
+= usbmodeswitch
62 obj-
$(TCONFIG_FTP
) += vsftpd
64 ifeq ($(CONFIG_LINUX26
),y
)
65 ifeq ($(TCONFIG_SAMBASRV
),y
)
68 ifeq ($(TCONFIG_USB_EXTRAS
),y
)
73 ifeq ($(TCONFIG_SAMBASRV
),y
)
74 ifeq ($(TCONFIG_SAMBA3
),y
)
81 ifeq ($(TCONFIG_IPV6
),y
)
82 export TCONFIG_IPV6
:= y
87 obj-
$(NEED_SAMBA2
) += samba
88 obj-
$(NEED_SAMBA3
) += samba3
89 obj-
$(TCONFIG_NTFS
) += ntfs-3g
90 obj-
$(TCONFIG_EBTABLES
) += ebtables
91 obj-
$(TCONFIG_IPV6
) += radvd
93 obj-
$(TCONFIG_MEDIA_SERVER
) += zlib
94 obj-
$(TCONFIG_MEDIA_SERVER
) += sqlite
95 obj-
$(TCONFIG_MEDIA_SERVER
) += ffmpeg
96 obj-
$(TCONFIG_MEDIA_SERVER
) += libogg
97 obj-
$(TCONFIG_MEDIA_SERVER
) += flac
98 obj-
$(TCONFIG_MEDIA_SERVER
) += jpeg
99 obj-
$(TCONFIG_MEDIA_SERVER
) += libexif
100 obj-
$(TCONFIG_MEDIA_SERVER
) += libid3tag
101 obj-
$(TCONFIG_MEDIA_SERVER
) += libvorbis
102 obj-
$(TCONFIG_MEDIA_SERVER
) += minidlna
103 MEDIA_SERVER_STATIC
=y
110 # configurable packages
112 obj-
$(TCONFIG_L2TP
) += xl2tpd
113 obj-
$(TCONFIG_PPTP
) += accel-pptp
114 obj-
$(TCONFIG_HTTPS
) += openssl
115 obj-
$(TCONFIG_HTTPS
) += matrixssl
116 obj-
$(TCONFIG_SSH
) += dropbear
117 obj-
$(TCONFIG_ZEBRA
) += zebra
118 # obj-$(TCONFIG_IPP2P) += ipp2p
119 obj-
$(TCONFIG_LZO
) += lzo
120 obj-
$(TCONFIG_OPENVPN
) += openvpn
122 ifeq ($(TCONFIG_L2TP
),y
)
125 ifeq ($(TCONFIG_PPTP
),y
)
128 obj-
$(NEED_PPPD
) += pppd
130 obj-
$(CONFIG_LINUX26
) += hotplug2
131 obj-
$(CONFIG_LINUX26
) += udev
132 obj-
$(__CONFIG_BCMWL5
) += emf
133 obj-
$(__CONFIG_BCMWL5
) += igs
135 obj-clean
:= $(foreach obj
, $(obj-y
) $(obj-n
) $(obj-
), $(obj
)-clean)
136 obj-install
:= $(foreach obj
,$(obj-y
),$(obj
)-install)
144 all: clean-build libc
$(obj-y
) kernel
147 kernel
: $(LINUXDIR
)/.config
150 @if
! grep
-q
"CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR
)/.config
; then \
151 $(MAKE
) -C
$(LINUXDIR
) zImage CC
=$(KERNELCC
); \
153 if grep
-q
"CONFIG_MODULES=y" $(LINUXDIR
)/.config
; then \
154 $(MAKE
) -C
$(LINUXDIR
) modules CC
=$(KERNELCC
); \
156 ifeq ($(CONFIG_LINUX26
),y
)
157 $(MAKE
) -C
$(LINUXDIR
)/arch
/mips
/brcm-boards
/bcm947xx
/compressed srctree
=$(LINUXDIR
)
162 $(MAKE
) -C
$(SRCBASE
)/lzma-loader CROSS_COMPILE
=$(CROSS_COMPILE
) LD
=$(LD
)
164 lzma-loader-install
: lzma-loader
169 $(MAKE
) -C
$(LINUXDIR
) modules
172 cd
$(TARGETDIR
)/lib
/modules
/* && find
-name
"*.o" -exec mv
-i
{} . \
; || true
173 cd
$(TARGETDIR
)/lib
/modules
/* && find
-type d
-delete || true
175 install package
: $(obj-install
) $(LINUXDIR
)/.config
178 install -d
$(TARGETDIR
)
182 $(MAKE
) -C
$(LINUXDIR
) modules_install DEPMOD
=/bin
/true INSTALL_MOD_PATH
=$(TARGETDIR
)
183 ##!!TB find $(TARGETDIR)/lib/modules -name *.o -exec mipsel-linux-strip --strip-unneeded {} \;
184 find
$(TARGETDIR
)/lib
/modules
-name
*.o
-exec
$(STRIP
) --strip-debug
{} \
;
185 find
$(TARGETDIR
)/lib
/modules
-name
*.ko
-exec
$(STRIP
) --strip-debug
{} \
;
187 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv diag
/* .
&& rm -rf diag
190 -cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
.4702/* .
&& rm -rf et
.4702 || true
191 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv et
/* .
&& rm -rf et
192 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv wl
/* .
&& rm -rf wl
193 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv cifs
/* .
&& rm -rf cifs
194 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs2
/* .
&& rm -rf jffs2 || true
195 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jffs
/* .
&& rm -rf jffs || true
196 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_inflate
/* .
&& rm -rf zlib_inflate || true
197 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv zlib_deflate
/* .
&& rm -rf zlib_deflate || true
198 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
&& mv lzo
/* .
&& rm -rf lzo || true
199 rm -rf
$(TARGETDIR
)/lib
/modules
/*/pcmcia
202 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext2
/* .
&& rm -rf ext2 || true
203 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ext3
/* .
&& rm -rf ext3 || true
204 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv jbd
/* .
&& rm -rf jbd || true
205 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fat
/* .
&& rm -rf fat || true
206 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv vfat
/* .
&& rm -rf vfat || true
207 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv msdos
/* .
&& rm -rf msdos || true
208 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv fuse
/* .
&& rm -rf fuse || true
209 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv ntfs
/* .
&& rm -rf ntfs || true
210 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv smbfs
/* .
&& rm -rf smbfs || true
211 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv reiserfs
/* .
&& rm -rf reiserfs || true
212 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv hfsplus
/* .
&& rm -rf hfsplus || true
213 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv lockd
/* .
&& rm -rf lockd || true
214 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfsd
/* .
&& rm -rf nfsd || true
215 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nfs
/* .
&& rm -rf nfs || true
216 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv xfs
/* .
&& rm -rf xfs || true
217 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv nls
/* .
&& rm -rf nls || true
218 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
&& mv exportfs
/* .
&& rm -rf exportfs || true
219 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv sunrpc
/* .
&& rm -rf sunrpc || true
220 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
&& mv auth_gss
/* .
&& rm -rf auth_gss || true
221 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv oss
/* .
&& rm -rf oss || true
222 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/core
&& mv seq
/* .
&& rm -rf seq || true
223 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv core
/* .
&& rm -rf core || true
224 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
&& mv usb
/* .
&& rm -rf usb || true
225 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv hcd
/* .
&& rm -rf hcd || true
226 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv host
/* .
&& rm -rf host || true
227 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv storage
/* .
&& rm -rf storage || true
228 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv serial
/* .
&& rm -rf serial || true
229 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv core
/* .
&& rm -rf core || true
230 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv class
/* .
&& rm -rf class || true
231 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
&& mv misc
/* .
&& rm -rf misc || true
232 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
&& mv usbhid
/* .
&& rm -rf usbhid || true
233 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv joystick
/* .
&& rm -rf joystick || true
234 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv keyboard
/* .
&& rm -rf keyboard || true
235 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv misc
/* .
&& rm -rf misc || true
236 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
&& mv mouse
/* .
&& rm -rf mouse || true
237 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/video
&& mv uvc
/* .
&& rm -rf uvc || true
238 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
&& mv video
/* .
&& rm -rf video || true
240 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv bcm57xx
/* .
&& rm -rf bcm57xx || true
241 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv emf
/* .
&& rm -rf emf || true
242 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv igs
/* .
&& rm -rf igs || true
243 cd
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
&& mv ctf
/* .
&& rm -rf ctf || true
244 cd
$(TARGETDIR
)/lib
/modules
&& rm -f
*/source || true
247 for
dir in
$(wildcard $(patsubst %,$(INSTALLDIR
)/%,$(obj-y
))) ; do \
248 (cd
$${dir} && tar cpf
- .
) |
(cd
$(TARGETDIR
) && tar xpf
-) \
251 ifneq ($(TCONFIG_L7
),y
)
252 rm -f
$(TARGETDIR
)/usr
/lib
/iptables
/libipt_layer7.so
256 install $(LIBDIR
)/ld-uClibc.so
.0 $(TARGETDIR
)/lib
/
257 install $(LIBDIR
)/libcrypt.so
.0 $(TARGETDIR
)/lib
/
258 install $(LIBDIR
)/libpthread.so
.0 $(TARGETDIR
)/lib
/
259 install $(LIBDIR
)/libgcc_s.so
.1 $(TARGETDIR
)/lib
/
260 $(STRIP
) $(TARGETDIR
)/lib
/libgcc_s.so
.1
261 install $(LIBDIR
)/libc.so
.0 $(TARGETDIR
)/lib
/
262 install $(LIBDIR
)/libdl.so
.0 $(TARGETDIR
)/lib
/
263 install $(LIBDIR
)/libm.so
.0 $(TARGETDIR
)/lib
/
264 install $(LIBDIR
)/libnsl.so
.0 $(TARGETDIR
)/lib
/
265 ifeq ($(TCONFIG_SSH
),y
)
266 install $(LIBDIR
)/libutil.so
.0 $(TARGETDIR
)/lib
/
268 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
269 install $(LIBDIR
)/libresolv.so
.0 $(TARGETDIR
)/lib
/
270 $(STRIP
) $(TARGETDIR
)/lib
/*.so
.0
273 @cd
$(TARGETDIR
) && $(TOP
)/others
/rootprep.sh
277 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS
),y
)
280 @..
/btools
/libfoo.pl
--noopt
282 @chmod
0555 $(TARGETDIR
)/lib
/*.so
*
283 @chmod
0555 $(TARGETDIR
)/usr
/lib
/*.so
*
285 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
286 # separated/copied extra stuff
287 @
rm -rf
$(PLATFORMDIR
)/extras
288 @mkdir
$(PLATFORMDIR
)/extras
289 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/ip_gre.
*o
$(PLATFORMDIR
)/extras
/ || true
291 $(if
$(TCONFIG_OPENVPN
),@cp
-f
,$(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
)) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/tun.
*o
$(PLATFORMDIR
)/extras
/ || true
292 $(if
$(TCONFIG_EBTABLES
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/bridge
/netfilter
/ebt
*.
*o
$(PLATFORMDIR
)/extras
/ || true
294 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ifb.
*o
$(PLATFORMDIR
)/extras
/ || true
295 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sched
/sch_red.
*o
$(PLATFORMDIR
)/extras
/ || true
296 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ntfs.
*o
$(PLATFORMDIR
)/extras
/ || true
297 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/smbfs.
*o
$(PLATFORMDIR
)/extras
/ || true
298 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/reiserfs.
*o
$(PLATFORMDIR
)/extras
/ || true
299 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/hfsplus.
*o
$(PLATFORMDIR
)/extras
/ || true
300 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfs.
*o
$(PLATFORMDIR
)/extras
/ || true
301 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nfsd.
*o
$(PLATFORMDIR
)/extras
/ || true
302 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/lockd.
*o
$(PLATFORMDIR
)/extras
/ || true
303 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/exportfs.
*o
$(PLATFORMDIR
)/extras
/ || true
304 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/sunrpc.
*o
$(PLATFORMDIR
)/extras
/ || true
305 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/auth_rpcgss.
*o
$(PLATFORMDIR
)/extras
/ || true
306 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/net
/rpcsec_gss_krb5.
*o
$(PLATFORMDIR
)/extras
/ || true
307 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/xfs.
*o
$(PLATFORMDIR
)/extras
/ || true
308 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/sr_mod.
*o
$(PLATFORMDIR
)/extras
/ || true
309 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/scanner.
*o
$(PLATFORMDIR
)/extras
/ || true
311 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbserial.
*o
$(PLATFORMDIR
)/extras
/ || true
312 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/option.
*o
$(PLATFORMDIR
)/extras
/ || true
313 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/sierra.
*o
$(PLATFORMDIR
)/extras
/ || true
314 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*acm.
*o
$(PLATFORMDIR
)/extras
/ || true
315 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ftdi_sio.
*o
$(PLATFORMDIR
)/extras
/ || true
316 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pl2303.
*o
$(PLATFORMDIR
)/extras
/ || true
318 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbkbd.
*o
$(PLATFORMDIR
)/extras
/ || true
319 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/usbmouse.
*o
$(PLATFORMDIR
)/extras
/ || true
320 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/hid
*.
*o
$(PLATFORMDIR
)/extras
/ || true
321 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ipw.
*o
$(PLATFORMDIR
)/extras
/ || true
322 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/audio.
*o
$(PLATFORMDIR
)/extras
/ || true
323 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/ov51
*.
*o
$(PLATFORMDIR
)/extras
/ || true
324 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/pwc
*.
*o
$(PLATFORMDIR
)/extras
/ || true
325 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/emi
*.
*o
$(PLATFORMDIR
)/extras
/ || true
326 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/mii.
*o
$(PLATFORMDIR
)/extras
/ || true
327 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_ether.
*o
$(PLATFORMDIR
)/extras
/ || true
328 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/cdc_subset.
*o
$(PLATFORMDIR
)/extras
/ || true
329 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/usbnet.
*o
$(PLATFORMDIR
)/extras
/ || true
330 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb
/rndis_host.
*o
$(PLATFORMDIR
)/extras
/ || true
331 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/usb || true
332 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media
/* $(PLATFORMDIR
)/extras
/ || true
333 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/media || true
334 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound
/* $(PLATFORMDIR
)/extras
/ || true
335 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/sound || true
336 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound
/* $(PLATFORMDIR
)/extras
/ || true
337 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/sound || true
338 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input
/* $(PLATFORMDIR
)/extras
/ || true
339 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/input || true
340 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid
/* $(PLATFORMDIR
)/extras
/ || true
341 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/hid || true
342 @cp
-f
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/bcm57
*.
*o
$(PLATFORMDIR
)/extras
/ || true
343 $(if
$(TCONFIG_PPTP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pptp.
*o
$(PLATFORMDIR
)/extras
/ || true
344 $(if
$(TCONFIG_L2TP
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/pppol2tp.
*o
$(PLATFORMDIR
)/extras
/ || true
345 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/net
/ppp_deflate.
*o
$(PLATFORMDIR
)/extras
/ || true
346 @mv
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto
/* $(PLATFORMDIR
)/extras
/ || true
347 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/crypto || true
349 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp9
*.
*o
$(PLATFORMDIR
)/extras
/ || true
350 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_cp1251.
*o
$(PLATFORMDIR
)/extras
/ || true
351 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-jp.
*o
$(PLATFORMDIR
)/extras
/ || true
352 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_sjis.
*o
$(PLATFORMDIR
)/extras
/ || true
353 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_gb2312.
*o
$(PLATFORMDIR
)/extras
/ || true
354 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_euc-kr.
*o
$(PLATFORMDIR
)/extras
/ || true
355 $(if
$(NEED_EX_NLS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_big5.
*o
$(PLATFORMDIR
)/extras
/ || true
357 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/nls_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
358 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
359 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi
/*.
*o
$(PLATFORMDIR
)/extras
/ || true
360 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext2.
*o
$(PLATFORMDIR
)/extras
/ || true
361 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/ext3.
*o
$(PLATFORMDIR
)/extras
/ || true
362 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jbd.
*o
$(PLATFORMDIR
)/extras
/ || true
363 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/mbcache.
*o
$(PLATFORMDIR
)/extras
/ || true
364 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fat.
*o
$(PLATFORMDIR
)/extras
/ || true
365 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/vfat.
*o
$(PLATFORMDIR
)/extras
/ || true
366 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/msdos.
*o
$(PLATFORMDIR
)/extras
/ || true
367 $(if
$(TCONFIG_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/fuse.
*o
$(PLATFORMDIR
)/extras
/ || true
368 ifneq ($(TCONFIG_USB
),y
)
369 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/usb || true
370 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/scsi || true
373 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector
/cn.
*o
$(PLATFORMDIR
)/extras
/ || true
374 $(if
$(TCONFIG_USB_EXTRAS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block
/loop.
*o
$(PLATFORMDIR
)/extras
/ || true
375 ifneq ($(TCONFIG_USB_EXTRAS
),y
)
376 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/connector || true
377 @
rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/drivers
/block || true
379 $(if
$(TCONFIG_CIFS
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/cifs.
*o
$(PLATFORMDIR
)/extras
/ || true
380 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs2.
*o
$(PLATFORMDIR
)/extras
/ || true
381 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@mv
,@cp
-f
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/zlib_
*.
*o
$(PLATFORMDIR
)/extras
/ || true
382 $(if
$(TCONFIG_JFFS2
),$(if
$(TCONFIG_JFFSV1
),@cp
-f
,@mv
),@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/fs
/jffs.
*o
$(PLATFORMDIR
)/extras
/ || true
383 [ ! -f
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib
/* ] && rm -rf
$(TARGETDIR
)/lib
/modules
/*/kernel
/lib || true
384 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/ipv4
/netfilter
/ipt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
385 $(if
$(TCONFIG_L7
),@cp
-f
,@mv
) $(TARGETDIR
)/lib
/modules
/*/kernel
/net
/netfilter
/xt_layer7.
*o
$(PLATFORMDIR
)/extras
/ || true
387 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
388 @mkdir
-p
$(PLATFORMDIR
)/extras
/lib
390 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/lib
/libusb
* $(PLATFORMDIR
)/extras
/lib
/ || true
391 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/usb_modeswitch
$(PLATFORMDIR
)/extras
/apps
/ || true
392 @cp usbmodeswitch
/usb_modeswitch.conf
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.conf || true
393 @cp usbmodeswitch
/usb_modeswitch.setup
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.setup || true
394 @mkdir
-p
$(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d
395 @cp
-f usbmodeswitch
/data
/usb_modeswitch.d
/* $(PLATFORMDIR
)/extras
/apps
/usb_modeswitch.d || true
396 ifneq ($(NEED_EX_USB
),y
)
397 @
rm -rf
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d || true
398 @
rm -f
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf || true
400 $(if
$(NEED_EX_USB
),@cp
-f
,@mv
) $(TARGETDIR
)/usr
/sbin
/chat
$(PLATFORMDIR
)/extras
/apps
/ || true
402 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/l7-protocols
403 ifeq ($(TCONFIG_L7PAT
),y
)
404 @cd layer7
&& .
/squish.sh
405 cp layer7
/squished
/*.pat
$(TARGETDIR
)/rom
/etc
/l7-protocols
408 busybox
/examples
/depmod.pl
-k
$(LINUXDIR
)/vmlinux
-b
$(TARGETDIR
)/lib
/modules
/*/
409 @mv
$(TARGETDIR
)/lib
/modules
/*/modules.dep
$(TARGETDIR
)/lib
/modules
/
412 @
rm -f
$(TARGETDIR
)/lib
/modules
/*/build
414 @
$(MAKE
) -C
$(LINUXDIR
)/scripts
/squashfs mksquashfs-lzma
415 @
$(LINUXDIR
)/scripts
/squashfs
/mksquashfs-lzma
$(TARGETDIR
) $(PLATFORMDIR
)/target.image
-all-root
-noappend
-nopad | tee target.
info
417 # Package kernel and filesystem
418 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
419 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
420 # $(MAKE) -C $(LINUXDIR) zImage ; \
422 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
423 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
426 # Pad self-booting Linux to a 64 KB boundary
427 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
428 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
429 # Append filesystem to self-booting Linux
430 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
433 libc
: $(LIBDIR
)/ld-uClibc.so
.0
434 # $(MAKE) -C ../../../tools-src/uClibc all
435 # $(MAKE) -C ../../../tools-src/uClibc install
442 clean: clean-build
$(obj-clean
)
443 rm -rf layer7
/squished
449 rm -f
$(PLATFORMDIR
)/linux.trx
$(PLATFORMDIR
)/vmlinuz
$(PLATFORMDIR
)/target.image
450 rm -rf
$(PLATFORMDIR
)/extras
453 ifneq ($(INSIDE_MAK
),1)
454 $(MAKE
) -C ..
$@ INSIDE_MAK
=1
456 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
462 CONFIG_IN
:= config
/config.in
464 config
/conf config
/mconf
:
468 @config
/conf
$(CONFIG_IN
)
471 @config
/mconf
$(CONFIG_IN
)
473 roldconf
: config
/conf
474 @config
/conf
-o
$(CONFIG_IN
)
475 @
$(MAKE
) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dnsmasq-clean
476 @
$(MAKE
) iptables-clean pppd-clean zebra-clean openssl-clean ppp-clean
479 @
$(MAKE
) -C
$(LINUXDIR
) config
482 @
$(MAKE
) -C
$(LINUXDIR
) menuconfig
485 @
$(MAKE
) -C
$(LINUXDIR
) oldconfig
486 @
$(MAKE
) -C
$(LINUXDIR
) include/linux
/version.h
489 @
$(MAKE
) -C busybox oldconfig
491 config conf
: rconf kconf
493 menuconfig mconf
: rmconf kmconf
495 oldconfig oldconf
: koldconf roldconf bboldconf
499 # overrides and extra dependencies
503 @
$(MAKE
) -C busybox EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)"
508 rm -rf
$(INSTALLDIR
)/busybox
509 $(MAKE
) -C busybox
install EXTRA_CFLAGS
="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX
=$(INSTALLDIR
)/busybox
512 $(MAKE
) -C busybox
distclean
515 $(MAKE
) -C busybox menuconfig
518 httpd
: matrixssl shared nvram mssl
523 @
$(MAKE
) -C www
install INSTALLDIR
=$(INSTALLDIR
)/www TOMATO_EXPERIMENTAL
=$(TOMATO_EXPERIMENTAL
)
527 @
$(MAKE
) -C matrixssl
/src
533 $(MAKE
) -C matrixssl
/src
clean
536 ifeq ($(TCONFIG_OPENVPN
),y
)
538 CC
=$(CC
) && .
/Configure linux-mipsel
541 CC
=$(CC
) && .
/Configure linux-mipsel \
542 no-aes no-idea no-md2 no-mdc2 no-rc5 no-rmd160 no-ripemd
544 @
$(MAKE
) -C openssl
clean
545 @touch openssl
/stamp-h1
547 openssl
: openssl
/stamp-h1
550 -@
$(MAKE
) -C openssl
clean
551 @
rm -f openssl
/stamp-h1
553 openssl-install
: openssl
554 install -D openssl
/libcrypto.so
$(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
555 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libcrypto.so
557 install -D openssl
/apps
/openssl
$(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
558 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
559 chmod
0500 $(INSTALLDIR
)/openssl
/usr
/sbin
/openssl
561 install -D
-m
0500 httpd
/gencert.sh
$(INSTALLDIR
)/openssl
/usr
/sbin
/gencert.sh
563 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
564 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
566 ifeq ($(TCONFIG_FTP_SSL
),y
)
568 install -D openssl
/libssl.so
$(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
569 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
572 ifeq ($(TCONFIG_OPENVPN
),y
)
573 install -D openssl
/libssl.so
$(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
574 $(STRIP
) $(INSTALLDIR
)/openssl
/usr
/lib
/libssl.so
584 cd bridge
&& CFLAGS
="-Os -g $(EXTRACFLAGS)" \
585 $(CONFIGURE
) --prefix="" --with-linux-headers
=$(LINUXDIR
)/include
587 bridge
: bridge
/Makefile
592 -@
$(MAKE
) -C bridge
clean
593 @
rm -f bridge
/Makefile
596 install -D bridge
/brctl
/brctl
$(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
597 $(STRIP
) $(INSTALLDIR
)/bridge
/usr
/sbin
/brctl
601 @
$(MAKE
) -C dnsmasq COPTS
="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) -DNO_SCRIPT $(if $(TCONFIG_USB_EXTRAS),,-DNO_TFTP) $(EXTRACFLAGS)"
604 install -D dnsmasq
/src
/dnsmasq
$(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
605 $(STRIP
) $(INSTALLDIR
)/dnsmasq
/usr
/sbin
/dnsmasq
609 $(MAKE
) -C iptables BINDIR
=/usr
/sbin LIBDIR
=/usr
/lib KERNEL_DIR
=$(LINUXDIR
) COPT_FLAGS
="-Os $(EXTRACFLAGS)"
612 install -D iptables
/iptables
$(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
613 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
614 ln
-sf iptables iptables-restore
616 install -d
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
617 install -D iptables
/extensions
/*.so
$(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/
619 install -D iptables
/libiptc.so
$(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
621 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/iptables
622 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/iptables
/*.so
623 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/lib
/libiptc.so
625 ifeq ($(TCONFIG_IPV6
),y
)
626 install iptables
/ip6tables
$(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
627 $(STRIP
) $(INSTALLDIR
)/iptables
/usr
/sbin
/ip6tables
628 cd
$(INSTALLDIR
)/iptables
/usr
/sbin
&& \
629 ln
-sf ip6tables ip6tables-restore
633 -$(MAKE
) -C iptables KERNEL_DIR
=$(LINUXDIR
) clean
637 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
638 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
641 $(MAKE
) -C ppp
/pppoecd
$* INSTALLDIR
=$(INSTALLDIR
)/ppp
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
644 upnp
: nvram shared iptables
648 $(MAKE
) -C miniupnpd
-f Makefile.tomato
651 -$(MAKE
) -C miniupnpd
-f Makefile.tomato
clean
654 install -D miniupnpd
/miniupnpd
$(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
655 $(STRIP
) $(INSTALLDIR
)/miniupnpd
/usr
/sbin
/miniupnpd
660 vsftpd
: shared openssl
665 install -D vsftpd
/vsftpd
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
666 $(STRIP
) -s
$(INSTALLDIR
)/vsftpd
/usr
/sbin
/vsftpd
670 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
=no
--enable-static
=no \
671 --disable-library
--disable-ldconfig
--disable-mount-helper
--with-fuse
=internal \
672 --disable-posix-acls
--disable-nfconv
--disable-dependency-tracking
674 ntfs-3g
: ntfs-3g
/Makefile
675 @
$(MAKE
) -C ntfs-3g CFLAGS
="-Os -Wall $(EXTRACFLAGS)"
678 -@
$(MAKE
) -C ntfs-3g
clean
679 @
rm -f ntfs-3g
/Makefile
681 ntfs-3g-install
: ntfs-3g
682 install -D ntfs-3g
/src
/ntfs-3g
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
683 $(STRIP
) -s
$(INSTALLDIR
)/ntfs-3g
/bin
/ntfs-3g
684 install -d
$(INSTALLDIR
)/ntfs-3g
/sbin
&& cd
$(INSTALLDIR
)/ntfs-3g
/sbin
&& \
685 ln
-sf ..
/bin
/ntfs-3g mount.ntfs-3g
&& \
686 ln
-sf ..
/bin
/ntfs-3g mount.ntfs
688 libusb10
/Makefile
: libusb10
/Makefile.in
689 cd libusb10
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" LIBS
="-lpthread" \
690 $(CONFIGURE
) --prefix=/usr ac_cv_lib_rt_clock_gettime
=no
692 libusb10
: libusb10
/Makefile
695 libusb10-install
: libusb10
696 install -D libusb10
/libusb
/.libs
/libusb-1.0.so
.0.0.0 $(INSTALLDIR
)/libusb10
/usr
/lib
/libusb-1.0.so
.0
697 $(STRIP
) $(INSTALLDIR
)/libusb10
/usr
/lib
/*.so.
*
698 cd
$(INSTALLDIR
)/libusb10
/usr
/lib
&& \
699 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
.0.0.0 && \
700 ln
-sf libusb-1.0.so
.0 libusb-1.0.so
702 libusb
/Makefile
: libusb
/Makefile.in
703 cd libusb
&& CFLAGS
="-Wall -Os $(EXTRACFLAGS)" \
704 $(CONFIGURE
) --prefix=/usr \
705 LIBUSB_1_0_CFLAGS
="-I$(TOP)/libusb10/libusb" \
706 LIBUSB_1_0_LIBS
="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
707 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
709 libusb
: libusb10 libusb
/Makefile
712 libusb-install
: libusb
713 install -D libusb
/libusb
/.libs
/libusb-0.1.so
.4.4.4 $(INSTALLDIR
)/libusb
/usr
/lib
/libusb-0.1.so
.4
714 $(STRIP
) $(INSTALLDIR
)/libusb
/usr
/lib
/*.so.
*
715 cd
$(INSTALLDIR
)/libusb
/usr
/lib
&& \
716 ln
-sf libusb-0.1.so
.4 libusb-0.1.so
.4.4.4 && \
717 ln
-sf libusb-0.1.so
.4 libusb.so
719 usbmodeswitch
: libusb10
720 $(MAKE
) -C
$@ CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS) -DLIBUSB10 \
721 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
722 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
724 usbmodeswitchdb-install
:
725 @mkdir
-p
$(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
726 # compress whitespace
727 @for D in
$(wildcard $(TOP
)/usbmodeswitch
/data
/usb_modeswitch.d
/*); do \
729 sed
's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR
)/rom
/etc
/usb_modeswitch.d
/$$F; \
732 usbmodeswitch-install
: usbmodeswitch usbmodeswitchdb-install
733 install -D usbmodeswitch
/usb_modeswitch
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
734 $(STRIP
) -s
$(INSTALLDIR
)/usbmodeswitch
/usr
/sbin
/usb_modeswitch
735 @mkdir
-p
$(TARGETDIR
)/rom
/etc
736 @sed
's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP
)/usbmodeswitch
/usb_modeswitch.conf
> $(TARGETDIR
)/rom
/etc
/usb_modeswitch.conf
739 radvd
/stamp-h
: radvd
/Makefile.in
740 cd radvd
&& CPPFLAGS
="-Os $(EXTRACFLAGS)" $(CONFIGURE
) --prefix=""
745 -@
$(MAKE
) -C radvd
distclean
748 install -D radvd
/radvd
$(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
749 $(STRIP
) $(INSTALLDIR
)/radvd
/usr
/sbin
/radvd
761 @
$(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) # STRIPTOOL=$(STRIP)
764 $(MAKE
) -C vlan CROSS
=$(CROSS_COMPILE
) INSTALLDIR
=$(INSTALLDIR
) install # STRIPTOOL=$(STRIP)
765 $(STRIP
) $(INSTALLDIR
)/vlan
/usr
/sbin
/vconfig
769 install -D pptp-client
/pptp
$(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
770 $(STRIP
) $(INSTALLDIR
)/pptp-client
/usr
/sbin
/pptp
773 accel-pptp
: pppd accel-pptp
/Makefile
774 @
$(MAKE
) -C accel-pptp
776 accel-pptp
/Makefile
: accel-pptp
/Makefile.in
$(LINUXDIR
)/include/linux
/version.h
777 cd accel-pptp
&& CFLAGS
="-g -O2 $(EXTRACFLAGS)" \
778 $(CONFIGURE
) --prefix=/usr KDIR
=$(LINUXDIR
) PPPDIR
=$(TOP
)/pppd
781 -@
$(MAKE
) -C accel-pptp
clean
782 @
rm -f accel-pptp
/Makefile
784 accel-pptp-install
: accel-pptp
785 install -D accel-pptp
/src
/.libs
/pptp.so
$(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
786 $(STRIP
) $(INSTALLDIR
)/accel-pptp
/usr
/lib
/pppd
/pptp.so
789 pppd
/Makefile
: pppd
/linux
/Makefile.top
790 cd pppd
&& $(CONFIGURE
) --prefix=/usr
--sysconfdir
=/tmp
794 @
$(MAKE
) -C pppd
$(if
$(TCONFIG_IPV6
),HAVE_INET6
=y
,)
797 -$(MAKE
) -C pppd
clean
801 install -D pppd
/pppd
/pppd
$(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
802 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/pppd
803 install -D pppd
/chat
/chat
$(INSTALLDIR
)/pppd
/usr
/sbin
/chat
804 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/sbin
/chat
805 ifeq ($(TCONFIG_L2TP
),y
)
806 install -D pppd
/pppd
/plugins
/pppol2tp
/pppol2tp.so
$(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/pppol2tp.so
807 $(STRIP
) $(INSTALLDIR
)/pppd
/usr
/lib
/pppd
/*.so
811 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
812 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
816 @cd zebra
&& rm -f config.cache
&& \
817 CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
818 $(CONFIGURE
) --sysconfdir
=/etc \
819 --enable-netlink
$(if
$(TCONFIG_IPV6
),--enable-ipv6
,--disable-ipv6
) --disable-ripngd
--disable-ospfd
--disable-doc \
820 --disable-ospf6d
--disable-bgpd
--disable-bgpd-announce
821 @touch zebra
/stamp-h1
823 zebra
: zebra
/stamp-h1
824 @
$(MAKE
) -C zebra CC
=$(CC
) AR
=$(AR
) RANLIB
=$(RANLIB
) LD
=$(LD
)
827 -@
$(MAKE
) -C zebra
clean
828 @
rm -f zebra
/stamp-h1
831 install -D zebra
/zebra
/zebra
$(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
832 install -D zebra
/ripd
/ripd
$(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
833 install -D zebra
/lib
/libzebra.so
$(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
834 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/zebra
835 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/sbin
/ripd
836 $(STRIP
) $(INSTALLDIR
)/zebra
/usr
/lib
/libzebra.so
840 install -d
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
841 install rp-l2tp
/handlers
/*.so
$(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
842 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/lib
/l2tp
/*.so
843 install -D rp-l2tp
/handlers
/l2tp-control
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
844 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tp-control
845 install -D rp-l2tp
/l2tpd
$(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
846 $(STRIP
) $(INSTALLDIR
)/rp-l2tp
/usr
/sbin
/l2tpd
849 CFLAGS
="-g $(EXTRACFLAGS)" $(MAKE
) -C
$@ PREFIX
=/usr xl2tpd
851 xl2tpd-install
: xl2tpd
852 install -D xl2tpd
/xl2tpd
$(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
853 $(STRIP
) $(INSTALLDIR
)/xl2tpd
/usr
/sbin
/xl2tpd
857 install -D bpalogin
/bpalogin
$(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
858 $(STRIP
) $(INSTALLDIR
)/bpalogin
/usr
/sbin
/bpalogin
863 # @-mkdir -p libnet/lib
864 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
868 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
871 @
[ ! -f libbcm
/Makefile
] ||
$(MAKE
) -C libbcm
874 install -D libbcm
/libbcm.so
$(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
875 $(STRIP
) $(INSTALLDIR
)/libbcm
/usr
/lib
/libbcm.so
879 install -D iproute2
/tc
/tc
$(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
880 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/tc
881 install -D iproute2
/ip
/ip
$(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
882 $(STRIP
) $(INSTALLDIR
)/iproute2
/usr
/sbin
/ip
888 dropbear
: dropbear
/config.h
890 @
$(MAKE
) -C dropbear PROGRAMS
="dropbear dbclient dropbearkey scp" MULTI
=1
893 install -D dropbear
/dropbearmulti
$(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
894 $(STRIP
) $(INSTALLDIR
)/dropbear
/usr
/bin
/dropbearmulti
895 cd
$(INSTALLDIR
)/dropbear
/usr
/bin
&& \
896 ln
-sf dropbearmulti dropbear
&& \
897 ln
-sf dropbearmulti dropbearconvert
&& \
898 ln
-sf dropbearmulti dropbearkey
&& \
899 ln
-sf dropbearmulti dbclient
&& \
900 ln
-sf dropbearmulti ssh
&& \
901 ln
-sf dropbearmulti scp
904 -@
$(MAKE
) -C dropbear
clean
905 @
rm -f dropbear
/config.h
908 cd dropbear
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
909 ac_cv_func_logout
=no ac_cv_func_logwtmp
=no \
910 $(CONFIGURE
) --disable-zlib
--enable-syslog
--disable-lastlog
--disable-utmp \
911 --disable-utmpx
--disable-wtmp
--disable-wtmpx
--disable-pututline \
912 --disable-pututxline
--disable-loginfunc
--disable-pam
--enable-openpty
913 @
$(MAKE
) -C dropbear
clean
919 CC
=$(CC
) CFLAGS
="-Os $(EXTRACFLAGS)" $(CONFIGURE
) \
920 --prefix=/usr
--enable-shared
--enable-static \
921 --disable-readline
--disable-dynamic-extensions
--enable-threadsafe
922 touch sqlite
/stamp-h1
924 sqlite
: sqlite
/stamp-h1
925 @
$(MAKE
) -C sqlite
all
928 -@
$(MAKE
) -C sqlite
clean
929 @
rm -f sqlite
/stamp-h1
931 sqlite-install
: sqlite
933 ifneq ($(MEDIA_SERVER_STATIC
),y
)
934 install -D sqlite
/.libs
/libsqlite3.so
.0 $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
935 $(STRIP
) $(INSTALLDIR
)/sqlite
/usr
/lib
/libsqlite3.so
.0
938 FFMPEG_FILTER_CONFIG
= $(foreach c
, $(2), --enable-
$(1)="$(c)")
940 FFMPEG_DECODERS
:=aac ac3 atrac3 h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
941 FFMPEG_CONFIGURE_DECODERS
:=$(call FFMPEG_FILTER_CONFIG
,decoder
,$(FFMPEG_DECODERS
))
943 FFMPEG_PARSERS
:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
944 FFMPEG_CONFIGURE_PARSERS
:=$(call FFMPEG_FILTER_CONFIG
,parser
,$(FFMPEG_PARSERS
))
946 FFMPEG_PROTOCOLS
:=file
947 FFMPEG_CONFIGURE_PROTOCOLS
:=$(call FFMPEG_FILTER_CONFIG
,protocol
,$(FFMPEG_PROTOCOLS
))
949 ffmpeg
/stamp-h1
: zlib
950 cd ffmpeg
&& symver_asm_label
=no symver_gnu_asm
=no symver
=no CC
=$(CC
) \
951 .
/configure
--enable-cross-compile
--arch
=mips
--target_os
=linux \
952 --cross-prefix
=$(CROSS_COMPILE
) --enable-shared
--enable-gpl
--disable-doc \
953 --enable-pthreads
--enable-small
--disable-encoders
--disable-filters \
954 --disable-muxers
--disable-devices
--disable-ffmpeg
--disable-ffplay \
955 --disable-ffserver
--disable-ffprobe
--disable-avdevice
--disable-swscale \
956 --disable-hwaccels
--disable-network
--disable-bsfs \
958 --disable-decoders
$(FFMPEG_CONFIGURE_DECODERS
) \
959 --disable-parsers
$(FFMPEG_CONFIGURE_PARSERS
) \
960 --disable-protocols
$(FFMPEG_CONFIGURE_PROTOCOLS
) \
961 --extra-cflags
="-Os $(EXTRACFLAGS) -fPIC -I$(TOP)/zlib" \
962 --extra-libs
="-L$(TOP)/zlib -lz" \
963 --enable-zlib
--disable-debug
--prefix=''
964 touch ffmpeg
/stamp-h1
966 ffmpeg
: ffmpeg
/stamp-h1 zlib
967 @
$(MAKE
) -C ffmpeg
all
970 -@
$(MAKE
) -C ffmpeg
clean
971 @
rm -f ffmpeg
/stamp-h1 ffmpeg
/config.h ffmpeg
/config.mak
973 ffmpeg-install
: ffmpeg
975 ifneq ($(MEDIA_SERVER_STATIC
),y
)
976 install -D ffmpeg
/libavformat
/libavformat.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
977 install -D ffmpeg
/libavcodec
/libavcodec.so
.52 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
978 install -D ffmpeg
/libavutil
/libavutil.so
.50 $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
979 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavformat.so
.52
980 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavcodec.so
.52
981 $(STRIP
) $(INSTALLDIR
)/ffmpeg
/usr
/lib
/libavutil.so
.50
986 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
987 touch libogg
/stamp-h1
989 libogg
: libogg
/stamp-h1
990 @
$(MAKE
) -C libogg
all
993 -@
$(MAKE
) -C libogg
clean
994 @
rm -f libogg
/stamp-h1
996 libogg-install
: libogg
998 ifneq ($(MEDIA_SERVER_STATIC
),y
)
999 install -D libogg
/src
/.libs
/libogg.so
.0 $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1000 $(STRIP
) $(INSTALLDIR
)/libogg
/usr
/lib
/libogg.so
.0
1003 flac
/stamp-h1
: libogg
1005 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" \
1006 CPPFLAGS
="-I$(TOP)/libogg/include" LDFLAGS
="-L$(TOP)/libogg/src/.libs" \
1007 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-rpath \
1008 --disable-doxygen-docs
--disable-xmms-plugin
--disable-cpplibs \
1009 --without-libiconv-prefix
--disable-altivec
--disable-3dnow
--disable-sse
1012 flac
: flac
/stamp-h1 libogg
1013 @
$(MAKE
) -C flac
/src
/libFLAC
all
1016 -@
$(MAKE
) -C flac
clean
1017 @
rm -f flac
/stamp-h1
1021 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1022 install -D flac
/src
/libFLAC
/.libs
/libFLAC.so
.8 $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1023 $(STRIP
) $(INSTALLDIR
)/flac
/usr
/lib
/libFLAC.so
.8
1028 CFLAGS
="-Os $(EXTRACFLAGS) -fPIC" CC
=$(CC
) AR2
="touch" $(CONFIGURE
) --enable-shared
--enable-static
--prefix=''
1032 @
$(MAKE
) -C jpeg LIBTOOL
="" O
=o A
=a CC
=$(CC
) AR2
="touch" libjpeg.a libjpeg.so
1035 -@
$(MAKE
) -C jpeg
clean
1036 @
rm -f jpeg
/stamp-h1 jpeg
/Makefile
1040 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1041 install -D jpeg
/libjpeg.so
$(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1042 $(STRIP
) $(INSTALLDIR
)/jpeg
/usr
/lib
/libjpeg.so
1046 cd libexif
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS) -fPIC" \
1047 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1048 --disable-docs
--disable-rpath
--disable-nls
--without-libiconv-prefix
--without-libintl-prefix
1049 touch libexif
/stamp-h1
1051 libexif
: libexif
/stamp-h1
1052 @
$(MAKE
) -C libexif
all
1055 -@
$(MAKE
) -C libexif
clean
1056 @
rm -f libexif
/stamp-h1
1058 libexif-install
: libexif
1060 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1061 install -D libexif
/libexif
/.libs
/libexif.so
.12 $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1062 $(STRIP
) $(INSTALLDIR
)/libexif
/usr
/lib
/libexif.so
.12
1067 CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1068 .
/configure
--shared
--prefix=''
1072 @
$(MAKE
) -C zlib CC
=$(CC
) AR
="ar rc" RANLIB
=$(RANLIB
) LD
=$(LD
) all
1075 -@
$(MAKE
) -C zlib
clean
1076 @
rm -f zlib
/stamp-h1 zlib
/Makefile zlib
/zconf.h zlib
/zlib.
pc
1080 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1081 install -d
$(INSTALLDIR
)/zlib
/usr
/lib
1082 install -D zlib
/libz.so
.1 $(INSTALLDIR
)/zlib
/usr
/lib
/
1083 $(STRIP
) $(INSTALLDIR
)/zlib
/usr
/lib
/libz.so
.1
1086 libid3tag
/stamp-h1
: zlib
1088 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" CPPFLAGS
="-I$(TOP)/zlib" LDFLAGS
="-L$(TOP)/zlib" \
1089 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' \
1090 --disable-debugging
--disable-profiling
1091 touch libid3tag
/stamp-h1
1093 libid3tag
: libid3tag
/stamp-h1 zlib
1094 @
$(MAKE
) -C libid3tag
all
1097 -@
$(MAKE
) -C libid3tag
clean
1098 @
rm -f libid3tag
/stamp-h1
1100 libid3tag-install
: libid3tag
1102 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1103 install -D libid3tag
/.libs
/libid3tag.so
.0 $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1104 $(STRIP
) $(INSTALLDIR
)/libid3tag
/usr
/lib
/libid3tag.so
.0
1107 libvorbis
/stamp-h1
: libogg
1109 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1110 CPPFLAGS
="-I$(TOP)/libogg/include" LDFLAGS
="-L$(TOP)/libogg/src/.libs" \
1111 $(CONFIGURE
) --enable-shared
--enable-static
--prefix='' --disable-oggtest \
1112 --with-ogg-includes
="$(TOP)/libogg/include" \
1113 --with-ogg-libraries
="$(TOP)/libogg/src/.libs"
1114 touch libvorbis
/stamp-h1
1116 libvorbis
: libvorbis
/stamp-h1
1117 @
$(MAKE
) -C libvorbis
/lib
all
1120 -@
$(MAKE
) -C libvorbis
clean
1121 @
rm -f libvorbis
/stamp-h1
1123 libvorbis-install
: libvorbis
1125 ifneq ($(MEDIA_SERVER_STATIC
),y
)
1126 install -D libvorbis
/lib
/.libs
/libvorbis.so
.0 $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1127 $(STRIP
) $(INSTALLDIR
)/libvorbis
/usr
/lib
/libvorbis.so
.0
1130 minidlna
: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1132 @
$(MAKE
) -C minidlna CC
=$(CC
) $(if
$(MEDIA_SERVER_STATIC
),STATIC
=1,) minidlna
1135 igmpproxy
/src
/Makefile
: igmpproxy
/src
/Makefile.in
1136 cd igmpproxy
&& CFLAGS
="-O2 -Wall $(EXTRACFLAGS)" \
1137 $(CONFIGURE
) --prefix=/usr
1139 igmpproxy
: igmpproxy
/src
/Makefile
1141 @
$(MAKE
) -C igmpproxy
/src
1144 install -D igmpproxy
/src
/igmpproxy
$(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1145 $(STRIP
) $(INSTALLDIR
)/igmpproxy
/usr
/sbin
/igmpproxy
1148 -$(MAKE
) -C igmpproxy
/src
clean
1149 @
rm -f igmpproxy
/src
/Makefile
1152 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)" \
1153 PROGRAMS
=udevtrigger
1156 install -d
$(INSTALLDIR
)
1157 install -d
$(TARGETDIR
)
1158 $(MAKE
) -C udev DESTDIR
=$(INSTALLDIR
) prefix=/udev install-udevtrigger
1161 $(MAKE
) -C
$@ CROSS_COMPILE
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1164 $(MAKE
) -C hotplug2
install PREFIX
=$(INSTALLDIR
)/hotplug2 SUBDIRS
=""
1165 $(MAKE
) -C hotplug2
/examples
install PREFIX
=$(INSTALLDIR
)/hotplug2
/rom KERNELVER
=$(LINUX_KERNEL
)
1168 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1171 $(MAKE
) -C
$(SRCBASE
)/emf
/emfconf INSTALLDIR
=$(INSTALLDIR
) install
1174 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf CROSS
=$(CROSS_COMPILE
) EXTRACFLAGS
="$(EXTRACFLAGS)"
1177 $(MAKE
) -C
$(SRCBASE
)/emf
/igsconf INSTALLDIR
=$(INSTALLDIR
) install
1181 $(MAKE
) -C ebtables CC
=$(CC
) LD
=$(LD
) CFLAGS
="-Os $(EXTRACFLAGS) -Wall -Wunused"
1183 ebtables-install
: ebtables
1184 install -D ebtables
/ebtables
$(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1186 install -d
$(INSTALLDIR
)/ebtables
/usr
/lib
1187 install -D ebtables
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1188 install -D ebtables
/extensions
/*.so
$(INSTALLDIR
)/ebtables
/usr
/lib
/
1190 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/sbin
/ebtables
1191 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebt
*.so
1192 $(STRIP
) $(INSTALLDIR
)/ebtables
/usr
/lib
/libebtc.so
1195 make
-C ebtables
clean
1199 CFLAGS
="-Os -Wall $(EXTRACFLAGS)" $(CONFIGURE
) --enable-shared
--enable-static
1205 -$(MAKE
) -C lzo
clean
1209 install -D lzo
/src
/.libs
/liblzo2.so
$(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1210 $(STRIP
) $(INSTALLDIR
)/lzo
/usr
/lib
/liblzo2.so
.2
1211 cd
$(INSTALLDIR
)/lzo
/usr
/lib
&& ln
-sf liblzo2.so
.2 liblzo2.so
1214 openvpn
: openvpn
/.conf
1217 cd openvpn
&& CFLAGS
="-Os -Wall $(EXTRACFLAGS)" \
1218 LDFLAGS
=" -L../openssl/ -L../lzo/src/.libs/" \
1219 $(CONFIGURE
) --prefix= \
1220 --with-lzo-headers
="../lzo/include" \
1221 --with-ssl-headers
="../openssl/include/" \
1222 --with-iproute-path
="/usr/sbin/ip" \
1223 --disable-debug
--disable-plugins
--enable-management
--enable-small \
1224 --disable-selinux
--disable-socks
--enable-password-save
1228 -$(MAKE
) -C openvpn
clean
1229 @
rm -f openvpn
/.conf
1232 install -D openvpn
/openvpn
$(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1233 $(STRIP
) $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1234 chmod
0500 $(INSTALLDIR
)/openvpn
/usr
/sbin
/openvpn
1242 @
[ ! -d
$* ] ||
( $(SEP
); $(MAKE
) -C
$* )
1246 @
-[ ! -d
$* ] ||
$(MAKE
) -C
$* clean
1249 @
[ ! -d
$* ] ||
$(MAKE
) -C
$* install INSTALLDIR
=$(INSTALLDIR
)/$*
1254 $(obj-y
) $(obj-n
) $(obj-clean
) $(obj-install
): dummy
1256 .PHONY
: all clean distclean mrproper
install package
1257 .PHONY
: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1258 .PHONY
: dummy libnet libpcap