Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Makefile for uCLibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. #
  5. # This program is free software; you can redistribute it and/or modify it under
  6. # the terms of the GNU Library General Public License as published by the Free
  7. # Software Foundation; either version 2 of the License, or (at your option) any
  8. # later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but WITHOUT
  11. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12. # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU General Public License along with
  16. # this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  17. # Place, Suite 330, Boston, MA 02111-1307 USA
  18. #
  19. # Derived in part from the Linux-8086 C library, the GNU C Library, and several
  20. # other sundry sources. Files within this library are copyright by their
  21. # respective copyright holders.
  22. #--------------------------------------------------------
  23. #
  24. #There are a number of configurable options in Rules.mak
  25. #
  26. #--------------------------------------------------------
  27. DIRS = io misc pwd_grp stdio string termios unistd net signal stdlib sysdeps
  28. all: libc.a
  29. libc.a: halfclean headers subdirs
  30. @echo
  31. @echo Finally finished compiling...
  32. @echo
  33. $(CROSS)ranlib libc.a
  34. halfclean:
  35. @rm -f libc.a
  36. headers: dummy
  37. @if [ ! -L "include/asm" ]; then ln -s /usr/include/asm include/asm ; fi
  38. @if [ ! -L "include/net" ]; then ln -s /usr/include/net include/net ; fi
  39. @if [ ! -L "include/linux" ]; then ln -s /usr/include/linux include/linux ; fi
  40. tags:
  41. ctags -R
  42. clean: subdirs_clean
  43. rm -f libc.a
  44. subdirs: $(patsubst %, _dir_%, $(DIRS))
  45. subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS))
  46. $(patsubst %, _dir_%, $(DIRS)) : dummy
  47. $(MAKE) -C $(patsubst _dir_%, %, $@)
  48. $(patsubst %, _dirclean_%, $(DIRS)) : dummy
  49. $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
  50. .PHONY: dummy