OSDN Git Service

Always build and install ldconfig
[uclinux-h8/uClibc.git] / Makefile
1 # Makefile for uClibc
2 #
3 # Copyright (C) 2000-2003 Erik Andersen <andersen@uclibc.org>
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Library General Public
7 # License as published by the Free Software Foundation; either
8 # version 2 of the License, or (at your option) any later
9 # version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Library General Public License for more details.
15 #
16 # You should have received a copy of the GNU Library General
17 # Public License along with this program; if not, write to the
18 # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 # Boston, MA 02111-1307 USA
20
21
22 #--------------------------------------------------------------
23 # You shouldn't need to mess with anything beyond this point...
24 #--------------------------------------------------------------
25 noconfig_targets := menuconfig config oldconfig randconfig \
26         defconfig allyesconfig allnoconfig clean distclean \
27         release tags TAGS
28 TOPDIR=./
29 include Rules.mak
30
31 DIRS = extra ldso libc libcrypt libresolv libnsl libutil libm libpthread
32 ifeq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
33         DIRS += libintl
34 endif
35
36 ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
37
38 all: headers pregen subdirs shared utils finished
39
40 # In this section, we need .config
41 -include .config.cmd
42
43 .PHONY: $(SHARED_TARGET)
44 shared: $(SHARED_TARGET)
45 ifeq ($(strip $(HAVE_SHARED)),y)
46         @$(MAKE) -C libc shared
47         @$(MAKE) -C ldso shared
48         @$(MAKE) -C libcrypt shared
49         @$(MAKE) -C libresolv shared
50         @$(MAKE) -C libnsl shared
51         @$(MAKE) -C libutil shared
52         @$(MAKE) -C libm shared
53         @$(MAKE) -C libpthread shared
54 ifeq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
55         @$(MAKE) -C libintl shared
56 endif
57 else
58 ifeq ($(SHARED_TARGET),)
59         @echo
60         @echo Not building shared libraries...
61         @echo
62 endif
63 endif
64
65 ifneq ($(SHARED_TARGET),)
66
67 lib/main.o: $(ROOTDIR)/lib/libc/main.c
68         $(CC) $(CFLAGS) $(ARCH_CFLAGS) -c -o $@ $(ROOTDIR)/lib/libc/main.c
69
70 bogus $(SHARED_TARGET): lib/libc.a lib/main.o Makefile
71         make -C $(ROOTDIR) relink
72         $(CC) -nostartfiles -o $(SHARED_TARGET) $(ARCH_CFLAGS) -Wl,-elf2flt -nostdlib           \
73                 -Wl,-shared-lib-id,${LIBID}                             \
74                 lib/main.o \
75                 -Wl,--whole-archive,lib/libc.a,-lgcc,--no-whole-archive
76         $(OBJCOPY) -L _GLOBAL_OFFSET_TABLE_ -L main -L __main -L _start \
77                 -L __uClibc_main -L __uClibc_start_main -L lib_main \
78                 -L _exit_dummy_ref              \
79                 -L __do_global_dtors -L __do_global_ctors               \
80                 -L __CTOR_LIST__ -L __DTOR_LIST__                       \
81                 -L _current_shared_library_a5_offset_                   \
82                 $(SHARED_TARGET).gdb
83         ln -sf $(SHARED_TARGET).gdb .
84 endif
85
86 finished: shared
87         @echo
88         @echo Finally finished compiling...
89         @echo
90
91 #
92 # Target for uClinux distro
93 #
94 .PHONY: romfs
95 romfs:
96         @if [ "$(CONFIG_BINFMT_SHARED_FLAT)" = "y" ]; then \
97                 [ -e $(ROMFSDIR)/lib ] || mkdir -p $(ROMFSDIR)/lib; \
98                 $(ROMFSINST) $(SHARED_TARGET) /lib/lib$(LIBID).so; \
99         fi
100 ifeq ($(strip $(HAVE_SHARED)),y)
101         install -d $(ROMFSDIR)/lib
102         install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
103                 $(ROMFSDIR)/lib
104         cp -fa lib/*.so.* $(ROMFSDIR)/lib/.
105         @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
106             set -x -e; \
107             install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
108                         $(ROMFSDIR)/lib; \
109                 $(ROMFSINST) -s \
110                         /lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
111                         /lib/ld-linux.so.2; \
112         fi;
113 endif
114
115 include/bits/uClibc_config.h: .config
116         @if [ ! -x ./extra/config/conf ] ; then \
117             make -C extra/config conf; \
118         fi;
119         rm -rf include/bits
120         mkdir -p include/bits
121         @./extra/config/conf -o extra/Configs/Config.$(TARGET_ARCH)
122
123 headers: include/bits/uClibc_config.h
124 ifeq ($(strip $(UCLIBC_HAS_MMU)),y)
125         @./extra/scripts/fix_includes.sh -k $(KERNEL_SOURCE) -t $(TARGET_ARCH)
126 else
127         @./extra/scripts/fix_includes.sh -k $(KERNEL_SOURCE) -t $(TARGET_ARCH) -n
128 endif
129         @if [ "$(TARGET_ARCH)" = "mipsel" ]; then \
130             (cd libc/sysdeps/linux; \
131             ln -fs mips mipsel); \
132             (cd ldso/ldso; \
133             ln -fs mips mipsel); \
134             (cd libpthread/linuxthreads/sysdeps; \
135             ln -fs mips mipsel); \
136         fi;
137         @cd include/bits; \
138         set -e; \
139         for i in `ls ../../libc/sysdeps/linux/common/bits/*.h` ; do \
140                 ln -fs $$i .; \
141         done; \
142         if [ -d ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits ] ; then \
143                 for i in `ls ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits/*.h` ; do \
144                         ln -fs $$i .; \
145                 done; \
146         fi
147         @cd include/sys; \
148         set -e; \
149         for i in `ls ../../libc/sysdeps/linux/common/sys/*.h` ; do \
150                 ln -fs $$i .; \
151         done; \
152         if [ -d ../../libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \
153                 for i in `ls ../../libc/sysdeps/linux/$(TARGET_ARCH)/sys/*.h` ; do \
154                         ln -fs $$i .; \
155                 done; \
156         fi
157         @cd $(TOPDIR); \
158         set -x -e; \
159         TOPDIR=. CC="$(CC)" /bin/sh extra/scripts/gen_bits_syscall_h.sh > include/bits/sysnum.h.new; \
160         if cmp include/bits/sysnum.h include/bits/sysnum.h.new >/dev/null 2>&1; then \
161                 $(RM) include/bits/sysnum.h.new; \
162         else \
163                 mv -f include/bits/sysnum.h.new include/bits/sysnum.h; \
164         fi
165         $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) headers
166
167 # Command used to download source code
168 WGET:=wget --passive-ftp
169
170 pregen: headers
171 ifeq ($(strip $(UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA)),y)
172         (cd extra/locale; \
173         $(WGET) http://www.uclibc.org/downloads/uClibc-locale-030818.tgz);
174 endif
175 ifeq ($(strip $(UCLIBC_PREGENERATED_LOCALE_DATA)),y)
176         (cd extra/locale; zcat uClibc-locale-030818.tgz | tar -xvf -)
177         make -C extra/locale pregen
178 endif
179
180
181 subdirs: $(patsubst %, _dir_%, $(DIRS))
182
183 $(patsubst %, _dir_%, $(DIRS)) : dummy
184         $(MAKE) -C $(patsubst _dir_%, %, $@)
185
186 tags:
187         ctags -R
188
189 install: install_dev install_runtime install_toolchain install_utils finished2
190
191
192 # Installs header files and development library links.
193 install_dev:
194         install -d $(PREFIX)$(DEVEL_PREFIX)/lib
195         install -d $(PREFIX)$(DEVEL_PREFIX)/usr/lib
196         install -d $(PREFIX)$(DEVEL_PREFIX)/include
197         -install -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)/lib/
198         tar -chf - include | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX);
199 ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
200         # Remove floating point related headers since float support is disabled.
201         rm $(PREFIX)$(DEVEL_PREFIX)/include/complex.h
202         rm $(PREFIX)$(DEVEL_PREFIX)/include/fpu_control.h
203         rm $(PREFIX)$(DEVEL_PREFIX)/include/ieee754.h
204         rm $(PREFIX)$(DEVEL_PREFIX)/include/math.h
205         rm $(PREFIX)$(DEVEL_PREFIX)/include/tgmath.h
206 endif
207 ifneq ($(strip $(UCLIBC_HAS_WCHAR)),y)
208         # Remove wide char headers since wide char support is disabled.
209         rm $(PREFIX)$(DEVEL_PREFIX)/include/wctype.h
210         rm $(PREFIX)$(DEVEL_PREFIX)/include/wchar.h
211 endif
212 ifneq ($(strip $(UCLIBC_HAS_LOCALE)),y)
213         # Remove iconv header since locale support is disabled.
214         rm $(PREFIX)$(DEVEL_PREFIX)/include/iconv.h
215 endif
216 ifneq ($(strip $(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF)),y)
217         # Remove printf header since custom print specifier support is disabled.
218         rm $(PREFIX)$(DEVEL_PREFIX)/include/printf.h
219 endif
220 ifneq ($(strip $(UCLIBC_HAS_XLOCALE)),y)
221         # Remove xlocale header since extended locale support is disabled.
222         rm $(PREFIX)$(DEVEL_PREFIX)/include/xlocale.h
223 endif
224 ifneq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
225         # Remove libintl header since gettext support is disabled.
226         rm $(PREFIX)$(DEVEL_PREFIX)/include/libintl.h
227 endif
228 ifneq ($(strip $(UCLIBC_HAS_REGEX)),y)
229         # Remove regex headers since regex support is disabled.
230         rm $(PREFIX)$(DEVEL_PREFIX)/include/regex.h
231         rm $(PREFIX)$(DEVEL_PREFIX)/include/regexp.h
232 endif
233 ifneq ($(strip $(UCLIBC_HAS_WORDEXP)),y)
234         # Remove wordexp header since wordexp support is disabled.
235         rm $(PREFIX)$(DEVEL_PREFIX)/include/wordexp.h
236 endif
237 ifneq ($(strip $(UCLIBC_HAS_FTW)),y)
238         # Remove ftw header since ftw support is disabled.
239         rm $(PREFIX)$(DEVEL_PREFIX)/include/ftw.h
240 endif
241 ifneq ($(strip $(UCLIBC_HAS_GLOB)),y)
242         # Remove glob header since glob support is disabled.
243         rm $(PREFIX)$(DEVEL_PREFIX)/include/glob.h
244 endif
245 ifneq ($(strip $(UCLIBC_HAS_GNU_GETOPT)),y)
246         # Remove getopt header since gnu getopt support is disabled.
247         rm $(PREFIX)$(DEVEL_PREFIX)/include/getopt.h
248 endif
249         -@for i in `find  $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
250             chmod -f 755 $$i; chmod -f 644 $$i/*.h; \
251         done;
252         -find $(PREFIX)$(DEVEL_PREFIX) -name CVS | xargs rm -rf;
253         -chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$$/\1.\2/'` $(PREFIX)$(DEVEL_PREFIX)
254 ifeq ($(strip $(HAVE_SHARED)),y)
255         -install -m 644 lib/*.so $(PREFIX)$(DEVEL_PREFIX)/lib/
256         -find lib/ -type l -name '*.so' -exec cp -fa {} $(PREFIX)$(DEVEL_PREFIX)/lib ';'
257         # If we build shared libraries then the static libs are PIC...
258         # Make _pic.a symlinks to make mklibs.py and similar tools happy.
259         for i in `find lib/  -type f -name '*.a' | sed -e 's/lib\///'` ; do \
260                 ln -sf $$i $(PREFIX)$(DEVEL_PREFIX)/lib/`echo $$i | sed -e 's/\.a$$/_pic.a/'`; \
261         done
262 endif
263
264
265 # Installs run-time libraries and helper apps onto the host system
266 # allowing cross development.  If you want to deploy to a target 
267 # system, use the "install_target" target instead... 
268 install_runtime:
269 ifeq ($(strip $(HAVE_SHARED)),y)
270         install -d $(PREFIX)$(DEVEL_PREFIX)/lib
271         install -d $(PREFIX)$(DEVEL_PREFIX)/bin
272         install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
273                 $(PREFIX)$(DEVEL_PREFIX)/lib
274         cp -fa lib/*.so.* $(PREFIX)$(DEVEL_PREFIX)/lib
275         @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
276             set -x -e; \
277             install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
278                         $(PREFIX)$(DEVEL_PREFIX)/lib; \
279         fi;
280         #@if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
281         #    install -d $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
282         #    ln -sf $(PREFIX)$(DEVEL_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
283         #               $(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO); \
284         #fi;
285 endif
286
287 install_toolchain:
288         install -d $(PREFIX)$(DEVEL_PREFIX)/lib
289         install -d $(PREFIX)$(DEVEL_PREFIX)/bin
290         install -d $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin
291         install -d $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin
292         $(MAKE) -C extra/gcc-uClibc install
293
294 ifeq ($(strip $(HAVE_SHARED)),y)
295 utils: $(TOPDIR)ldso/util/ldd
296         $(MAKE) -C ldso utils
297 else
298 utils: dummy
299 endif
300
301 install_utils: utils
302 ifeq ($(strip $(HAVE_SHARED)),y)
303         install -d $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin;
304         install -m 755 ldso/util/ldd \
305                 $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldd
306         ln -fs $(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldd \
307                 $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/ldd
308         # For now, don't bother with readelf since surely the host
309         # system has binutils, or we couldn't have gotten this far...
310         #install -m 755 ldso/util/readelf \
311         #       $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-readelf
312         #ln -fs $(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-readelf \
313         #       $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/readelf
314         @if [ -x ldso/util/ldconfig ] ; then \
315             set -x -e; \
316             install -d $(PREFIX)$(DEVEL_PREFIX)/etc; \
317             install -m 755 ldso/util/ldconfig \
318                     $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldconfig; \
319             ln -fs $(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldconfig \
320                     $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/ldconfig; \
321         fi;
322 endif
323
324 # Installs run-time libraries and helper apps in preparation for
325 # deploying onto a target system, but installed below wherever
326 # $PREFIX is set to, allowing you to package up the result for
327 # deployment onto your target system.
328 install_target:
329 ifeq ($(strip $(HAVE_SHARED)),y)
330         install -d $(PREFIX)$(TARGET_PREFIX)/lib
331         install -d $(PREFIX)$(TARGET_PREFIX)/usr/bin
332         install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
333                 $(PREFIX)$(TARGET_PREFIX)/lib
334         cp -fa lib/*.so.* $(PREFIX)$(TARGET_PREFIX)/lib
335         @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
336             set -x -e; \
337             install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
338                         $(PREFIX)$(TARGET_PREFIX)/lib; \
339         fi;
340         #@if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
341         #    install -d $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
342         #    ln -sf $(PREFIX)$(TARGET_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
343         #               $(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO); \
344         #fi;
345 endif
346
347 install_target_utils:
348 ifeq ($(strip $(HAVE_SHARED)),y)
349         @$(MAKE) -C ldso/util ldd.target ldconfig.target #readelf.target
350         install -d $(PREFIX)$(TARGET_PREFIX)/etc;
351         install -d $(PREFIX)$(TARGET_PREFIX)/sbin;
352         install -d $(PREFIX)$(TARGET_PREFIX)/usr/bin;
353         install -m 755 ldso/util/ldd.target $(PREFIX)$(TARGET_PREFIX)/usr/bin/ldd
354         install -m 755 ldso/util/ldconfig.target $(PREFIX)$(TARGET_PREFIX)/sbin/ldconfig;
355         #install -m 755 ldso/util/readelf.target $(PREFIX)$(TARGET_PREFIX)/usr/bin/readelf;
356 endif
357 ifeq ($(strip $(UCLIBC_HAS_LOCALE)),y)
358         @$(MAKE) -C libc/misc/wchar iconv.target
359         install -d $(PREFIX)$(TARGET_PREFIX)/usr/bin;
360         install -m 755 libc/misc/wchar/iconv.target $(PREFIX)$(TARGET_PREFIX)/usr/bin/iconv
361 endif
362
363 finished2:
364         @echo
365         @echo Finished installing...
366         @echo
367
368 else # ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
369
370 all: menuconfig
371
372 # configuration
373 # ---------------------------------------------------------------------------
374 extra/config/conf: buildconf
375         -@if [ ! -f .config ] ; then \
376                 cp extra/Configs/Config.$(TARGET_ARCH).default .config; \
377         fi
378
379 buildconf:
380         make -C extra/config conf
381
382 extra/config/mconf: buildmconf
383         -@if [ ! -f .config ] ; then \
384                 cp extra/Configs/Config.$(TARGET_ARCH).default .config; \
385         fi
386
387 buildmconf:
388         make -C extra/config ncurses mconf
389
390 menuconfig: extra/config/mconf
391         rm -rf include/bits
392         mkdir -p include/bits
393         @./extra/config/mconf extra/Configs/Config.$(TARGET_ARCH)
394
395 config: extra/config/conf
396         rm -rf include/bits
397         mkdir -p include/bits
398         @./extra/config/conf extra/Configs/Config.$(TARGET_ARCH)
399
400 oldconfig: extra/config/conf
401         rm -rf include/bits
402         mkdir -p include/bits
403         @./extra/config/conf -o extra/Configs/Config.$(TARGET_ARCH)
404
405 randconfig: extra/config/conf
406         rm -rf include/bits
407         mkdir -p include/bits
408         @./extra/config/conf -r extra/Configs/Config.$(TARGET_ARCH)
409
410 allyesconfig: extra/config/conf
411         rm -rf include/bits
412         mkdir -p include/bits
413         @./extra/config/conf -y extra/Configs/Config.$(TARGET_ARCH)
414
415 allnoconfig: extra/config/conf
416         rm -rf include/bits
417         mkdir -p include/bits
418         @./extra/config/conf -n extra/Configs/Config.$(TARGET_ARCH)
419
420 defconfig: extra/config/conf
421         rm -rf include/bits
422         mkdir -p include/bits
423         @./extra/config/conf -d extra/Configs/Config.$(TARGET_ARCH)
424
425
426 clean:
427         - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
428         @rm -rf tmp lib include/bits libc/tmp _install
429         $(MAKE) -C test clean
430         $(MAKE) -C ldso clean
431         $(MAKE) -C libc/misc/internals clean
432         $(MAKE) -C libc/misc/wchar clean
433         $(MAKE) -C libc/unistd clean
434         $(MAKE) -C libc/sysdeps/linux/common clean
435         $(MAKE) -C extra/gcc-uClibc clean
436         $(MAKE) -C extra/locale clean
437         @set -e; \
438         for i in `(cd $(TOPDIR)/libc/sysdeps/linux/common/sys; ls *.h)` ; do \
439                 rm -f include/sys/$$i; \
440         done; \
441         if [ -d libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \
442                 for i in `(cd libc/sysdeps/linux/$(TARGET_ARCH)/sys; ls *.h)` ; do \
443                         rm -f include/sys/$$i; \
444                 done; \
445         fi;
446         @rm -f include/linux include/scsi include/asm
447         @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then              \
448             $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean;         \
449         fi;
450         @if [ "$(TARGET_ARCH)" = "mipsel" ]; then \
451             $(MAKE) -C libc/sysdeps/linux/mips clean; \
452             rm -f ldso/ldso/mipsel; \
453             rm -f libc/sysdeps/linux/mipsel; \
454             rm -f libpthread/linuxthreads/sysdeps/mipsel; \
455         fi;
456
457 distclean: clean
458         rm -f .config .config.old .config.cmd
459         $(MAKE) -C extra clean
460
461 release: distclean
462         cd ..;                                  \
463         rm -rf uClibc-$(VERSION);               \
464         cp -fa uClibc uClibc-$(VERSION);                \
465         find uClibc-$(VERSION)/ -type f         \
466             -name .\#* -exec rm -rf {} \; ;     \
467         find uClibc-$(VERSION)/ -type d         \
468             -name CVS  -exec rm -rf {} \; ;     \
469                                                 \
470         tar -cvzf uClibc-$(VERSION).tar.gz uClibc-$(VERSION)/;
471
472 endif # ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
473
474 .PHONY: dummy subdirs release distclean clean config oldconfig menuconfig
475
476