Makefile 3.5 KB

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