Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Makefile for uClibc
  2. # Copyright (C) 2001,2002 Erik Andersen <andersen@uclibc.org>
  3. #
  4. # This program is free software; you can redistribute it and/or modify it under
  5. # the terms of the GNU Library General Public License as published by the Free
  6. # Software Foundation; either version 2 of the License, or (at your option) any
  7. # later version.
  8. #
  9. # This program is distributed in the hope that it will be useful, but WITHOUT
  10. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. # FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
  12. # details.
  13. #
  14. # You should have received a copy of the GNU Library General Public License
  15. # along with this program; if not, write to the Free Software Foundation, Inc.,
  16. # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. #
  18. # Derived in part from the Linux-8086 C library, the GNU C Library, and several
  19. # other sundry sources. Files within this library are copyright by their
  20. # respective copyright holders.
  21. TOPDIR=../../../
  22. include $(TOPDIR)Rules.mak
  23. CSRC = fstatfs64.c fstatvfs.c statfs64.c statvfs.c
  24. COBJS=$(patsubst %.c,%.o, $(CSRC))
  25. OBJS=$(COBJS)
  26. all: $(OBJS) $(LIBC)
  27. $(LIBC): ar-target
  28. ar-target: $(OBJS)
  29. $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
  30. $(COBJS): %.o : %.c
  31. $(CC) $(CFLAGS) -c $< -o $@
  32. $(STRIPTOOL) -x -R .note -R .comment $*.o
  33. clean:
  34. rm -f *.[oa] *~ core