Merge commit 'origin/Transmission' into tomato-shibby
[tomato.git] / release / src / router / Makefile
blob1ffeefe2fa67dff3576b2bea8da15d03ee8ca67d
2 # Broadcom Linux Router Makefile
4 # Copyright 2005, Broadcom Corporation
5 # All Rights Reserved.
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.
14 include common.mak
16 #TOMATO_EXPERIMENTAL=0
21 SEP=echo "\033[41;1m $@ \033[0m"
24 # standard packages
26 obj-y += lzma-loader
27 obj-y += nvram
28 obj-y += shared
29 obj-y += prebuilt
30 obj-y += igmpproxy
31 obj-y += iptables
32 obj-y += rc
33 obj-y += iproute2
34 obj-y += rom
35 obj-y += others
36 obj-y += busybox
37 obj-y += httpd
38 obj-y += www
39 obj-y += bridge
40 obj-y += dnsmasq
41 obj-y += etc
42 # obj-y += vlan # use Busybox vconfig
43 obj-y += pppd
44 obj-y += rp-pppoe
45 obj-y += utils
46 obj-y += ntpc
47 obj-y += rstats
49 # !!TB - updated Broadcom Wireless driver
50 obj-y += et
51 obj-y += libbcmcrypto
52 obj-y += wlconf
54 obj-y += cyassl
55 obj-y += mssl
56 obj-y += mdu
58 obj-$(TCONFIG_NFS) += portmap
59 obj-$(TCONFIG_NFS) += e2fsprogs
60 obj-$(TCONFIG_NFS) += libevent
61 obj-$(TCONFIG_NFS) += libnfsidmap
62 obj-$(TCONFIG_NFS) += nfs-utils
64 #Roadkill
65 obj-$(TCONFIG_NOCAT) += nocat
67 # !!TB
68 obj-$(TCONFIG_USB) += p910nd
70 ifeq ($(CONFIG_LINUX26),y)
71 obj-$(TCONFIG_USB) += sd-idle
72 else
73 obj-$(TCONFIG_USB) += scsi-idle
74 endif
76 obj-y += libusb10
77 #obj-y += libusb
78 obj-y += usbmodeswitch
79 obj-$(TCONFIG_FTP) += vsftpd
81 ifeq ($(CONFIG_LINUX26),y)
82 ifeq ($(TCONFIG_SAMBASRV),y)
83 NEED_EX_NLS = y
84 endif
85 ifeq ($(TCONFIG_USB_EXTRAS),y)
86 NEED_EX_USB = y
87 endif
88 endif
90 ifeq ($(TCONFIG_SAMBASRV),y)
91 ifeq ($(TCONFIG_SAMBA3),y)
92 NEED_SAMBA3 = y
93 else
94 NEED_SAMBA2 = y
95 endif
96 endif
98 ifeq ($(TCONFIG_IPV6),y)
99 export TCONFIG_IPV6 := y
100 else
101 TCONFIG_IPV6 :=
102 endif
104 obj-$(NEED_SAMBA2) += samba
105 obj-$(NEED_SAMBA3) += samba3
106 obj-$(TCONFIG_NTFS) += ntfs-3g
107 obj-$(TCONFIG_EBTABLES) += ebtables
108 obj-$(TCONFIG_IPV6) += radvd
109 obj-$(TCONFIG_IPV6) += dhcpv6
111 obj-$(TCONFIG_MEDIA_SERVER) += zlib
112 obj-$(TCONFIG_MEDIA_SERVER) += sqlite
113 obj-$(TCONFIG_MEDIA_SERVER) += ffmpeg
114 obj-$(TCONFIG_MEDIA_SERVER) += libogg
115 obj-$(TCONFIG_MEDIA_SERVER) += flac
116 obj-$(TCONFIG_MEDIA_SERVER) += jpeg
117 obj-$(TCONFIG_MEDIA_SERVER) += libexif
118 obj-$(TCONFIG_MEDIA_SERVER) += libid3tag
119 obj-$(TCONFIG_MEDIA_SERVER) += libvorbis
120 obj-$(TCONFIG_MEDIA_SERVER) += minidlna
121 MEDIA_SERVER_STATIC=y
123 obj-y += miniupnpd
124 # obj-y += upnp
128 # configurable packages
130 obj-$(TCONFIG_L2TP) += xl2tpd
131 obj-$(TCONFIG_PPTP) += accel-pptp
132 obj-$(TCONFIG_HTTPS) += openssl
133 obj-$(TCONFIG_SSH) += dropbear
134 obj-$(TCONFIG_ZEBRA) += zebra
135 # obj-$(TCONFIG_IPP2P) += ipp2p
136 obj-$(TCONFIG_LZO) += lzo
137 obj-$(TCONFIG_OPENVPN) += openvpn
138 obj-$(TCONFIG_EMF) += emf
139 obj-$(TCONFIG_EMF) += igs
141 obj-$(TCONFIG_BBT) += openssl
142 obj-$(TCONFIG_BBT) += libevent
143 obj-$(TCONFIG_BBT) += libcurl
144 obj-$(TCONFIG_BBT) += transmission
145 obj-$(TCONFIG_BT) += btgui
146 obj-$(TCONFIG_BBT) += zlib
148 obj-$(CONFIG_LINUX26) += hotplug2
149 obj-$(CONFIG_LINUX26) += udevtrigger
151 ifeq ($(TCONFIG_OPENVPN),y)
152 export FULL_OPENSSL := y
153 else
154 ifeq ($(TCONFIG_FTP_SSL),y)
155 export FULL_OPENSSL := y
156 else
157 ifeq ($(TCONFIG_BBT),y)
158 export FULL_OPENSSL := y
159 else
160 FULL_OPENSSL :=
161 endif
162 endif
163 endif
165 obj-clean := $(foreach obj, $(obj-y) $(obj-n) $(obj-), $(obj)-clean)
166 obj-install := $(foreach obj,$(obj-y),$(obj)-install)
171 # Basic rules
174 all: clean-build libc $(obj-y) kernel
177 kernel: $(LINUXDIR)/.config
178 @$(SEP)
180 @if ! grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
181 $(MAKE) -C $(LINUXDIR) zImage CC=$(KERNELCC); \
183 if grep -q "CONFIG_MODULES=y" $(LINUXDIR)/.config ; then \
184 $(MAKE) -C $(LINUXDIR) modules CC=$(KERNELCC); \
186 ifeq ($(CONFIG_LINUX26),y)
187 $(MAKE) -C $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed srctree=$(LINUXDIR)
188 endif
191 lzma-loader:
192 $(MAKE) -C $(SRCBASE)/lzma-loader CROSS_COMPILE=$(CROSS_COMPILE) LD=$(LD)
194 lzma-loader-install: lzma-loader
195 @$(SEP)
198 kmod: dummy
199 $(MAKE) -C $(LINUXDIR) modules CC=$(KERNELCC)
201 testfind:
202 cd $(TARGETDIR)/lib/modules/* && find -name "*.o" -exec mv -i {} . \; || true
203 cd $(TARGETDIR)/lib/modules/* && find -type d -delete || true
205 install package: $(obj-install) $(LINUXDIR)/.config
206 @$(SEP)
208 install -d $(TARGETDIR)
211 # kernel modules
212 $(MAKE) -C $(LINUXDIR) modules_install \
213 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" \
214 DEPMOD=/bin/true INSTALL_MOD_PATH=$(TARGETDIR)
216 ifneq ($(CONFIG_LINUX26),y)
217 find $(TARGETDIR)/lib/modules -name wl.*o -exec $(STRIP) --strip-unneeded -x {} \;
218 find $(TARGETDIR)/lib/modules -name et.*o -exec $(STRIP) --strip-unneeded -x {} \;
219 find $(TARGETDIR)/lib/modules -name bcm57*.*o -exec $(STRIP) --strip-unneeded -x {} \;
220 find $(TARGETDIR)/lib/modules -name ctf.*o -exec $(STRIP) --strip-unneeded -x {} \;
221 find $(TARGETDIR)/lib/modules -name emf.*o -exec $(STRIP) --strip-unneeded -x {} \;
222 find $(TARGETDIR)/lib/modules -name igs.*o -exec $(STRIP) --strip-unneeded -x {} \;
223 find $(TARGETDIR)/lib/modules -name jffs*.*o -exec $(STRIP) --strip-unneeded -x {} \;
225 find $(TARGETDIR)/lib/modules -name *.*o -exec $(STRIP) --strip-debug -x -R .mdebug.abi32 {} \;
226 endif
228 -cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv diag/* . && rm -rf diag
230 # nice and clean
231 -cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv et.4702/* . && rm -rf et.4702 || true
232 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv et/* . && rm -rf et
233 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv wl/* . && rm -rf wl
234 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv cifs/* . && rm -rf cifs
235 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jffs2/* . && rm -rf jffs2 || true
236 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jffs/* . && rm -rf jffs || true
237 cd $(TARGETDIR)/lib/modules/*/kernel/lib && mv zlib_inflate/* . && rm -rf zlib_inflate || true
238 cd $(TARGETDIR)/lib/modules/*/kernel/lib && mv zlib_deflate/* . && rm -rf zlib_deflate || true
239 cd $(TARGETDIR)/lib/modules/*/kernel/lib && mv lzo/* . && rm -rf lzo || true
240 rm -rf $(TARGETDIR)/lib/modules/*/pcmcia
242 ##!!TB
243 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv ext2/* . && rm -rf ext2 || true
244 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv ext3/* . && rm -rf ext3 || true
245 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jbd/* . && rm -rf jbd || true
246 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv fat/* . && rm -rf fat || true
247 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv jfs/* . && rm -rf jfs || true
248 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv vfat/* . && rm -rf vfat || true
249 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv msdos/* . && rm -rf msdos || true
250 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv fuse/* . && rm -rf fuse || true
251 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv ntfs/* . && rm -rf ntfs || true
252 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv smbfs/* . && rm -rf smbfs || true
253 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv reiserfs/* . && rm -rf reiserfs || true
254 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv hfsplus/* . && rm -rf hfsplus || true
255 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv lockd/* . && rm -rf lockd || true
256 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv nfsd/* . && rm -rf nfsd || true
257 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv nfs/* . && rm -rf nfs || true
258 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv xfs/* . && rm -rf xfs || true
259 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv nls/* . && rm -rf nls || true
260 cd $(TARGETDIR)/lib/modules/*/kernel/fs && mv exportfs/* . && rm -rf exportfs || true
261 cd $(TARGETDIR)/lib/modules/*/kernel/net && mv sunrpc/* . && rm -rf sunrpc || true
262 cd $(TARGETDIR)/lib/modules/*/kernel/net && mv auth_gss/* . && rm -rf auth_gss || true
263 cd $(TARGETDIR)/lib/modules/*/kernel/sound/core && mv oss/* . && rm -rf oss || true
264 cd $(TARGETDIR)/lib/modules/*/kernel/sound/core && mv seq/* . && rm -rf seq || true
265 cd $(TARGETDIR)/lib/modules/*/kernel/sound && mv core/* . && rm -rf core || true
266 cd $(TARGETDIR)/lib/modules/*/kernel/sound && mv usb/* . && rm -rf usb || true
267 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv hcd/* . && rm -rf hcd || true
268 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv host/* . && rm -rf host || true
269 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv storage/* . && rm -rf storage || true
270 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv serial/* . && rm -rf serial || true
271 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv core/* . && rm -rf core || true
272 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv class/* . && rm -rf class || true
273 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv misc/* . && rm -rf misc || true
274 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/usb && mv usbip/* . && rm -rf usbip || true
275 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/hid && mv usbhid/* . && rm -rf usbhid || true
276 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv joystick/* . && rm -rf joystick || true
277 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv keyboard/* . && rm -rf keyboard || true
278 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv misc/* . && rm -rf misc || true
279 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/input && mv mouse/* . && rm -rf mouse || true
280 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video && mv uvc/* . && rm -rf uvc || true
281 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video && mv pwc/* . && rm -rf pwc || true
282 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video/gspca && mv gl860/* . && rm -rf gl860 || true
283 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video/gspca && mv m5602/* . && rm -rf m5602 || true
284 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video/gspca && mv stv06xx/* . && rm -rf stv06xx || true
285 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media/video && mv gspca/* . && rm -rf gspca || true
286 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/media && mv video/* . && rm -rf video || true
288 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv bcm57xx/* . && rm -rf bcm57xx || true
289 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv emf/* . && rm -rf emf || true
290 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv igs/* . && rm -rf igs || true
291 cd $(TARGETDIR)/lib/modules/*/kernel/drivers/net && mv ctf/* . && rm -rf ctf || true
292 cd $(TARGETDIR)/lib/modules && rm -f */source || true
294 # misc
295 for dir in $(wildcard $(patsubst %,$(INSTALLDIR)/%,$(obj-y))) ; do \
296 (cd $${dir} && tar cpf - .) | (cd $(TARGETDIR) && tar xpf -) \
297 done
299 ifneq ($(TCONFIG_L7),y)
300 rm -f $(TARGETDIR)/usr/lib/iptables/libipt_layer7.so
301 endif
303 # uClibc
304 install $(LIBDIR)/ld-uClibc.so.0 $(TARGETDIR)/lib/
305 install $(LIBDIR)/libcrypt.so.0 $(TARGETDIR)/lib/
306 install $(LIBDIR)/libpthread.so.0 $(TARGETDIR)/lib/
307 install $(LIBDIR)/libgcc_s.so.1 $(TARGETDIR)/lib/
308 $(STRIP) $(TARGETDIR)/lib/libgcc_s.so.1
309 install $(LIBDIR)/libc.so.0 $(TARGETDIR)/lib/
310 install $(LIBDIR)/libdl.so.0 $(TARGETDIR)/lib/
311 install $(LIBDIR)/libm.so.0 $(TARGETDIR)/lib/
312 install $(LIBDIR)/libnsl.so.0 $(TARGETDIR)/lib/
313 ifeq ($(TCONFIG_SSH),y)
314 install $(LIBDIR)/libutil.so.0 $(TARGETDIR)/lib/
315 endif
316 ifneq ($(TCONFIG_OPTIMIZE_SHARED_LIBS),y)
317 install $(LIBDIR)/libresolv.so.0 $(TARGETDIR)/lib/
318 $(STRIP) $(TARGETDIR)/lib/*.so.0
319 endif
321 @cd $(TARGETDIR) && $(TOP)/others/rootprep.sh
323 @echo ---
325 ifeq ($(TCONFIG_OPTIMIZE_SHARED_LIBS),y)
326 @$(SRCBASE)/btools/libfoo.pl
327 else
328 @$(SRCBASE)/btools/libfoo.pl --noopt
329 endif
330 @chmod 0555 $(TARGETDIR)/lib/*.so*
331 @chmod 0555 $(TARGETDIR)/usr/lib/*.so*
333 # !!TB - moved to run after libfoo.pl - to make sure shared libs include all symbols needed by extras
334 # separated/copied extra stuff
335 @rm -rf $(PLATFORMDIR)/extras
336 @mkdir $(PLATFORMDIR)/extras
337 @mv $(TARGETDIR)/lib/modules/*/kernel/net/ipv4/ip_gre.*o $(PLATFORMDIR)/extras/ || true
339 $(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
340 $(if $(TCONFIG_EBTABLES),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/bridge/netfilter/ebt*.*o $(PLATFORMDIR)/extras/ || true
342 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/ifb.*o $(PLATFORMDIR)/extras/ || true
343 @mv $(TARGETDIR)/lib/modules/*/kernel/net/sched/sch_red.*o $(PLATFORMDIR)/extras/ || true
344 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/ntfs.*o $(PLATFORMDIR)/extras/ || true
345 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/smbfs.*o $(PLATFORMDIR)/extras/ || true
346 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/reiserfs.*o $(PLATFORMDIR)/extras/ || true
347 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/hfsplus.*o $(PLATFORMDIR)/extras/ || true
348 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/jfs.*o $(PLATFORMDIR)/extras/ || true
349 $(if $(TCONFIG_NFS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nfs.*o $(PLATFORMDIR)/extras/ || true
350 $(if $(TCONFIG_NFS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nfsd.*o $(PLATFORMDIR)/extras/ || true
351 $(if $(TCONFIG_NFS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/lockd.*o $(PLATFORMDIR)/extras/ || true
352 $(if $(TCONFIG_NFS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/exportfs.*o $(PLATFORMDIR)/extras/ || true
353 $(if $(TCONFIG_NFS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/sunrpc.*o $(PLATFORMDIR)/extras/ || true
354 @mv $(TARGETDIR)/lib/modules/*/kernel/net/auth_rpcgss.*o $(PLATFORMDIR)/extras/ || true
355 @mv $(TARGETDIR)/lib/modules/*/kernel/net/rpcsec_gss_krb5.*o $(PLATFORMDIR)/extras/ || true
356 @mv $(TARGETDIR)/lib/modules/*/kernel/fs/xfs.*o $(PLATFORMDIR)/extras/ || true
357 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/scsi/sr_mod.*o $(PLATFORMDIR)/extras/ || true
358 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/scanner.*o $(PLATFORMDIR)/extras/ || true
360 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbserial.*o $(PLATFORMDIR)/extras/ || true
361 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/option.*o $(PLATFORMDIR)/extras/ || true
362 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/sierra.*o $(PLATFORMDIR)/extras/ || true
363 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/*acm.*o $(PLATFORMDIR)/extras/ || true
364 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/ftdi_sio.*o $(PLATFORMDIR)/extras/ || true
365 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/pl2303.*o $(PLATFORMDIR)/extras/ || true
367 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbip*.*o $(PLATFORMDIR)/extras/ || true
368 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbkbd.*o $(PLATFORMDIR)/extras/ || true
369 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/usbmouse.*o $(PLATFORMDIR)/extras/ || true
370 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/hid*.*o $(PLATFORMDIR)/extras/ || true
371 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/ipw.*o $(PLATFORMDIR)/extras/ || true
372 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/audio.*o $(PLATFORMDIR)/extras/ || true
373 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/ov51*.*o $(PLATFORMDIR)/extras/ || true
374 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/pwc*.*o $(PLATFORMDIR)/extras/ || true
375 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/emi*.*o $(PLATFORMDIR)/extras/ || true
376 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/mii.*o $(PLATFORMDIR)/extras/ || true
377 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/cdc_ether.*o $(PLATFORMDIR)/extras/ || true
378 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/cdc_subset.*o $(PLATFORMDIR)/extras/ || true
379 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/usbnet.*o $(PLATFORMDIR)/extras/ || true
380 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb/rndis_host.*o $(PLATFORMDIR)/extras/ || true
381 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/net/usb || true
382 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/media/* $(PLATFORMDIR)/extras/ || true
383 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/media || true
384 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/sound/* $(PLATFORMDIR)/extras/ || true
385 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/sound || true
386 @mv $(TARGETDIR)/lib/modules/*/kernel/sound/* $(PLATFORMDIR)/extras/ || true
387 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/sound || true
388 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/input/* $(PLATFORMDIR)/extras/ || true
389 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/input || true
390 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/hid/* $(PLATFORMDIR)/extras/ || true
391 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/hid || true
392 @cp -f $(TARGETDIR)/lib/modules/*/kernel/drivers/net/bcm57*.*o $(PLATFORMDIR)/extras/ || true
393 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/ctf*.*o $(PLATFORMDIR)/extras/ || true
394 $(if $(TCONFIG_PPTP),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/pptp.*o $(PLATFORMDIR)/extras/ || true
395 $(if $(TCONFIG_L2TP),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/net/pppol2tp.*o $(PLATFORMDIR)/extras/ || true
396 @mv $(TARGETDIR)/lib/modules/*/kernel/drivers/net/ppp_deflate.*o $(PLATFORMDIR)/extras/ || true
397 @mv $(TARGETDIR)/lib/modules/*/kernel/crypto/* $(PLATFORMDIR)/extras/ || true
398 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/crypto || true
400 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_cp9*.*o $(PLATFORMDIR)/extras/ || true
401 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_cp1251.*o $(PLATFORMDIR)/extras/ || true
402 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_euc-jp.*o $(PLATFORMDIR)/extras/ || true
403 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_sjis.*o $(PLATFORMDIR)/extras/ || true
404 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_gb2312.*o $(PLATFORMDIR)/extras/ || true
405 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_euc-kr.*o $(PLATFORMDIR)/extras/ || true
406 $(if $(NEED_EX_NLS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_big5.*o $(PLATFORMDIR)/extras/ || true
408 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/nls_*.*o $(PLATFORMDIR)/extras/ || true
409 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/usb/*.*o $(PLATFORMDIR)/extras/ || true
410 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/scsi/*.*o $(PLATFORMDIR)/extras/ || true
411 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/leds/*.*o $(PLATFORMDIR)/extras/ || true
412 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/ext2.*o $(PLATFORMDIR)/extras/ || true
413 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/ext3.*o $(PLATFORMDIR)/extras/ || true
414 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/jbd.*o $(PLATFORMDIR)/extras/ || true
415 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/mbcache.*o $(PLATFORMDIR)/extras/ || true
416 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/fat.*o $(PLATFORMDIR)/extras/ || true
417 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/vfat.*o $(PLATFORMDIR)/extras/ || true
418 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/msdos.*o $(PLATFORMDIR)/extras/ || true
419 $(if $(TCONFIG_USB),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/fuse.*o $(PLATFORMDIR)/extras/ || true
420 ifneq ($(TCONFIG_USB),y)
421 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/usb || true
422 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/scsi || true
423 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/leds || true
424 endif
426 $(if $(TCONFIG_USB_EXTRAS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/connector/cn.*o $(PLATFORMDIR)/extras/ || true
427 $(if $(TCONFIG_USB_EXTRAS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/drivers/block/loop.*o $(PLATFORMDIR)/extras/ || true
428 ifneq ($(TCONFIG_USB_EXTRAS),y)
429 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/connector || true
430 @rm -rf $(TARGETDIR)/lib/modules/*/kernel/drivers/block || true
431 endif
432 $(if $(TCONFIG_CIFS),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/cifs.*o $(PLATFORMDIR)/extras/ || true
433 $(if $(TCONFIG_JFFS2),$(if $(TCONFIG_JFFSV1),@mv,@cp -f),@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/jffs2.*o $(PLATFORMDIR)/extras/ || true
434 $(if $(TCONFIG_JFFS2),$(if $(TCONFIG_JFFSV1),@mv,@cp -f),@mv) $(TARGETDIR)/lib/modules/*/kernel/lib/zlib_*.*o $(PLATFORMDIR)/extras/ || true
435 $(if $(TCONFIG_JFFS2),$(if $(TCONFIG_JFFSV1),@cp -f,@mv),@mv) $(TARGETDIR)/lib/modules/*/kernel/fs/jffs.*o $(PLATFORMDIR)/extras/ || true
436 [ ! -f $(TARGETDIR)/lib/modules/*/kernel/lib/* ] && rm -rf $(TARGETDIR)/lib/modules/*/kernel/lib || true
437 $(if $(TCONFIG_L7),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/ipv4/netfilter/ipt_layer7.*o $(PLATFORMDIR)/extras/ || true
438 $(if $(TCONFIG_L7),@cp -f,@mv) $(TARGETDIR)/lib/modules/*/kernel/net/netfilter/xt_layer7.*o $(PLATFORMDIR)/extras/ || true
440 @mkdir -p $(PLATFORMDIR)/extras/apps
441 @mkdir -p $(PLATFORMDIR)/extras/lib
443 @mv $(TARGETDIR)/usr/sbin/ttcp $(PLATFORMDIR)/extras/apps/ || true
444 @mv $(TARGETDIR)/usr/sbin/mii-tool $(PLATFORMDIR)/extras/apps/ || true
445 @mv $(TARGETDIR)/usr/sbin/robocfg $(PLATFORMDIR)/extras/apps/ || true
447 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/usr/lib/libusb* $(PLATFORMDIR)/extras/lib/ || true
448 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/usr/sbin/usb_modeswitch $(PLATFORMDIR)/extras/apps/ || true
449 @cp usbmodeswitch/usb_modeswitch.conf $(PLATFORMDIR)/extras/apps/usb_modeswitch.conf || true
450 @cp usbmodeswitch/usb_modeswitch.setup $(PLATFORMDIR)/extras/apps/usb_modeswitch.setup || true
451 @mkdir -p $(PLATFORMDIR)/extras/apps/usb_modeswitch.d
452 @cp -f usbmodeswitch/data/usb_modeswitch.d/* $(PLATFORMDIR)/extras/apps/usb_modeswitch.d || true
453 ifneq ($(NEED_EX_USB),y)
454 @rm -rf $(TARGETDIR)/rom/etc/usb_modeswitch.d || true
455 @rm -f $(TARGETDIR)/rom/etc/usb_modeswitch.conf || true
456 endif
457 $(if $(NEED_EX_USB),@cp -f,@mv) $(TARGETDIR)/usr/sbin/chat $(PLATFORMDIR)/extras/apps/ || true
459 @mkdir -p $(TARGETDIR)/rom/etc/l7-protocols
460 ifeq ($(TCONFIG_L7PAT),y)
461 @cd layer7 && ./squish.sh
462 cp layer7/squished/*.pat $(TARGETDIR)/rom/etc/l7-protocols
463 endif
465 busybox/examples/depmod.pl -k $(LINUXDIR)/vmlinux -b $(TARGETDIR)/lib/modules/*/
466 @mv $(TARGETDIR)/lib/modules/*/modules.dep $(TARGETDIR)/lib/modules/
467 @echo ---
469 @rm -f $(TARGETDIR)/lib/modules/*/build
471 @$(MAKE) -C $(LINUXDIR)/scripts/squashfs mksquashfs-lzma
472 @$(LINUXDIR)/scripts/squashfs/mksquashfs-lzma $(TARGETDIR) $(PLATFORMDIR)/target.image -all-root -noappend -nopad | tee target.info
474 # Package kernel and filesystem
475 # if grep -q "CONFIG_EMBEDDED_RAMDISK=y" $(LINUXDIR)/.config ; then \
476 # cp $(PLATFORMDIR)/target.image $(LINUXDIR)/arch/mips/ramdisk/$${CONFIG_EMBEDDED_RAMDISK_IMAGE} ; \
477 # $(MAKE) -C $(LINUXDIR) zImage ; \
478 # else \
479 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/vmlinuz $(PLATFORMDIR)/ ; \
480 # trx -o $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image ; \
481 # fi
483 # Pad self-booting Linux to a 64 KB boundary
484 # cp $(LINUXDIR)/arch/mips/brcm-boards/bcm947xx/compressed/zImage $(PLATFORMDIR)/
485 # dd conv=sync bs=64k < $(PLATFORMDIR)/zImage > $(PLATFORMDIR)/linux.bin
486 # Append filesystem to self-booting Linux
487 # cat $(PLATFORMDIR)/target.image >> $(PLATFORMDIR)/linux.bin
490 libc: $(LIBDIR)/ld-uClibc.so.0
491 # $(MAKE) -C ../../../tools-src/uClibc all
492 # $(MAKE) -C ../../../tools-src/uClibc install
496 # cleaners
499 clean: clean-build $(obj-clean)
500 rm -rf layer7/squished
501 rm -f .ipv6-y .ipv6-n
502 rm -f .fullssl-y .fullssl-n
503 make -C config clean
505 clean-build: dummy
506 rm -rf $(TARGETDIR)
507 rm -rf $(INSTALLDIR)
508 rm -f $(PLATFORMDIR)/linux.trx $(PLATFORMDIR)/vmlinuz $(PLATFORMDIR)/target.image
509 rm -rf $(PLATFORMDIR)/extras
511 distclean: clean
512 ifneq ($(INSIDE_MAK),1)
513 $(MAKE) -C $(SRCBASE) $@ INSIDE_MAK=1
514 endif
515 # -rm -f $(LIBDIR)/*.so.0 $(LIBDIR)/*.so
518 # configuration
521 CONFIG_IN := config/config.in
523 config/conf config/mconf:
524 @$(MAKE) -C config
526 rconf: config/conf
527 @config/conf $(CONFIG_IN)
529 rmconf: config/mconf
530 @config/mconf $(CONFIG_IN)
532 roldconf: config/conf
533 @config/conf -o $(CONFIG_IN)
534 @$(MAKE) shared-clean rc-clean nvram-clean httpd-clean prebuilt-clean libbcmcrypto-clean dhcpv6-clean
536 kconf:
537 @$(MAKE) -C $(LINUXDIR) config
539 kmconf:
540 @$(MAKE) -C $(LINUXDIR) menuconfig
542 koldconf:
543 @$(MAKE) -C $(LINUXDIR) oldconfig
544 @$(MAKE) -C $(LINUXDIR) include/linux/version.h
546 bboldconf:
547 @$(MAKE) -C busybox oldconfig
549 config conf: rconf kconf
551 menuconfig mconf: rmconf kmconf
553 .ipv6-y .ipv6-n:
554 @rm -f .ipv6-y .ipv6-n
555 @$(MAKE) iptables-clean ebtables-clean pppd-clean zebra-clean dnsmasq-clean iproute2-clean
556 @touch $@
558 .fullssl-y .fullssl-n:
559 @rm -f .fullssl-y .fullssl-n
560 @$(MAKE) openssl-clean vsftpd-clean mssl-clean mdu-clean httpd-clean
561 @touch $@
563 dependconf: .ipv6-$(if $(TCONFIG_IPV6),y,n) .fullssl-$(if $(FULL_OPENSSL),y,n)
565 oldconfig oldconf: koldconf roldconf dependconf bboldconf
569 # overrides and extra dependencies
572 busybox: dummy
573 @$(MAKE) -C busybox EXTRA_CFLAGS="-fPIC $(EXTRACFLAGS)"
575 # V=1
577 busybox-install:
578 rm -rf $(INSTALLDIR)/busybox
579 $(MAKE) -C busybox install EXTRA_CFLAGS="-fPIC $(EXTRACFLAGS)" CONFIG_PREFIX=$(INSTALLDIR)/busybox
581 busybox-clean:
582 $(MAKE) -C busybox distclean
584 busybox-config:
585 $(MAKE) -C busybox menuconfig
588 httpd: shared nvram mssl
589 @$(SEP)
590 @$(MAKE) -C httpd
592 www-install:
593 @$(MAKE) -C www install INSTALLDIR=$(INSTALLDIR)/www TOMATO_EXPERIMENTAL=$(TOMATO_EXPERIMENTAL)
595 matrixssl:
596 @$(SEP)
597 @$(MAKE) -C matrixssl/src
599 matrixssl-install:
600 @true
602 matrixssl-clean:
603 $(MAKE) -C matrixssl/src clean
605 cyassl/stamp-h1:
606 @cd cyassl && CC=$(CC) AR=$(AR) RANLIB=$(RANLIB) LD=$(LD) \
607 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections \
608 -DNO_MD4 -DNO_AES -DNO_ERROR_STRINGS -DNO_HC128 -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED" \
609 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
610 PTHREAD_LIBS="-lpthread" \
611 $(CONFIGURE)
612 @touch cyassl/stamp-h1
614 cyassl: cyassl/stamp-h1
615 @$(SEP)
616 @$(MAKE) -C cyassl
618 cyassl-clean:
619 -@$(MAKE) -C cyassl clean
620 @rm -f cyassl/stamp-h1
622 cyassl-install:
623 @true
625 ifeq ($(FULL_OPENSSL),y)
626 OPENSSL_CIPHERS:=enable-rc5
627 else
628 OPENSSL_CIPHERS:=no-dh no-idea no-rc2 no-rc5 no-aes no-aes192 no-cast no-des no-modes no-tls1 no-tlsext
629 endif
631 openssl/stamp-h1:
632 cd openssl && \
633 ./Configure linux-mipsel --openssldir=/etc --cross-compile-prefix=' ' \
634 -ffunction-sections -fdata-sections -Wl,--gc-sections \
635 shared $(OPENSSL_CIPHERS) \
636 no-sha0 no-smime no-camellia no-krb5 no-rmd160 no-ripemd \
637 no-seed no-capieng no-cms no-gms no-gmp no-rfc3779 \
638 no-ec no-ecdh no-ecdsa no-err no-hw no-jpake no-threads \
639 no-zlib no-engine no-engines no-sse2 no-perlasm \
640 no-dtls1 no-store no-psk no-md2 no-mdc2 no-ts
642 @$(MAKE) -C openssl clean
643 @touch openssl/stamp-h1
645 openssl: openssl/stamp-h1
647 openssl-clean:
648 -@$(MAKE) -C openssl clean
649 @rm -f openssl/stamp-h1
651 openssl-install: openssl
652 install -D openssl/libcrypto.so.1.0.0 $(INSTALLDIR)/openssl/usr/lib/libcrypto.so.1.0.0
653 $(STRIP) $(INSTALLDIR)/openssl/usr/lib/libcrypto.so.1.0.0
654 cd $(INSTALLDIR)/openssl/usr/lib && ln -sf libcrypto.so.1.0.0 libcrypto.so
656 install -D openssl/apps/openssl $(INSTALLDIR)/openssl/usr/sbin/openssl
657 $(STRIP) $(INSTALLDIR)/openssl/usr/sbin/openssl
658 chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/openssl
660 install -D -m 0500 httpd/gencert.sh $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
662 # perl -e 'while (<>) { s/.SECS/time()-(24*60*60)/e; print; }' < httpd/gencert.sh > $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
663 # chmod 0500 $(INSTALLDIR)/openssl/usr/sbin/gencert.sh
665 ifeq ($(FULL_OPENSSL),y)
666 install -D openssl/libssl.so.1.0.0 $(INSTALLDIR)/openssl/usr/lib/libssl.so.1.0.0
667 $(STRIP) $(INSTALLDIR)/openssl/usr/lib/libssl.so.1.0.0
668 cd $(INSTALLDIR)/openssl/usr/lib && ln -sf libssl.so.1.0.0 libssl.so
669 endif
671 mssl: $(if $(FULL_OPENSSL),openssl,cyassl)
673 mdu: shared mssl
675 rc: nvram shared
677 bridge/Makefile:
678 cd bridge && CFLAGS="-Os -g $(EXTRACFLAGS)" \
679 $(CONFIGURE) --prefix="" --with-linux-headers=$(LINUXDIR)/include
681 bridge: bridge/Makefile
682 @$(SEP)
683 @$(MAKE) -C bridge
685 bridge-clean:
686 -@$(MAKE) -C bridge clean
687 @rm -f bridge/Makefile
689 bridge-install:
690 install -D bridge/brctl/brctl $(INSTALLDIR)/bridge/usr/sbin/brctl
691 $(STRIP) $(INSTALLDIR)/bridge/usr/sbin/brctl
693 dnsmasq:
694 @$(SEP)
695 @$(MAKE) -C dnsmasq \
696 COPTS="$(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6) $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
697 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC"
699 dnsmasq-install:
700 install -D dnsmasq/src/dnsmasq $(INSTALLDIR)/dnsmasq/usr/sbin/dnsmasq
701 $(STRIP) $(INSTALLDIR)/dnsmasq/usr/sbin/dnsmasq
703 iptables:
704 @$(SEP)
705 $(MAKE) -C iptables BINDIR=/usr/sbin LIBDIR=/usr/lib KERNEL_DIR=$(LINUXDIR) COPT_FLAGS="-Os $(EXTRACFLAGS) -U CONFIG_NVRAM_SIZE"
707 iptables-install:
708 install -D iptables/iptables $(INSTALLDIR)/iptables/usr/sbin/iptables
709 cd $(INSTALLDIR)/iptables/usr/sbin && \
710 ln -sf iptables iptables-restore
712 install -d $(INSTALLDIR)/iptables/usr/lib/iptables
713 install -D iptables/extensions/*.so $(INSTALLDIR)/iptables/usr/lib/iptables/
715 install -D iptables/libiptc.so $(INSTALLDIR)/iptables/usr/lib/libiptc.so
717 $(STRIP) $(INSTALLDIR)/iptables/usr/sbin/iptables
718 $(STRIP) $(INSTALLDIR)/iptables/usr/lib/iptables/*.so
719 $(STRIP) $(INSTALLDIR)/iptables/usr/lib/libiptc.so
721 ifeq ($(TCONFIG_IPV6),y)
722 install iptables/ip6tables $(INSTALLDIR)/iptables/usr/sbin/ip6tables
723 $(STRIP) $(INSTALLDIR)/iptables/usr/sbin/ip6tables
724 cd $(INSTALLDIR)/iptables/usr/sbin && \
725 ln -sf ip6tables ip6tables-restore
726 endif
728 iptables-clean:
729 -$(MAKE) -C iptables KERNEL_DIR=$(LINUXDIR) clean
731 ppp:
732 @$(SEP)
733 $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp $(if $(TCONFIG_IPV6),HAVE_INET6=y,)
734 # $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp DFLAGS="-DDEBUG -DDEBUGALL"
736 ppp-%:
737 $(MAKE) -C ppp/pppoecd $* INSTALLDIR=$(INSTALLDIR)/ppp $(if $(TCONFIG_IPV6),HAVE_INET6=y,)
739 rp-pppoe/src/stamp-h1: rp-pppoe/src/Makefile.in
740 cd rp-pppoe/src && CFLAGS="-g -O2 $(EXTRACFLAGS)" \
741 $(CONFIGURE) --prefix=/usr --enable-plugin=$(TOP)/pppd \
742 ac_cv_linux_kernel_pppoe=yes rpppoe_cv_pack_bitfields=rev
743 @touch rp-pppoe/src/stamp-h1
745 rp-pppoe: pppd rp-pppoe/src/stamp-h1
746 $(MAKE) -C rp-pppoe/src pppoe-relay rp-pppoe.so
748 rp-pppoe-clean:
749 -$(MAKE) -C rp-pppoe/src clean
750 @rm -f rp-pppoe/src/pppoe-relay
751 @rm -f rp-pppoe/src/stamp-h1
753 rp-pppoe-install: rp-pppoe
754 install -D rp-pppoe/src/rp-pppoe.so $(INSTALLDIR)/rp-pppoe/usr/lib/pppd/rp-pppoe.so
755 $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/lib/pppd/*.so
756 # install -D rp-pppoe/src/pppoe-relay $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
757 # $(STRIP) $(INSTALLDIR)/rp-pppoe/usr/sbin/pppoe-relay
760 upnp: nvram shared iptables
762 miniupnpd-config:
763 @cd miniupnpd && ./genconfig.sh
765 miniupnpd: iptables miniupnpd-config
766 @$(SEP)
767 $(MAKE) -C miniupnpd miniupnpd -f Makefile.linux \
768 TARGET_OPENWRT="not really" CC=$(CC) \
769 CFLAGS="-Wall -Os -D_GNU_SOURCE $(EXTRACFLAGS) -I$(TOP)/iptables/include" \
770 LDFLAGS="-L$(TOP)/iptables -liptc" LIBS=""
772 miniupnpd-clean:
773 -$(MAKE) -C miniupnpd -f Makefile.linux clean
774 @rm -f miniupnpd/config.h
776 miniupnpd-install:
777 install -D miniupnpd/miniupnpd $(INSTALLDIR)/miniupnpd/usr/sbin/miniupnpd
778 $(STRIP) $(INSTALLDIR)/miniupnpd/usr/sbin/miniupnpd
780 # !!TB
781 shared: busybox
783 vsftpd: $(if $(TCONFIG_FTP_SSL),openssl,)
784 @$(SEP)
785 $(MAKE) -C vsftpd
787 vsftpd-install: vsftpd
788 install -D vsftpd/vsftpd $(INSTALLDIR)/vsftpd/usr/sbin/vsftpd
789 $(STRIP) -s $(INSTALLDIR)/vsftpd/usr/sbin/vsftpd
791 ntfs-3g/Makefile:
792 cd ntfs-3g && \
793 CC=$(CC) CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
794 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
795 $(CONFIGURE) --enable-shared=no --enable-static=no \
796 --disable-library --disable-ldconfig --disable-mount-helper --with-fuse=internal \
797 --disable-ntfsprogs --disable-crypto --without-uuid \
798 --disable-posix-acls --disable-nfconv --disable-dependency-tracking
800 ntfs-3g: ntfs-3g/Makefile
801 @$(MAKE) -C ntfs-3g
803 ntfs-3g-clean:
804 -@$(MAKE) -C ntfs-3g clean
805 @rm -f ntfs-3g/Makefile
807 ntfs-3g-install: ntfs-3g
808 install -D ntfs-3g/src/ntfs-3g $(INSTALLDIR)/ntfs-3g/bin/ntfs-3g
809 $(STRIP) -s $(INSTALLDIR)/ntfs-3g/bin/ntfs-3g
810 install -d $(INSTALLDIR)/ntfs-3g/sbin && cd $(INSTALLDIR)/ntfs-3g/sbin && \
811 ln -sf ../bin/ntfs-3g mount.ntfs-3g && \
812 ln -sf ../bin/ntfs-3g mount.ntfs
814 libusb10/Makefile: libusb10/Makefile.in
815 cd libusb10 && CFLAGS="-Os -Wall $(EXTRACFLAGS)" LIBS="-lpthread" \
816 $(CONFIGURE) --prefix=/usr ac_cv_lib_rt_clock_gettime=no
818 libusb10: libusb10/Makefile
819 $(MAKE) -C $@
821 libusb10-install: libusb10
822 install -D libusb10/libusb/.libs/libusb-1.0.so $(INSTALLDIR)/libusb10/usr/lib/libusb-1.0.so
823 $(STRIP) $(INSTALLDIR)/libusb10/usr/lib/*.so
825 libusb10-clean:
826 -@$(MAKE) -C $@ clean
827 @rm -rf libusb10/Makefile
829 libusb/Makefile: libusb/Makefile.in
830 cd libusb && CFLAGS="-Wall -Os $(EXTRACFLAGS)" \
831 $(CONFIGURE) --prefix=/usr \
832 LIBUSB_1_0_CFLAGS="-I$(TOP)/libusb10/libusb" \
833 LIBUSB_1_0_LIBS="-L$(TOP)/libusb10/libusb/.libs -lusb-1.0 -lpthread \
834 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share"
836 libusb: libusb10 libusb/Makefile
837 $(MAKE) -C $@
839 libusb-install: libusb
840 install -D libusb/libusb/.libs/libusb-0.1.so $(INSTALLDIR)/libusb/usr/lib/libusb-0.1.so
841 $(STRIP) $(INSTALLDIR)/libusb/usr/lib/*.so
843 libusb-clean:
844 -@$(MAKE) -C $@ clean
845 @rm -rf libusb/Makefile
847 usbmodeswitch: libusb10
848 $(MAKE) -C $@ CC=$(CC) CFLAGS="-Os $(EXTRACFLAGS) -DLIBUSB10 \
849 -Wl,-R/lib:/usr/lib:/opt/usr/lib:/usr/local/share -lpthread \
850 -I$(TOP)/libusb10/libusb -L$(TOP)/libusb10/libusb/.libs -lusb-1.0"
852 usbmodeswitchdb-install:
853 @mkdir -p $(TARGETDIR)/rom/etc/usb_modeswitch.d
854 # compress whitespace
855 @for D in $(wildcard $(TOP)/usbmodeswitch/data/usb_modeswitch.d/*); do \
856 F=`basename $$D`; \
857 sed 's/###.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $$D > $(TARGETDIR)/rom/etc/usb_modeswitch.d/$$F; \
858 done
860 usbmodeswitch-install: usbmodeswitch usbmodeswitchdb-install
861 install -D usbmodeswitch/usb_modeswitch $(INSTALLDIR)/usbmodeswitch/usr/sbin/usb_modeswitch
862 $(STRIP) -s $(INSTALLDIR)/usbmodeswitch/usr/sbin/usb_modeswitch
863 @mkdir -p $(TARGETDIR)/rom/etc
864 @sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP)/usbmodeswitch/usb_modeswitch.conf > $(TARGETDIR)/rom/etc/usb_modeswitch.conf
867 radvd/stamp-h1:
868 cd radvd && CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
869 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
870 $(CONFIGURE) --prefix=""
871 @$(MAKE) -C radvd clean
872 @touch radvd/stamp-h1
874 radvd: radvd/stamp-h1
876 radvd-clean:
877 -@$(MAKE) -C radvd distclean
878 @rm -f radvd/stamp-h1
880 radvd-install: radvd
881 install -D radvd/radvd $(INSTALLDIR)/radvd/usr/sbin/radvd
882 $(STRIP) $(INSTALLDIR)/radvd/usr/sbin/radvd
884 dhcpv6/stamp-h1:
885 @cd dhcpv6 && \
886 CFLAGS="-Os -Wall $(EXTRACFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections" \
887 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
888 ac_cv_func_setpgrp_void=yes \
889 $(CONFIGURE) --prefix= --with-localdbdir=/var
890 @$(MAKE) -C dhcpv6 clean
891 @touch dhcpv6/stamp-h1
893 dhcpv6: dhcpv6/stamp-h1
894 @$(SEP)
895 @$(MAKE) -C dhcpv6 dhcp6c
897 dhcpv6-install: dhcpv6
898 install -D dhcpv6/dhcp6c $(INSTALLDIR)/dhcpv6/usr/sbin/dhcp6c
899 $(STRIP) $(INSTALLDIR)/dhcpv6/usr/sbin/dhcp6c
901 dhcpv6-clean:
902 -@$(MAKE) -C dhcpv6 clean
903 @rm -f dhcpv6/Makefile dhcpv6/stamp-h1
906 p910nd:
907 samba:
908 samba3:
910 nvram: shared
912 prebuilt: shared
914 vlan:
915 @$(SEP)
916 @$(MAKE) -C vlan CROSS=$(CROSS_COMPILE) # STRIPTOOL=$(STRIP)
918 vlan-install:
919 $(MAKE) -C vlan CROSS=$(CROSS_COMPILE) INSTALLDIR=$(INSTALLDIR) install # STRIPTOOL=$(STRIP)
920 $(STRIP) $(INSTALLDIR)/vlan/usr/sbin/vconfig
923 pptp-client-install:
924 install -D pptp-client/pptp $(INSTALLDIR)/pptp-client/usr/sbin/pptp
925 $(STRIP) $(INSTALLDIR)/pptp-client/usr/sbin/pptp
928 accel-pptp: pppd accel-pptp/Makefile
929 @$(MAKE) -C accel-pptp
931 accel-pptp/Makefile: accel-pptp/Makefile.in $(LINUXDIR)/include/linux/version.h
932 cd accel-pptp && CFLAGS="-g -O2 $(EXTRACFLAGS)" \
933 $(CONFIGURE) --prefix=/usr KDIR=$(LINUXDIR) PPPDIR=$(TOP)/pppd
935 accel-pptp-clean:
936 -@$(MAKE) -C accel-pptp clean
937 @rm -f accel-pptp/Makefile
939 accel-pptp-install: accel-pptp
940 install -D accel-pptp/src/.libs/pptp.so $(INSTALLDIR)/accel-pptp/usr/lib/pppd/pptp.so
941 $(STRIP) $(INSTALLDIR)/accel-pptp/usr/lib/pppd/pptp.so
944 pppd/Makefile: pppd/linux/Makefile.top
945 cd pppd && $(CONFIGURE) --prefix=/usr --sysconfdir=/tmp
947 pppd: pppd/Makefile
948 @$(SEP)
949 @$(MAKE) -C pppd MFLAGS='$(if $(TCONFIG_IPV6),HAVE_INET6=y,) EXTRACFLAGS="$(EXTRACFLAGS)"'
951 pppd-clean:
952 -$(MAKE) -C pppd clean
953 @rm -f pppd/Makefile
955 pppd-install: pppd
956 install -D pppd/pppd/pppd $(INSTALLDIR)/pppd/usr/sbin/pppd
957 $(STRIP) $(INSTALLDIR)/pppd/usr/sbin/pppd
958 install -D pppd/chat/chat $(INSTALLDIR)/pppd/usr/sbin/chat
959 $(STRIP) $(INSTALLDIR)/pppd/usr/sbin/chat
960 ifeq ($(TCONFIG_L2TP),y)
961 install -D pppd/pppd/plugins/pppol2tp/pppol2tp.so $(INSTALLDIR)/pppd/usr/lib/pppd/pppol2tp.so
962 $(STRIP) $(INSTALLDIR)/pppd/usr/lib/pppd/*.so
963 endif
965 # ipupdate-install:
966 # install -D ipupdate/ez-ipupdate $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
967 # $(STRIP) $(INSTALLDIR)/ipupdate/usr/sbin/ez-ipupdate
969 zebra/stamp-h1:
970 @cd zebra && rm -f config.cache && \
971 CC=$(CC) AR=$(AR) RANLIB=$(RANLIB) LD=$(LD) \
972 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
973 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
974 $(CONFIGURE) --sysconfdir=/etc \
975 --enable-netlink $(if $(TCONFIG_IPV6),--enable-ipv6,--disable-ipv6) --disable-ripngd --disable-ospfd --disable-doc \
976 --disable-ospf6d --disable-bgpd --disable-bgpd-announce
977 @touch zebra/stamp-h1
979 zebra: zebra/stamp-h1
980 @$(MAKE) -C zebra CC=$(CC) AR=$(AR) RANLIB=$(RANLIB) LD=$(LD)
982 zebra-clean:
983 -@$(MAKE) -C zebra clean
984 @rm -f zebra/stamp-h1
986 zebra-install: zebra
987 install -D zebra/zebra/zebra $(INSTALLDIR)/zebra/usr/sbin/zebra
988 install -D zebra/ripd/ripd $(INSTALLDIR)/zebra/usr/sbin/ripd
989 install -D zebra/lib/libzebra.so $(INSTALLDIR)/zebra/usr/lib/libzebra.so
990 $(STRIP) $(INSTALLDIR)/zebra/usr/sbin/zebra
991 $(STRIP) $(INSTALLDIR)/zebra/usr/sbin/ripd
992 $(STRIP) $(INSTALLDIR)/zebra/usr/lib/libzebra.so
995 rp-l2tp-install:
996 install -d $(INSTALLDIR)/rp-l2tp/usr/lib/l2tp
997 install rp-l2tp/handlers/*.so $(INSTALLDIR)/rp-l2tp/usr/lib/l2tp
998 $(STRIP) $(INSTALLDIR)/rp-l2tp/usr/lib/l2tp/*.so
999 install -D rp-l2tp/handlers/l2tp-control $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tp-control
1000 $(STRIP) $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tp-control
1001 install -D rp-l2tp/l2tpd $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tpd
1002 $(STRIP) $(INSTALLDIR)/rp-l2tp/usr/sbin/l2tpd
1004 xl2tpd: pppd
1005 CFLAGS="-g $(EXTRACFLAGS)" $(MAKE) -C $@ PREFIX=/usr xl2tpd
1007 xl2tpd-install: xl2tpd
1008 install -D xl2tpd/xl2tpd $(INSTALLDIR)/xl2tpd/usr/sbin/xl2tpd
1009 $(STRIP) $(INSTALLDIR)/xl2tpd/usr/sbin/xl2tpd
1012 bpalogin-install:
1013 install -D bpalogin/bpalogin $(INSTALLDIR)/bpalogin/usr/sbin/bpalogin
1014 $(STRIP) $(INSTALLDIR)/bpalogin/usr/sbin/bpalogin
1017 # libnet:
1018 # @$(SEP)
1019 # @-mkdir -p libnet/lib
1020 # @$(MAKE) -C libnet CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1022 # libpcap:
1023 # @$(SEP)
1024 # @$(MAKE) -C libpcap CC=$(CC) AR=$(AR) RANLIB=$(RANLIB)
1026 libbcm:
1027 @[ ! -f libbcm/Makefile ] || $(MAKE) -C libbcm
1029 libbcm-install:
1030 install -D libbcm/libbcm.so $(INSTALLDIR)/libbcm/usr/lib/libbcm.so
1031 $(STRIP) $(INSTALLDIR)/libbcm/usr/lib/libbcm.so
1034 iproute2:
1035 @$(SEP)
1036 @$(MAKE) -C $@ KERNEL_INCLUDE=$(LINUXDIR)/include EXTRACFLAGS="$(EXTRACFLAGS) $(if $(TCONFIG_IPV6),-DUSE_IPV6,-DNO_IPV6)"
1038 iproute2-install: iproute2
1039 install -D iproute2/tc/tc $(INSTALLDIR)/iproute2/usr/sbin/tc
1040 $(STRIP) $(INSTALLDIR)/iproute2/usr/sbin/tc
1041 install -D iproute2/ip/ip $(INSTALLDIR)/iproute2/usr/sbin/ip
1042 $(STRIP) $(INSTALLDIR)/iproute2/usr/sbin/ip
1045 ntpc: nvram shared
1048 dropbear: dropbear/config.h
1049 @$(SEP)
1050 @$(MAKE) -C dropbear PROGRAMS="dropbear dbclient dropbearkey scp" MULTI=1
1052 dropbear-install:
1053 install -D dropbear/dropbearmulti $(INSTALLDIR)/dropbear/usr/bin/dropbearmulti
1054 $(STRIP) $(INSTALLDIR)/dropbear/usr/bin/dropbearmulti
1055 cd $(INSTALLDIR)/dropbear/usr/bin && \
1056 ln -sf dropbearmulti dropbear && \
1057 ln -sf dropbearmulti dropbearconvert && \
1058 ln -sf dropbearmulti dropbearkey && \
1059 ln -sf dropbearmulti dbclient && \
1060 ln -sf dropbearmulti ssh && \
1061 ln -sf dropbearmulti scp
1063 dropbear-clean:
1064 -@$(MAKE) -C dropbear clean
1065 @rm -f dropbear/config.h
1067 dropbear/config.h:
1068 cd dropbear && \
1069 CFLAGS="-Os -Wall $(EXTRACFLAGS) -DARGTYPE=3 -ffunction-sections -fdata-sections" \
1070 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1071 ac_cv_func_logout=no ac_cv_func_logwtmp=no \
1072 $(CONFIGURE) --disable-zlib --enable-syslog --disable-lastlog --disable-utmp \
1073 --disable-utmpx --disable-wtmp --disable-wtmpx --disable-pututline \
1074 --disable-pututxline --disable-loginfunc --disable-pam --enable-openpty --enable-bundled-libtom
1075 @$(MAKE) -C dropbear clean
1077 # Media libraries
1079 sqlite/stamp-h1:
1080 cd sqlite && \
1081 CC=$(CC) CFLAGS="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1082 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1083 $(CONFIGURE) --prefix=/usr --enable-shared --enable-static \
1084 --disable-readline --disable-dynamic-extensions --enable-threadsafe
1085 touch sqlite/stamp-h1
1087 sqlite: sqlite/stamp-h1
1088 @$(MAKE) -C sqlite all
1090 sqlite-clean:
1091 -@$(MAKE) -C sqlite clean
1092 @rm -f sqlite/stamp-h1
1094 sqlite-install: sqlite
1095 @$(SEP)
1096 ifneq ($(MEDIA_SERVER_STATIC),y)
1097 install -D sqlite/.libs/libsqlite3.so.0 $(INSTALLDIR)/sqlite/usr/lib/libsqlite3.so.0
1098 $(STRIP) $(INSTALLDIR)/sqlite/usr/lib/libsqlite3.so.0
1099 endif
1101 FFMPEG_FILTER_CONFIG= $(foreach c, $(2), --$(1)="$(c)")
1103 FFMPEG_DECODERS:=aac ac3 atrac3 flac h264 jpegls mp3 mpeg1video mpeg2video mpeg4 mpeg4aac mpegvideo png wmav1 wmav2
1104 FFMPEG_CONFIGURE_DECODERS:=$(call FFMPEG_FILTER_CONFIG,enable-decoder,$(FFMPEG_DECODERS))
1106 FFMPEG_PARSERS:=aac ac3 h264 mpeg4video mpegaudio mpegvideo
1107 FFMPEG_CONFIGURE_PARSERS:=$(call FFMPEG_FILTER_CONFIG,enable-parser,$(FFMPEG_PARSERS))
1109 FFMPEG_PROTOCOLS:=file
1110 FFMPEG_CONFIGURE_PROTOCOLS:=$(call FFMPEG_FILTER_CONFIG,enable-protocol,$(FFMPEG_PROTOCOLS))
1112 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
1113 FFMPEG_CONFIGURE_DEMUXERS:=$(call FFMPEG_FILTER_CONFIG,disable-demuxer,$(FFMPEG_DISABLED_DEMUXERS))
1115 ffmpeg/stamp-h1: zlib
1116 cd ffmpeg && symver_asm_label=no symver_gnu_asm=no symver=no CC=$(CC) \
1117 ./configure --enable-cross-compile --arch=mips --target_os=linux \
1118 --cross-prefix=$(CROSS_COMPILE) --enable-shared --enable-gpl --disable-doc \
1119 --enable-pthreads --enable-small --disable-encoders --disable-filters \
1120 --disable-muxers --disable-devices --disable-ffmpeg --disable-ffplay \
1121 --disable-ffserver --disable-ffprobe --disable-avdevice --disable-swscale \
1122 --disable-hwaccels --disable-network --disable-bsfs --disable-mpegaudio-hp \
1123 --enable-demuxers $(FFMPEG_CONFIGURE_DEMUXERS) \
1124 --disable-decoders $(FFMPEG_CONFIGURE_DECODERS) \
1125 --disable-parsers $(FFMPEG_CONFIGURE_PARSERS) \
1126 --disable-protocols $(FFMPEG_CONFIGURE_PROTOCOLS) \
1127 --extra-cflags="-Os $(EXTRACFLAGS) -ffunction-sections -fdata-sections -fPIC -I$(TOP)/zlib" \
1128 --extra-ldflags="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1129 --extra-libs="-L$(TOP)/zlib -lz" \
1130 --enable-zlib --disable-debug --prefix=''
1131 touch ffmpeg/stamp-h1
1133 ffmpeg: ffmpeg/stamp-h1 zlib
1134 @$(MAKE) -C ffmpeg all
1136 ffmpeg-clean:
1137 -@$(MAKE) -C ffmpeg clean
1138 @rm -f ffmpeg/stamp-h1 ffmpeg/config.h ffmpeg/config.mak
1140 ffmpeg-install: ffmpeg
1141 @$(SEP)
1142 ifneq ($(MEDIA_SERVER_STATIC),y)
1143 install -D ffmpeg/libavformat/libavformat.so.52 $(INSTALLDIR)/ffmpeg/usr/lib/libavformat.so.52
1144 install -D ffmpeg/libavcodec/libavcodec.so.52 $(INSTALLDIR)/ffmpeg/usr/lib/libavcodec.so.52
1145 install -D ffmpeg/libavutil/libavutil.so.50 $(INSTALLDIR)/ffmpeg/usr/lib/libavutil.so.50
1146 $(STRIP) $(INSTALLDIR)/ffmpeg/usr/lib/libavformat.so.52
1147 $(STRIP) $(INSTALLDIR)/ffmpeg/usr/lib/libavcodec.so.52
1148 $(STRIP) $(INSTALLDIR)/ffmpeg/usr/lib/libavutil.so.50
1149 endif
1151 libogg/stamp-h1:
1152 cd libogg && \
1153 CFLAGS="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1154 LDFLAGS="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1155 $(CONFIGURE) --enable-shared --enable-static --prefix=''
1156 touch libogg/stamp-h1
1158 libogg: libogg/stamp-h1
1159 @$(MAKE) -C libogg all
1161 libogg-clean:
1162 -@$(MAKE) -C libogg clean
1163 @rm -f libogg/stamp-h1
1165 libogg-install: libogg
1166 @$(SEP)
1167 ifneq ($(MEDIA_SERVER_STATIC),y)
1168 install -D libogg/src/.libs/libogg.so.0 $(INSTALLDIR)/libogg/usr/lib/libogg.so.0
1169 $(STRIP) $(INSTALLDIR)/libogg/usr/lib/libogg.so.0
1170 endif
1172 flac/stamp-h1: libogg
1173 cd flac && \
1174 CFLAGS="-Os $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1175 CPPFLAGS="-I$(TOP)/libogg/include" \
1176 LDFLAGS="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1177 $(CONFIGURE) --enable-shared --enable-static --prefix='' --disable-rpath \
1178 --disable-doxygen-docs --disable-xmms-plugin --disable-cpplibs \
1179 --without-libiconv-prefix --disable-altivec --disable-3dnow --disable-sse
1180 touch flac/stamp-h1
1182 flac: flac/stamp-h1 libogg
1183 @$(MAKE) -C flac/src/libFLAC all
1185 flac-clean:
1186 -@$(MAKE) -C flac clean
1187 @rm -f flac/stamp-h1
1189 flac-install: flac
1190 @$(SEP)
1191 ifneq ($(MEDIA_SERVER_STATIC),y)
1192 install -D flac/src/libFLAC/.libs/libFLAC.so.8 $(INSTALLDIR)/flac/usr/lib/libFLAC.so.8
1193 $(STRIP) $(INSTALLDIR)/flac/usr/lib/libFLAC.so.8
1194 endif
1196 jpeg/stamp-h1:
1197 cd jpeg && \
1198 CFLAGS="-Os $(EXTRACFLAGS) -fPIC" CC=$(CC) AR2="touch" $(CONFIGURE) --enable-shared --enable-static --prefix=''
1199 touch jpeg/stamp-h1
1201 jpeg: jpeg/stamp-h1
1202 @$(MAKE) -C jpeg LIBTOOL="" O=o A=a CC=$(CC) AR2="touch" libjpeg.a libjpeg.so
1204 jpeg-clean:
1205 -@$(MAKE) -C jpeg clean
1206 @rm -f jpeg/stamp-h1 jpeg/Makefile
1208 jpeg-install: jpeg
1209 @$(SEP)
1210 ifneq ($(MEDIA_SERVER_STATIC),y)
1211 install -D jpeg/libjpeg.so $(INSTALLDIR)/jpeg/usr/lib/libjpeg.so
1212 $(STRIP) $(INSTALLDIR)/jpeg/usr/lib/libjpeg.so
1213 endif
1215 libexif/stamp-h1:
1216 cd libexif && CFLAGS="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1217 LDFLAGS="-fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1218 $(CONFIGURE) --enable-shared --enable-static --prefix='' \
1219 --disable-docs --disable-rpath --disable-nls --without-libiconv-prefix --without-libintl-prefix
1220 touch libexif/stamp-h1
1222 libexif: libexif/stamp-h1
1223 @$(MAKE) -C libexif all
1225 libexif-clean:
1226 -@$(MAKE) -C libexif clean
1227 @rm -f libexif/stamp-h1
1229 libexif-install: libexif
1230 @$(SEP)
1231 ifneq ($(MEDIA_SERVER_STATIC),y)
1232 install -D libexif/libexif/.libs/libexif.so.12 $(INSTALLDIR)/libexif/usr/lib/libexif.so.12
1233 $(STRIP) $(INSTALLDIR)/libexif/usr/lib/libexif.so.12
1234 endif
1236 zlib/stamp-h1:
1237 cd zlib && \
1238 CC=$(CC) AR="ar rc" RANLIB=$(RANLIB) LD=$(LD) CFLAGS="-Os -Wall $(EXTRACFLAGS)" \
1239 ./configure --shared --prefix=''
1240 touch zlib/stamp-h1
1242 zlib: zlib/stamp-h1
1243 @$(MAKE) -C zlib CC=$(CC) AR="ar rc" RANLIB=$(RANLIB) LD=$(LD) all
1245 zlib-clean:
1246 -@$(MAKE) -C zlib clean
1247 @rm -f zlib/stamp-h1 zlib/Makefile zlib/zconf.h zlib/zlib.pc
1249 zlib-install: zlib
1250 @$(SEP)
1251 ifneq ($(MEDIA_SERVER_STATIC),y)
1252 install -d $(INSTALLDIR)/zlib/usr/lib
1253 install -D zlib/libz.so.1 $(INSTALLDIR)/zlib/usr/lib/
1254 $(STRIP) $(INSTALLDIR)/zlib/usr/lib/libz.so.1
1255 endif
1256 ifeq ($(TCONFIG_BT),y)
1257 install -d $(INSTALLDIR)/zlib/usr/lib
1258 install -D zlib/libz.so.1 $(INSTALLDIR)/zlib/usr/lib/
1259 $(STRIP) $(INSTALLDIR)/zlib/usr/lib/libz.so.1
1260 endif
1262 libid3tag/stamp-h1: zlib
1263 cd libid3tag && \
1264 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" CPPFLAGS="-I$(TOP)/zlib" \
1265 LDFLAGS="-L$(TOP)/zlib -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1266 $(CONFIGURE) --enable-shared --enable-static --prefix='' \
1267 --disable-debugging --disable-profiling
1268 touch libid3tag/stamp-h1
1270 libid3tag: libid3tag/stamp-h1 zlib
1271 @$(MAKE) -C libid3tag all
1273 libid3tag-clean:
1274 -@$(MAKE) -C libid3tag clean
1275 @rm -f libid3tag/stamp-h1
1277 libid3tag-install: libid3tag
1278 @$(SEP)
1279 ifneq ($(MEDIA_SERVER_STATIC),y)
1280 install -D libid3tag/.libs/libid3tag.so.0 $(INSTALLDIR)/libid3tag/usr/lib/libid3tag.so.0
1281 $(STRIP) $(INSTALLDIR)/libid3tag/usr/lib/libid3tag.so.0
1282 endif
1284 libvorbis/stamp-h1: libogg
1285 cd libvorbis && \
1286 CFLAGS="-Os -Wall $(EXTRACFLAGS) -fPIC -ffunction-sections -fdata-sections" \
1287 CPPFLAGS="-I$(TOP)/libogg/include" \
1288 LDFLAGS="-L$(TOP)/libogg/src/.libs -fPIC -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1289 $(CONFIGURE) --enable-shared --enable-static --prefix='' --disable-oggtest \
1290 --with-ogg-includes="$(TOP)/libogg/include" \
1291 --with-ogg-libraries="$(TOP)/libogg/src/.libs"
1292 touch libvorbis/stamp-h1
1294 libvorbis: libvorbis/stamp-h1
1295 @$(MAKE) -C libvorbis/lib all
1297 libvorbis-clean:
1298 -@$(MAKE) -C libvorbis clean
1299 @rm -f libvorbis/stamp-h1
1301 libvorbis-install: libvorbis
1302 @$(SEP)
1303 ifneq ($(MEDIA_SERVER_STATIC),y)
1304 install -D libvorbis/lib/.libs/libvorbis.so.0 $(INSTALLDIR)/libvorbis/usr/lib/libvorbis.so.0
1305 $(STRIP) $(INSTALLDIR)/libvorbis/usr/lib/libvorbis.so.0
1306 endif
1308 minidlna: zlib sqlite ffmpeg libogg flac jpeg libexif libid3tag libvorbis
1309 @$(SEP)
1310 @$(MAKE) -C minidlna CC=$(CC) $(if $(MEDIA_SERVER_STATIC),STATIC=1,) minidlna
1313 igmpproxy/src/Makefile: igmpproxy/src/Makefile.in
1314 cd igmpproxy && CFLAGS="-O2 -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1315 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections" \
1316 $(CONFIGURE) --prefix=/usr
1318 igmpproxy: igmpproxy/src/Makefile
1319 @$(SEP)
1320 @$(MAKE) -C igmpproxy/src
1322 igmpproxy-install: igmpproxy
1323 install -D igmpproxy/src/igmpproxy $(INSTALLDIR)/igmpproxy/usr/sbin/igmpproxy
1324 $(STRIP) $(INSTALLDIR)/igmpproxy/usr/sbin/igmpproxy
1326 igmpproxy-clean:
1327 -$(MAKE) -C igmpproxy/src clean
1328 @rm -f igmpproxy/src/Makefile
1330 udev:
1331 $(MAKE) -C $@ CROSS_COMPILE=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)" \
1332 PROGRAMS=udevtrigger
1334 udev-install: udev
1335 install -d $(INSTALLDIR)
1336 install -d $(TARGETDIR)
1337 $(MAKE) -C udev DESTDIR=$(INSTALLDIR) prefix=/udev install-udevtrigger
1339 hotplug2:
1340 $(MAKE) -C $@ CROSS_COMPILE=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)"
1342 hotplug2-install: hotplug2
1343 $(MAKE) -C hotplug2 install PREFIX=$(INSTALLDIR)/hotplug2 SUBDIRS=""
1344 $(MAKE) -C hotplug2/examples install PREFIX=$(INSTALLDIR)/hotplug2/rom KERNELVER=$(LINUX_KERNEL)
1346 emf:
1347 $(MAKE) -C $(SRCBASE)/emf/emfconf CROSS=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)"
1349 emf-install: emf
1350 $(MAKE) -C $(SRCBASE)/emf/emfconf INSTALLDIR=$(INSTALLDIR) install
1352 igs:
1353 $(MAKE) -C $(SRCBASE)/emf/igsconf CROSS=$(CROSS_COMPILE) EXTRACFLAGS="$(EXTRACFLAGS)"
1355 igs-install: igs
1356 $(MAKE) -C $(SRCBASE)/emf/igsconf INSTALLDIR=$(INSTALLDIR) install
1359 ebtables: dummy
1360 $(MAKE) -C ebtables CC=$(CC) LD=$(LD) \
1361 CFLAGS="-Os $(EXTRACFLAGS) -DEBT_MIN_ALIGN=4 -Wall -Wunused" \
1362 BINDIR="/usr/sbin" LIBDIR="/usr/lib/ebtables" KERNEL_INCLUDES=$(LINUXDIR)/include $(if $(TCONFIG_IPV6),DO_IPV6=1,)
1364 ebtables-install: ebtables
1365 install -D ebtables/ebtables $(INSTALLDIR)/ebtables/usr/sbin/ebtables
1367 @mkdir -p $(TARGETDIR)/rom/etc
1368 @sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < $(TOP)/ebtables/ethertypes > $(TARGETDIR)/rom/etc/ethertypes
1369 chmod 0644 $(TARGETDIR)/rom/etc/ethertypes
1371 install -d $(INSTALLDIR)/ebtables/usr/lib
1372 install -d $(INSTALLDIR)/ebtables/usr/lib/ebtables
1373 install -D ebtables/*.so $(INSTALLDIR)/ebtables/usr/lib/
1374 install -D ebtables/extensions/*.so $(INSTALLDIR)/ebtables/usr/lib/ebtables/
1376 $(STRIP) $(INSTALLDIR)/ebtables/usr/sbin/ebtables
1377 $(STRIP) $(INSTALLDIR)/ebtables/usr/lib/ebtables/*.so
1378 $(STRIP) $(INSTALLDIR)/ebtables/usr/lib/libebt*.so
1380 ebtables-clean:
1381 make -C ebtables clean
1383 #Roadkill
1384 glib:
1385 @$(SEP)
1386 @cd glib && $(CONFIGURE) --prefix=/usr glib_cv_prog_cc_ansi_proto=no glib_cv_has__inline=yes glib_cv_has__inline__=yes glib_cv_hasinline=yes \
1387 glib_cv_sane_realloc=yes glib_cv_va_copy=no glib_cv___va_copy=yes glib_cv_va_val_copy=yes glib_cv_rtldglobal_broken=no \
1388 glib_cv_uscore=no glib_cv_func_pthread_mutex_trylock_posix=yes glib_cv_func_pthread_cond_timedwait_posix=yes glib_cv_sizeof_gmutex=24 \
1389 glib_cv_byte_contents_gmutex="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" glib_cv_sys_pthread_getspecific_posix=yes \
1390 glib_cv_sys_pthread_mutex_trylock_posix=yes glib_cv_sys_pthread_cond_timedwait_posix=yes ac_cv_func_getpwuid_r=yes ac_cv_func_getpwuid_r_posix=yes
1391 @$(MAKE) -C glib
1393 glib-clean:
1394 $(MAKE) -C glib clean
1396 glib-install:
1397 @$(MAKE) -C glib DESTDIR=$(INSTALLDIR)/glib install
1399 #Roadkill
1400 nocat: glib glib-install
1401 @$(SEP)
1402 @cd nocat && \
1403 NC_CONF_PATH="/" \
1404 $(CONFIGURE) --with-firewall=iptables --with-glib-prefix="$(INSTALLDIR)/glib/usr" --localstatedir=/var --sysconfdir=/etc
1405 @$(MAKE) -C nocat
1407 echo *** cleaning up glib staging after compile
1408 rm -rfv $(INSTALLDIR)/glib/usr
1409 echo *** integrate glib to nocat installdir
1410 install -d $(INSTALLDIR)/nocat/usr/lib
1411 install -D glib/.libs/libglib-1.2.so.0.0.10 $(INSTALLDIR)/nocat/usr/lib/libglib-1.2.so.0.0.10
1412 cd $(INSTALLDIR)/nocat/usr/lib && ln -s libglib-1.2.so.0.0.10 libglib-1.2.so.0
1413 $(STRIP) $(INSTALLDIR)/nocat/usr/lib/libglib-1.2.so.0.0.10
1415 nocat-clean:
1416 $(MAKE) -C nocat clean
1418 nocat-install:
1419 install -D nocat/src/splashd $(INSTALLDIR)/nocat/usr/sbin/splashd
1420 $(STRIP) $(INSTALLDIR)/nocat/usr/sbin/splashd
1421 mkdir -p $(INSTALLDIR)/nocat/usr/libexec/nocat
1422 install -D nocat/libexec/iptables/* $(INSTALLDIR)/nocat/usr/libexec/nocat
1424 lzo/stamp-h1:
1425 cd lzo && \
1426 CFLAGS="-Os -Wall $(EXTRACFLAGS)" $(CONFIGURE) --enable-shared --enable-static
1427 touch lzo/stamp-h1
1429 lzo: lzo/stamp-h1
1431 lzo-clean:
1432 -$(MAKE) -C lzo clean
1433 @rm -f lzo/stamp-h1
1435 lzo-install: lzo
1436 install -D lzo/src/.libs/liblzo2.so $(INSTALLDIR)/lzo/usr/lib/liblzo2.so.2
1437 $(STRIP) $(INSTALLDIR)/lzo/usr/lib/liblzo2.so.2
1438 cd $(INSTALLDIR)/lzo/usr/lib && ln -sf liblzo2.so.2 liblzo2.so
1441 openvpn: openvpn/.conf openssl lzo
1443 openvpn/.conf:
1444 cd openvpn && CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1445 LDFLAGS="-L$(TOP)/openssl -L$(TOP)/lzo/src/.libs -ffunction-sections -fdata-sections -Wl,--gc-sections" \
1446 $(CONFIGURE) --prefix= \
1447 --with-lzo-headers="$(TOP)/lzo/include" \
1448 --with-ssl-headers="$(TOP)/openssl/include/" \
1449 --with-iproute-path="/usr/sbin/ip" \
1450 --disable-debug --disable-plugins --enable-management --enable-small \
1451 --disable-selinux --disable-socks --enable-password-save
1452 touch openvpn/.conf
1454 openvpn-clean:
1455 -$(MAKE) -C openvpn clean
1456 @rm -f openvpn/.conf
1458 openvpn-install: openvpn
1459 install -D openvpn/openvpn $(INSTALLDIR)/openvpn/usr/sbin/openvpn
1460 $(STRIP) -s $(INSTALLDIR)/openvpn/usr/sbin/openvpn
1461 chmod 0500 $(INSTALLDIR)/openvpn/usr/sbin/openvpn
1463 #shibby
1464 libcurl/stamp-h1: zlib openssl
1465 cd libcurl && CC=$(CC) STRIP='mipsel-uclibc-strip' \
1466 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1467 CPPFLAGS="-I$(TOP)/zlib" \
1468 LDFLAGS="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1469 $(CONFIGURE) --prefix=/usr --disable-thread --enable-shared --enable-static \
1470 --enable-ares --enable-cookies --enable-crypto-auth --enable-nonblocking \
1471 --enable-file --enable-ftp --enable-http --enable-ipv6 --enable-tftp \
1472 --disable-nls --disable-ares --disable-dict --disable-debug --disable-gopher \
1473 --disable-ldap --disable-manual --disable-telnet --disable-verbose \
1474 --with-random="/dev/urandom" --with-ssl="$(TOP)/openssl" \
1475 --without-gnutls --without-krb4 --without-libidn \
1476 --with-linux-headers=$(LINUXDIR)/include \
1477 OPENSSL_CFLAGS="-I$(TOP)/openssl/include" \
1478 OPENSSL_LIBS="-L$(TOP)/openssl -lcrypto -lssl"
1479 touch libcurl/stamp-h1
1481 libcurl: libcurl/stamp-h1
1482 @$(MAKE) -C libcurl
1484 libcurl-clean:
1485 -@$(MAKE) -C libcurl clean
1486 @rm -f libcurl/stamp-h1 libcurl/Makefile
1488 libcurl-install: libcurl
1489 install -d $(INSTALLDIR)/libcurl/usr/lib
1490 install -D libcurl/lib/.libs/libcurl.so.4.2.0 $(INSTALLDIR)/libcurl/usr/lib/libcurl.so.4.2.0
1491 $(STRIP) -s $(INSTALLDIR)/libcurl/usr/lib/libcurl.so.4.2.0
1492 cd $(INSTALLDIR)/libcurl/usr/lib/ && \
1493 ln -sf libcurl.so.4.2.0 libcurl.so.4 && \
1494 ln -sf libcurl.so.4.2.0 libcurl.so
1496 libevent/stamp-h1:
1497 cd libevent && CC=$(CC) \
1498 CFLAGS="-Os -Wall $(EXTRACFLAGS) -ffunction-sections -fdata-sections" \
1499 LDFLAGS="-ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1500 $(CONFIGURE)
1501 touch libevent/stamp-h1
1503 libevent: libevent/stamp-h1
1504 @$(SEP)
1505 $(MAKE) -C libevent
1507 libevent-clean:
1508 -@$(MAKE) -C libevent clean
1509 @rm -f libevent/stamp-h1 libevent/Makefile
1510 @rm -rf libevent/staged
1512 libevent-install: libevent
1513 install -d $(INSTALLDIR)/libevent/usr/lib
1514 install libevent/.libs/libevent-2.0.so.5.1.0 $(INSTALLDIR)/libevent/usr/lib/libevent-2.0.so.5
1515 $(STRIP) -s $(INSTALLDIR)/libevent/usr/lib/libevent-2.0.so.5
1516 install -d $(TOP)/libevent/staged
1517 $(MAKE) -C libevent DESTDIR=$(TOP)/libevent/staged install
1519 transmission/stamp-h1: openssl libcurl libevent zlib
1520 cd transmission && CC=$(CC) AR=$(AR) LD=$(LD) STRIP='mipsel-uclibc-strip' \
1521 CFLAGS="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
1522 --param large-function-growth=800 --param max-inline-insns-single=3000 \
1523 -ffunction-sections -fdata-sections \
1524 -O2 -O0 -std=gnu99 -ggdb3 -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef \
1525 -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute \
1526 -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal \
1527 -Wextra -Wdeclaration-after-statement -Winit-self" \
1528 LDFLAGS="-L$(TOP)/zlib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1529 CPPFLAGS="-I$(TOP)/zlib -O3 -DTR_EMBEDDED" \
1530 ac_cv_header_libintl_h=no \
1531 $(CONFIGURE) --target=mipsel-linux --prefix=/usr --disable-gtk --disable-nls \
1532 --enable-lightweight --enable-largefile \
1533 LIBCURL_CFLAGS="-I$(TOP)/libcurl/include" \
1534 LIBCURL_LIBS="-L$(TOP)/libcurl/lib/.libs/ -lcurl" \
1535 LIBEVENT_CFLAGS="-I$(TOP)/libevent/include" \
1536 LIBEVENT_LIBS="-L$(TOP)/libevent/.libs -levent" \
1537 OPENSSL_CFLAGS="-I$(TOP)/openssl/include" \
1538 OPENSSL_LIBS="-L$(TOP)/openssl -lcrypto -lssl"
1539 touch transmission/stamp-h1
1541 transmission: transmission/stamp-h1
1542 @$(SEP)
1543 $(MAKE) -C transmission
1545 transmission-clean:
1546 -@$(MAKE) -C transmission clean
1547 @rm -f transmission/stamp-h1 transmission/Makefile
1549 transmission-install: transmission
1550 $(MAKE) -C transmission DESTDIR=$(INSTALLDIR)/transmission install-strip
1551 @rm -rf $(INSTALLDIR)/transmission/usr/share/man
1552 @rm -rf $(INSTALLDIR)/transmission/usr/bin/transmission-cli
1553 @rm -rf $(INSTALLDIR)/transmission/usr/bin/transmission-show
1554 @rm -rf $(INSTALLDIR)/transmission/usr/bin/transmission-edit
1555 $(STRIP) -s $(INSTALLDIR)/transmission/usr/bin/transmission-daemon
1556 $(STRIP) -s $(INSTALLDIR)/transmission/usr/bin/transmission-remote
1557 $(STRIP) -s $(INSTALLDIR)/transmission/usr/bin/transmission-create
1559 btgui:
1560 @$(SEP)
1562 btgui-install: btgui
1563 install -d $(INSTALLDIR)/btgui/usr/bin
1564 install -D transmission/btcheck $(INSTALLDIR)/btgui/usr/bin/btcheck
1565 install -D transmission/btqueue $(INSTALLDIR)/btgui/usr/bin/btqueue
1567 libnfsidmap/stamp-h1:
1568 cd libnfsidmap && \
1569 CFLAGS="-Os -Wall $(EXTRACFLAGS)" \
1570 ac_cv_func_malloc_0_nonnull=yes \
1571 ac_cv_func_realloc_0_nonnull=yes \
1572 $(CONFIGURE) --prefix=/usr --enable-shared --enable-static
1573 touch libnfsidmap/stamp-h1
1575 libnfsidmap: libnfsidmap/stamp-h1
1576 @$(SEP)
1577 $(MAKE) -C libnfsidmap
1579 libnfsidmap-clean:
1580 -$(MAKE) -C libnfsidmap clean
1581 @rm -f libnfsidmap/stamp-h1
1582 @rm -rf libnfsidmap/staged
1584 libnfsidmap-install: libnfsidmap
1585 install -d $(TOP)/libnfsidmap/staged
1586 $(MAKE) -C libnfsidmap DESTDIR=$(TOP)/libnfsidmap/staged install
1588 portmap/stamp-h1:
1589 cd portmap \
1590 CFLAGS="-Os -Wall $(EXTRACFLAGS)" \
1591 $(MAKE) -C portmap CC=$(CC) AR=$(AR) LD=$(LD) RANLIB=$(RANLIB) RPCUSER="nobody"
1592 touch portmap/stamp-h1
1594 portmap: portmap/stamp-h1
1595 @$(SEP)
1596 $(MAKE) -C portmap
1598 portmap-clean:
1599 -$(MAKE) -C portmap clean
1600 @rm -f portmap/stamp-h1
1602 portmap-install: portmap
1603 install -d $(INSTALLDIR)/portmap/usr/sbin
1604 install -D portmap/portmap $(INSTALLDIR)/portmap/usr/sbin/portmap
1605 $(STRIP) -s $(INSTALLDIR)/portmap/usr/sbin/portmap
1607 e2fsprogs/stamp-h1:
1608 cd e2fsprogs && \
1609 CFLAGS="-Os -Wall $(EXTRACFLAGS)" $(CONFIGURE) --enable-shared --enable-static
1610 touch e2fsprogs/stamp-h1
1612 e2fsprogs: e2fsprogs/stamp-h1
1614 e2fsprogs-clean:
1615 -$(MAKE) -C e2fsprogs clean
1616 @rm -f e2fsprogs/stamp-h1
1618 e2fsprogs-install: e2fsprogs
1620 nfs-utils/stamp-h1: libevent-install e2fsprogs portmap libnfsidmap-install
1621 cd nfs-utils && STRIP='mipsel-uclibc-strip' \
1622 CFLAGS="-Os -Wall -fno-delete-null-pointer-checks -funit-at-a-time \
1623 -I$(TOP)/libevent/staged/usr/local/include -I$(TOP)/e2fsprogs/lib \
1624 -I$(TOP)/libnfsidmap/staged/usr/include -ffunction-sections -fdata-sections" \
1625 LDFLAGS="-L$(TOP)/libevent/staged/usr/local/lib -L$(TOP)/e2fsprogs/lib \
1626 -L$(TOP)/libnfsidmap/staged/usr/lib -ffunction-sections -fdata-sections -Wl,--gc-sections -fPIC" \
1627 ac_cv_func_malloc_0_nonnull=yes \
1628 ac_cv_func_realloc_0_nonnull=yes \
1629 $(CONFIGURE) --disable-gss --without-tcp-wrappers --enable-static --enable-shared \
1630 --enable-nfsv4 --enable-nfsv3
1631 touch nfs-utils/stamp-h1
1633 nfs-utils: nfs-utils/stamp-h1
1635 nfs-utils-clean:
1636 -$(MAKE) -C nfs-utils clean
1637 @rm -f nfs-utils/stamp-h1
1639 nfs-utils-install: nfs-utils
1640 install -d $(INSTALLDIR)/nfs-utils/usr/sbin
1641 install -D nfs-utils/utils/mount/mount.nfs $(INSTALLDIR)/nfs-utils/usr/sbin/mount.nfs
1642 install -D nfs-utils/utils/nfsd/nfsd $(INSTALLDIR)/nfs-utils/usr/sbin/nfsd
1643 install -D nfs-utils/utils/showmount/showmount $(INSTALLDIR)/nfs-utils/usr/sbin/showmount
1644 install -D nfs-utils/utils/exportfs/exportfs $(INSTALLDIR)/nfs-utils/usr/sbin/exportfs
1645 install -D nfs-utils/utils/statd/statd $(INSTALLDIR)/nfs-utils/usr/sbin/statd
1646 install -D nfs-utils/utils/mountd/mountd $(INSTALLDIR)/nfs-utils/usr/sbin/mountd
1647 install -D nfs-utils/nfs.rc $(INSTALLDIR)/nfs-utils/usr/sbin/nfs.rc
1648 $(STRIP) -s $(INSTALLDIR)/nfs-utils/usr/sbin/mount.nfs
1649 $(STRIP) -s $(INSTALLDIR)/nfs-utils/usr/sbin/nfsd
1650 $(STRIP) -s $(INSTALLDIR)/nfs-utils/usr/sbin/showmount
1651 $(STRIP) -s $(INSTALLDIR)/nfs-utils/usr/sbin/exportfs
1652 $(STRIP) -s $(INSTALLDIR)/nfs-utils/usr/sbin/statd
1653 $(STRIP) -s $(INSTALLDIR)/nfs-utils/usr/sbin/mountd
1655 sd-idle/stamp-h1:
1656 cd sd-idle \
1657 CFLAGS="-Os -Wall --host=mipsel-linux --target=mipsel-linux $(EXTRACFLAGS)" \
1658 $(MAKE) -C sd-idle
1659 chmod 0755 sd-idle/sd-idle
1660 touch sd-idle/stamp-h1
1662 sd-idle-clean:
1663 -$(MAKE) -C sd-idle clean
1664 @rm -f sd-idle/stamp-h1
1666 sd-idle-install: sd-idle/stamp-h1
1667 install -d $(INSTALLDIR)/sd-idle/usr/bin
1668 install -D sd-idle/sd-idle $(INSTALLDIR)/sd-idle/usr/bin/sd-idle
1669 $(STRIP) -s $(INSTALLDIR)/sd-idle/usr/bin/sd-idle
1672 # Generic rules
1676 @[ ! -d $* ] || ( $(SEP); $(MAKE) -C $* )
1679 %-clean:
1680 @-[ ! -d $* ] || $(MAKE) -C $* clean
1682 %-distclean:
1683 @-[ ! -d $* ] || $(MAKE) -C $* distclean
1685 %-install: %
1686 @[ ! -d $* ] || $(MAKE) -C $* install INSTALLDIR=$(INSTALLDIR)/$*
1688 %-build:
1689 $(MAKE) $*-clean $*
1691 $(obj-y) $(obj-n) $(obj-clean) $(obj-install): dummy
1693 .PHONY: all clean distclean mrproper install package
1694 .PHONY: conf mconf oldconf kconf kmconf config menuconfig oldconfig
1695 .PHONY: dummy libnet libpcap