Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk> Makefile
  2. # for uClibc
  3. #
  4. # Copyright (C) 2000 by Lineo, inc.
  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. #
  20. # Derived in part from the Linux-8086 C library, the GNU C Library, and several
  21. # other sundry sources. Files within this library are copyright by their
  22. # respective copyright holders.
  23. TOPDIR=../../../
  24. include $(TOPDIR)Rules.mak
  25. LIBC=$(TOPDIR)libc.a
  26. CSRC =closedir.o dirfd.o getdents.o getdnnm.o gethstnm.o getpagesize.o \
  27. isatty.o kernel_version.o mkfifo.o opendir.o readdir.o rewinddir.o \
  28. seekdir.o setegid.o seteuid.o setpgrp.o statfix.o tell.o telldir.o \
  29. wait.o wait3.o _xmknod.o _fxstat.o _lxstat.o _xstat.o libc_init.o tcgetatr.o
  30. COBJS=$(patsubst %.c,%.o, $(CSRC))
  31. MSRC=syscalls.c
  32. MOBJ=$(shell ./list_syscalls.sh)
  33. OBJ=$(COBJS) $(MOBJ)
  34. all: $(OBJ) $(LIBC)
  35. $(LIBC): ar-target
  36. ar-target: $(OBJ)
  37. $(AR) $(ARFLAGS) $(LIBC) $(OBJ)
  38. $(MOBJ): $(MSRC)
  39. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  40. $(STRIPTOOL) -x -R .note -R .comment $*.o
  41. $(COBJS):
  42. $(CC) $(CFLAGS) -g $< -c $*.c -o $*.o
  43. #$(STRIPTOOL) -x -R .note -R .comment $*.o
  44. clean:
  45. rm -f *.[oa] *~ core