Makefile 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 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 Library General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Library General Public License
  16. # along with this program; if not, write to the Free Software Foundation, Inc.,
  17. # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. TOPDIR=../../../../
  19. include $(TOPDIR)Rules.mak
  20. CSRC= __rt_sigtimedwait.c __socketcall.c __syscall_fcntl.c \
  21. __syscall_fcntl64.c __syscall_ipc.c __syscall_rt_sigaction.c \
  22. __syscall_sigaction.c _exit.c access.c acct.c adjtimex.c alarm.c \
  23. bdflush.c capget.c capset.c chdir.c chmod.c chown.c chroot.c \
  24. close.c cmsg_nxthdr.c creat64.c create_module.c delete_module.c \
  25. dup.c dup2.c execve.c fchdir.c fchmod.c fchown.c fdatasync.c \
  26. flock.c fork.c fstat.c fstat64.c fstatfs.c fsync.c ftruncate.c \
  27. ftruncate64.c get_kernel_syms.c getcwd.c getdents.c getdents64.c \
  28. getdirname.c getdnnm.c getdtablesize.c getegid.c geteuid.c \
  29. getgid.c getgroups.c gethstnm.c getitimer.c getpagesize.c \
  30. getpgid.c getpgrp.c getpid.c getppid.c getpriority.c getresgid.c \
  31. getresuid.c getrlimit.c getrlimit64.c getrusage.c getsid.c \
  32. gettimeofday.c getuid.c init_module.c ioctl.c ioperm.c iopl.c \
  33. kill.c klogctl.c lchown.c link.c llseek.c longjmp.c lseek.c \
  34. lstat.c lstat64.c madvise.c mkdir.c mkfifo.c mknod.c mlock.c \
  35. mlockall.c mmap.c mmap64.c modify_ldt.c mount.c mprotect.c \
  36. mremap.c msync.c munlock.c munlockall.c munmap.c nanosleep.c \
  37. nice.c noophooks.c ntp_gettime.c open.c open64.c pause.c \
  38. personality.c pipe.c pivot_root.c poll.c prctl.c pread_write.c \
  39. ptrace.c query_module.c quotactl.c read.c readlink.c readv.c \
  40. reboot.c rename.c rmdir.c sched_get_priority_max.c \
  41. sched_get_priority_min.c sched_getparam.c sched_getscheduler.c \
  42. sched_rr_get_interval.c sched_setparam.c sched_setscheduler.c \
  43. sched_yield.c select.c sendfile.c sendfile64.c setdomainname.c \
  44. setegid.c seteuid.c setfsgid.c setfsuid.c setgid.c setgroups.c \
  45. sethostname.c setitimer.c setpgid.c setpgrp.c setpriority.c \
  46. setregid.c setresgid.c setresuid.c setreuid.c setrlimit.c \
  47. setrlimit64.c setsid.c settimeofday.c setuid.c sigaltstack.c \
  48. sigpending.c sigprocmask.c sigsuspend.c stat.c stat64.c statfs.c \
  49. stime.c swapoff.c swapon.c symlink.c sync.c sysctl.c sysfs.c \
  50. sysinfo.c time.c times.c truncate.c truncate64.c ulimit.c \
  51. umask.c umount.c umount2.c uname.c unlink.c uselib.c ustat.c \
  52. utime.c utimes.c vfork.c vhangup.c wait.c wait3.c wait4.c \
  53. waitpid.c write.c writev.c xstatconv.c
  54. ifneq ($(strip $(EXCLUDE_BRK)),y)
  55. CSRC+=sbrk.c
  56. endif
  57. ifeq ($(strip $(UCLIBC_PROPOLICE)),y)
  58. CSRC+=ssp.c
  59. endif
  60. COBJS=$(patsubst %.c,%.o, $(CSRC))
  61. OBJ=$(COBJS) $(MOBJ)
  62. all: $(STR_SYSCALLS) $(OBJ) $(LIBC)
  63. $(LIBC): ar-target
  64. ar-target: $(OBJ)
  65. $(AR) $(ARFLAGS) $(LIBC) $(OBJ)
  66. $(COBJS): %.o : %.c
  67. $(CC) $(CFLAGS) -c $< -o $@
  68. $(STRIPTOOL) -x -R .note -R .comment $*.o
  69. headers:
  70. $(LN) -fs ../libc/sysdeps/linux/common/fpu_control.h $(TOPDIR)/include/
  71. clean:
  72. $(RM) *.[oa] *~ core