Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2002 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # This program is free software; you can redistribute it and/or modify it under
  7. # the terms of the GNU Library General Public License as published by the Free
  8. # Software Foundation; either version 2 of the License, or (at your option) any
  9. # later version.
  10. #
  11. # This program is distributed in the hope that it will be useful, but WITHOUT
  12. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  13. # FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
  14. # details.
  15. #
  16. # You should have received a copy of the GNU Library General Public License
  17. # along with this program; if not, write to the Free Software Foundation, Inc.,
  18. # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. # Makefile for uClibc
  20. #
  21. # Derived in part from the Linux-8086 C library, the GNU C Library, and several
  22. # other sundry sources. Files within this library are copyright by their
  23. # respective copyright holders.
  24. #--------------------------------------------------------
  25. #
  26. #There are a number of configurable options in "Config"
  27. #
  28. #--------------------------------------------------------
  29. TOPDIR=./
  30. include Rules.mak
  31. DIRS = extra ldso libc libcrypt libresolv libutil libm libpthread
  32. all: headers uClibc_config subdirs shared utils finished
  33. Config:
  34. @echo
  35. @echo "You didn't read the README, did you... =)"
  36. @echo "Choose a configuration file in extras/Config/ and then run"
  37. @echo " ln -s ./extra/Configs/Config.<arch> ./Config"
  38. @echo
  39. @exit 1
  40. shared:
  41. ifeq ($(strip $(HAVE_SHARED)),true)
  42. @$(MAKE) -C libc shared
  43. @$(MAKE) -C ldso shared
  44. @$(MAKE) -C libcrypt shared
  45. @$(MAKE) -C libresolv shared
  46. @$(MAKE) -C libutil shared
  47. @$(MAKE) -C libm shared
  48. @$(MAKE) -C libpthread shared
  49. else
  50. @echo
  51. @echo Not building shared libraries...
  52. @echo
  53. endif
  54. finished: shared
  55. @echo
  56. @echo Finally finished compiling...
  57. @echo
  58. #
  59. # Target for uClinux distro
  60. #
  61. romfs:
  62. ifeq ($(strip $(HAVE_SHARED)),true)
  63. install -d $(ROMFSDIR)/lib
  64. install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  65. $(ROMFSDIR)/lib
  66. cp -a lib/*.so.* $(ROMFSDIR)/lib
  67. @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
  68. set -x -e; \
  69. install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  70. $(ROMFSDIR)/lib; \
  71. fi;
  72. endif
  73. headers: dummy
  74. rm -f include/asm;
  75. @if [ $(TARGET_ARCH) = "powerpc" ];then \
  76. ln -fs $(KERNEL_SOURCE)/include/asm-ppc include/asm; \
  77. elif [ $(TARGET_ARCH) = "mips" ];then \
  78. ln -fs $(KERNEL_SOURCE)/include/asm-mips include/asm; \
  79. elif [ $(TARGET_ARCH) = "mipsel" ];then \
  80. ln -fs $(KERNEL_SOURCE)/include/asm-mips include/asm; \
  81. cd $(shell pwd)/libc/sysdeps/linux; \
  82. ln -fs mips mipsel; \
  83. cd $(shell pwd)/ldso/ldso; \
  84. ln -fs mips mipsel; \
  85. cd $(shell pwd)/libpthread/linuxthreads/sysdeps; \
  86. ln -fs mips mipsel; \
  87. elif [ $(TARGET_ARCH) = "cris" ];then \
  88. ln -fs $(KERNEL_SOURCE)/include/asm-cris include/asm; \
  89. else \
  90. if [ $(HAS_MMU) != "true" ]; then \
  91. if [ -d $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH)nommu ] ; then \
  92. ln -fs $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH)nommu include/asm;\
  93. else \
  94. ln -fs $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH) include/asm; \
  95. fi; \
  96. else \
  97. ln -fs $(KERNEL_SOURCE)/include/asm-$(TARGET_ARCH) include/asm; \
  98. fi; \
  99. fi;
  100. @if [ ! -f include/asm/unistd.h ] ; then \
  101. set -e; \
  102. echo " "; \
  103. echo "The path '$(KERNEL_SOURCE)/include/asm' doesn't exist."; \
  104. echo "I bet you didn't set KERNEL_SOURCE, TARGET_ARCH or HAS_MMU in \`Config'"; \
  105. echo "correctly. Please edit \`Config' and fix these settings."; \
  106. echo " "; \
  107. false; \
  108. fi;
  109. rm -f include/linux include/scsi
  110. ln -fs $(KERNEL_SOURCE)/include/linux include/linux
  111. ln -fs $(KERNEL_SOURCE)/include/scsi include/scsi
  112. rm -rf include/bits
  113. mkdir -p include/bits
  114. @cd include/bits; \
  115. set -e; \
  116. for i in `ls ../../libc/sysdeps/linux/common/bits/*.h` ; do \
  117. ln -fs $$i .; \
  118. done; \
  119. if [ -d ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits ] ; then \
  120. for i in `ls ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits/*.h` ; do \
  121. ln -fs $$i .; \
  122. done; \
  123. fi
  124. @cd include/sys; \
  125. set -e; \
  126. for i in `ls ../../libc/sysdeps/linux/common/sys/*.h` ; do \
  127. ln -fs $$i .; \
  128. done; \
  129. if [ -d ../../libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \
  130. for i in `ls ../../libc/sysdeps/linux/$(TARGET_ARCH)/sys/*.h` ; do \
  131. ln -fs $$i .; \
  132. done; \
  133. fi
  134. @cd $(TOPDIR); \
  135. set -x -e; \
  136. rm -f include/bits/sysnum.h; \
  137. TOPDIR=$(TOPDIR) CC=$(CC) /bin/sh $(TOPDIR)/extra/scripts/gen_bits_syscall_h.sh > include/bits/sysnum.h
  138. $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) headers
  139. uClibc_config: Makefile Config
  140. @echo "/* WARNING!!! AUTO-GENERATED FILE!!! DO NOT EDIT!!! */" > include/bits/uClibc_config.h
  141. @echo "#if !defined __FEATURES_H && !defined __need_uClibc_config_h" >> include/bits/uClibc_config.h
  142. @echo "#error Never include <bits/uClibc_config.h> directly; use <features.h> instead." >> include/bits/uClibc_config.h
  143. @echo "#endif" >> include/bits/uClibc_config.h
  144. @echo "#define __UCLIBC_MAJOR__ $(MAJOR_VERSION)" >> include/bits/uClibc_config.h
  145. @echo "#define __UCLIBC_MINOR__ $(MINOR_VERSION)" >> include/bits/uClibc_config.h
  146. @echo "#define __UCLIBC_SUBLEVEL__ $(SUBLEVEL)" >> include/bits/uClibc_config.h
  147. @echo "#define linux 1" >> include/bits/uClibc_config.h
  148. @echo "#define __linux__ 1" >> include/bits/uClibc_config.h
  149. @if [ "$(INCLUDE_IPV6)" = "true" ] ; then \
  150. echo "#define __UCLIBC_HAS_IPV6__ 1" >> include/bits/uClibc_config.h ; \
  151. else \
  152. echo "#undef __UCLIBC_HAS_IPV6__" >> include/bits/uClibc_config.h ; \
  153. fi
  154. @if [ "$(HAS_MMU)" = "true" ] ; then \
  155. echo "#define __UCLIBC_HAS_MMU__ 1" >> include/bits/uClibc_config.h ; \
  156. else \
  157. echo "For now we make the assumption that a linux system without an"; \
  158. echo "MMU must be uClinux, and must have a broken munmap (both"; \
  159. echo "assumptions are a bit dodgy, but can be changed in the future)."; \
  160. echo "#undef __UCLIBC_HAS_MMU__" >> include/bits/uClibc_config.h ; \
  161. echo "#define __UCLIBC_UCLINUX_BROKEN_MUNMAP__ 1" >> include/bits/uClibc_config.h ; \
  162. fi
  163. @if [ "$(HAS_FLOATING_POINT)" = "true" ] ; then \
  164. echo "#define __UCLIBC_HAS_FLOATS__ 1" >> include/bits/uClibc_config.h ; \
  165. else \
  166. echo "#undef __UCLIBC_HAS_FLOATS__" >> include/bits/uClibc_config.h ; \
  167. fi
  168. @if [ "$(HAS_LOCALE)" = "true" ] ; then \
  169. echo "#define __UCLIBC_HAS_LOCALE__ 1" >> include/bits/uClibc_config.h ; \
  170. else \
  171. echo "#undef __UCLIBC_HAS_LOCALE__" >> include/bits/uClibc_config.h ; \
  172. fi
  173. @if [ "$(HAS_WCHAR)" = "true" ] ; then \
  174. echo "#define __UCLIBC_HAS_WCHAR__ 1" >> include/bits/uClibc_config.h ; \
  175. else \
  176. echo "#undef __UCLIBC_HAS_WCHAR__" >> include/bits/uClibc_config.h ; \
  177. fi
  178. @if [ "$(HAVE_ELF)" = "false" ] ; then \
  179. echo "#undef HAVE_ELF" >> include/bits/uClibc_config.h ; \
  180. else \
  181. echo "#define HAVE_ELF 1" >> include/bits/uClibc_config.h ; \
  182. fi
  183. @if [ "$(HAVE_SHARED)" = "false" ] ; then \
  184. echo "#undef HAVE_SHARED" >> include/bits/uClibc_config.h ; \
  185. else \
  186. echo "#define HAVE_SHARED 1" >> include/bits/uClibc_config.h ; \
  187. fi
  188. @if [ "$(TARGET_ARCH)" = "sh" ] ; then \
  189. echo "#define NO_UNDERSCORES 1" >> include/bits/uClibc_config.h ; \
  190. else \
  191. echo "#undef NO_UNDERSCORES" >> include/bits/uClibc_config.h ; \
  192. fi
  193. @if [ "$(INCLUDE_RPC)" = "true" ] ; then \
  194. echo "#define __UCLIBC_HAS_RPC__ 1" >> include/bits/uClibc_config.h ; \
  195. else \
  196. echo "#undef __UCLIBC_HAS_RPC__" >> include/bits/uClibc_config.h ; \
  197. fi
  198. @if [ "$(DOLFS)" = "true" ] ; then \
  199. echo "#define __UCLIBC_HAVE_LFS__ 1" >> include/bits/uClibc_config.h ; \
  200. else \
  201. echo "#undef __UCLIBC_HAVE_LFS__" >> include/bits/uClibc_config.h ; \
  202. fi
  203. @if [ "$(INCLUDE_THREADS)" = "true" ] ; then \
  204. echo "#define __UCLIBC_HAS_THREADS__ 1" >> include/bits/uClibc_config.h ; \
  205. else \
  206. echo "#undef __UCLIBC_HAS_THREADS__" >> include/bits/uClibc_config.h ; \
  207. fi
  208. @if [ "$(INCLUDE_REGEX)" = "true" ] ; then \
  209. echo "#define __UCLIBC_HAS_REGEX__ 1" >> include/bits/uClibc_config.h ; \
  210. else \
  211. echo "#undef __UCLIBC_HAS_REGEX__" >> include/bits/uClibc_config.h ; \
  212. fi
  213. @if [ "$(UNIX98PTY_ONLY)" = "true" ] ; then \
  214. echo "#define UNIX98PTY_ONLY 1" >> include/bits/uClibc_config.h ; \
  215. else \
  216. echo "#undef UNIX98PTY_ONLY" >> include/bits/uClibc_config.h ; \
  217. fi
  218. @if [ "$(ASSUME_DEVPTS)" = "true" ] ; then \
  219. echo "#define ASSUME_DEVPTS 1" >> include/bits/uClibc_config.h ; \
  220. else \
  221. echo "#undef ASSUME_DEVPTS" >> include/bits/uClibc_config.h ; \
  222. fi
  223. @echo "#define C_SYMBOL_PREFIX "\""$(C_SYMBOL_PREFIX)"\" >> include/bits/uClibc_config.h
  224. @if [ "$(HAVE_DOT_HIDDEN)" = "true" ] ; then \
  225. echo "#define HAVE_DOT_HIDDEN 1" >> include/bits/uClibc_config.h ; \
  226. else \
  227. echo "#undef HAVE_DOT_HIDDEN" >> include/bits/uClibc_config.h ; \
  228. fi
  229. subdirs: $(patsubst %, _dir_%, $(DIRS))
  230. $(patsubst %, _dir_%, $(DIRS)) : dummy
  231. $(MAKE) -C $(patsubst _dir_%, %, $@)
  232. tags:
  233. ctags -R
  234. install: install_dev install_runtime install_toolchain install_utils finished2
  235. # Installs header files and development library links.
  236. install_dev:
  237. install -d $(PREFIX)$(DEVEL_PREFIX)/lib
  238. install -d $(PREFIX)$(DEVEL_PREFIX)/usr/lib
  239. install -d $(PREFIX)$(DEVEL_PREFIX)/include
  240. -install -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)/lib/
  241. tar -chf - include | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX);
  242. -@for i in `find $(PREFIX)$(DEVEL_PREFIX) -type d` ; do \
  243. chmod -f 755 $$i; chmod -f 644 $$i/*.h; \
  244. done;
  245. -find $(PREFIX)$(DEVEL_PREFIX) -name CVS | xargs rm -rf;
  246. -chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$$/\1.\2/'` $(PREFIX)$(DEVEL_PREFIX)
  247. ifeq ($(strip $(HAVE_SHARED)),true)
  248. -find lib/ -type l -name '*.so' -exec cp -a {} $(PREFIX)$(DEVEL_PREFIX)/lib ';'
  249. # If we build shared libraries then the static libs are PIC...
  250. # Make _pic.a symlinks to make mklibs.py and similar tools happy.
  251. for i in `find lib/ -type f -name '*.a' | sed -e 's/lib\///'` ; do \
  252. ln -sf $$i $(PREFIX)$(DEVEL_PREFIX)/lib/`echo $$i | sed -e 's/\.a$$/_pic.a/'`; \
  253. done
  254. endif
  255. # Installs run-time libraries and helper apps onto the host system
  256. # allowing cross development. If you want to deploy to a target
  257. # system, use the "install_target" target instead...
  258. install_runtime:
  259. ifeq ($(strip $(HAVE_SHARED)),true)
  260. install -d $(PREFIX)$(DEVEL_PREFIX)/lib
  261. install -d $(PREFIX)$(DEVEL_PREFIX)/bin
  262. install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  263. $(PREFIX)$(DEVEL_PREFIX)/lib
  264. cp -a lib/*.so.* $(PREFIX)$(DEVEL_PREFIX)/lib
  265. @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
  266. set -x -e; \
  267. install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  268. $(PREFIX)$(DEVEL_PREFIX)/lib; \
  269. mkdir -p $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
  270. ln -s $(DEVEL_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  271. $(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
  272. fi;
  273. endif
  274. install_toolchain:
  275. install -d $(PREFIX)$(DEVEL_PREFIX)/lib
  276. install -d $(PREFIX)$(DEVEL_PREFIX)/bin
  277. install -d $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin
  278. install -d $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin
  279. $(MAKE) -C extra/gcc-uClibc install
  280. ifeq ($(strip $(HAVE_SHARED)),true)
  281. utils: $(TOPDIR)ldso/util/ldd
  282. $(MAKE) -C ldso utils
  283. else
  284. utils: dummy
  285. endif
  286. install_utils: utils
  287. ifeq ($(strip $(HAVE_SHARED)),true)
  288. install -d $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin;
  289. install -m 755 ldso/util/ldd \
  290. $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldd
  291. ln -fs $(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldd \
  292. $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/ldd
  293. # For now, don't bother with readelf since surely the host
  294. # system has binutils, or we couldn't have gotten this far...
  295. #install -m 755 ldso/util/readelf \
  296. # $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-readelf
  297. #ln -fs $(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-readelf \
  298. # $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/readelf
  299. @if [ -x ldso/util/ldconfig ] ; then \
  300. set -x -e; \
  301. install -d $(PREFIX)$(DEVEL_PREFIX)/etc; \
  302. install -m 755 ldso/util/ldconfig \
  303. $(PREFIX)$(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldconfig; \
  304. ln -fs $(SYSTEM_DEVEL_PREFIX)/bin/$(TARGET_ARCH)-uclibc-ldconfig \
  305. $(PREFIX)$(DEVEL_TOOL_PREFIX)/bin/ldconfig; \
  306. fi;
  307. endif
  308. # Installs run-time libraries and helper apps in preparation for
  309. # deploying onto a target system, but installed below wherever
  310. # $PREFIX is set to, allowing you to package up the result for
  311. # deployment onto your target system.
  312. install_target:
  313. ifeq ($(strip $(HAVE_SHARED)),true)
  314. install -d $(PREFIX)$(TARGET_PREFIX)/lib
  315. install -d $(PREFIX)$(TARGET_PREFIX)/usr/bin
  316. install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  317. $(PREFIX)$(TARGET_PREFIX)/lib
  318. cp -a lib/*.so.* $(PREFIX)$(TARGET_PREFIX)/lib
  319. @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \
  320. set -x -e; \
  321. install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  322. $(PREFIX)$(TARGET_PREFIX)/lib; \
  323. mkdir -p $(PREFIX)$(SHARED_LIB_LOADER_PATH); \
  324. ln -s $(TARGET_PREFIX)/lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
  325. $(PREFIX)$(SHARED_LIB_LOADER_PATH)/$(UCLIBC_LDSO) || true; \
  326. fi;
  327. endif
  328. install_target_utils:
  329. ifeq ($(strip $(HAVE_SHARED)),true)
  330. @$(MAKE) -C ldso/util ldd.target readelf.target #ldconfig.target
  331. install -d $(PREFIX)$(TARGET_PREFIX)/usr/bin;
  332. install -m 755 ldso/util/ldd.target $(PREFIX)$(TARGET_PREFIX)/usr/bin/ldd
  333. install -m 755 ldso/util/readelf.target $(PREFIX)$(TARGET_PREFIX)/usr/bin/readelf
  334. @if [ -x ldso/util/ldconfig.target ] ; then \
  335. set -x -e; \
  336. install -d $(PREFIX)$(TARGET_PREFIX)/etc; \
  337. install -d $(PREFIX)$(TARGET_PREFIX)/sbin; \
  338. install -m 755 ldso/util/ldconfig.target $(PREFIX)$(TARGET_PREFIX)/sbin/ldconfig; \
  339. fi;
  340. endif
  341. finished2:
  342. @echo
  343. @echo Finished installing...
  344. @echo
  345. distclean clean:
  346. - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
  347. @rm -rf tmp lib include/bits libc/tmp _install
  348. $(MAKE) -C test clean
  349. $(MAKE) -C ldso clean
  350. $(MAKE) -C libc/misc/internals clean
  351. $(MAKE) -C libc/unistd clean
  352. $(MAKE) -C libc/sysdeps/linux/common clean
  353. $(MAKE) -C extra/gcc-uClibc clean
  354. @set -e; \
  355. for i in `(cd $(TOPDIR)/libc/sysdeps/linux/common/sys; ls *.h)` ; do \
  356. rm -f include/sys/$$i; \
  357. done; \
  358. if [ -d libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \
  359. for i in `(cd libc/sysdeps/linux/$(TARGET_ARCH)/sys; ls *.h)` ; do \
  360. rm -f include/sys/$$i; \
  361. done; \
  362. fi;
  363. @rm -f include/linux include/scsi include/asm
  364. @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then \
  365. $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean; \
  366. fi;
  367. @if [ $(TARGET_ARCH) = "mipsel" ]; then \
  368. $(MAKE) -C libc/sysdeps/linux/mips clean; \
  369. rm -f ldso/ldso/mipsel; \
  370. rm -f libc/sysdeps/linux/mipsel; \
  371. rm -f libpthread/linuxthreads/sysdeps/mipsel; \
  372. fi;
  373. dist release: distclean
  374. cd ..; \
  375. rm -rf uClibc-$(VERSION); \
  376. cp -a uClibc uClibc-$(VERSION); \
  377. find uClibc-$(VERSION)/ -type d \
  378. -name .\#* -exec rm -rf {} \; ; \
  379. \
  380. tar -cvzf uClibc-$(VERSION).tar.gz --exclude CVS uClibc-$(VERSION)/;
  381. .PHONY: dummy subdirs release distclean clean