summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/Makefile50
1 files changed, 8 insertions, 42 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile
index 5c43c1689..5e17cc9fc 100644
--- a/libc/sysdeps/linux/common/Makefile
+++ b/libc/sysdeps/linux/common/Makefile
@@ -19,51 +19,17 @@
TOPDIR=../../../../
include $(TOPDIR)Rules.mak
-CSRC= __rt_sigtimedwait.c __socketcall.c __syscall_fcntl.c \
- __syscall_fcntl64.c __syscall_ipc.c __syscall_rt_sigaction.c \
- __syscall_sigaction.c _exit.c access.c acct.c adjtimex.c alarm.c \
- bdflush.c capget.c capset.c chdir.c chmod.c chown.c chroot.c \
- close.c cmsg_nxthdr.c creat64.c create_module.c delete_module.c \
- dup.c dup2.c epoll.c execve.c fchdir.c fchmod.c fchown.c fdatasync.c \
- flock.c fork.c fstat.c fstat64.c fstatfs.c fsync.c ftruncate.c \
- ftruncate64.c get_kernel_syms.c getcwd.c getdents.c getdents64.c \
- getdirname.c getdnnm.c getdtablesize.c getegid.c geteuid.c \
- getgid.c getgroups.c gethstnm.c getitimer.c getpagesize.c \
- getpgid.c getpgrp.c getpid.c getppid.c getpriority.c getresgid.c \
- getresuid.c getrlimit.c getrlimit64.c getrusage.c getsid.c \
- gettimeofday.c getuid.c init_module.c ioctl.c ioperm.c iopl.c \
- kill.c klogctl.c lchown.c link.c llseek.c longjmp.c lseek.c lstat.c \
- lstat64.c madvise.c mkdir.c mkfifo.c mincore.c mknod.c mlock.c \
- mlockall.c mmap.c mmap64.c modify_ldt.c mount.c mprotect.c \
- mremap.c msync.c munlock.c munlockall.c munmap.c nanosleep.c \
- nice.c noophooks.c ntp_gettime.c open.c open64.c pause.c \
- personality.c pipe.c pivot_root.c poll.c posix_fadvise.c \
- posix_fadvise64.c prctl.c pread_write.c ptrace.c query_module.c \
- quotactl.c read.c readlink.c readv.c reboot.c rename.c rmdir.c \
- sched_get_priority_max.c sched_get_priority_min.c sched_getparam.c \
- sched_getscheduler.c sched_rr_get_interval.c sched_setparam.c \
- sched_setscheduler.c sched_yield.c select.c sendfile.c sendfile64.c \
- setdomainname.c setegid.c seteuid.c setfsgid.c setfsuid.c setgid.c \
- setgroups.c sethostname.c setitimer.c setpgid.c setpgrp.c setpriority.c \
- setregid.c setresgid.c setresuid.c setreuid.c setrlimit.c \
- setrlimit64.c setsid.c settimeofday.c setuid.c sigaltstack.c \
- sigpending.c sigprocmask.c sigsuspend.c stat.c stat64.c statfs.c \
- stime.c swapoff.c swapon.c symlink.c sync.c sysctl.c sysfs.c \
- sysinfo.c time.c times.c truncate.c truncate64.c ulimit.c \
- umask.c umount.c umount2.c uname.c unlink.c uselib.c ustat.c \
- utime.c utimes.c vfork.c vhangup.c wait.c wait3.c wait4.c \
- waitpid.c write.c writev.c xattr.c xstatconv.c
+SRCS = $(wildcard *.c)
-ifneq ($(strip $(EXCLUDE_BRK)),y)
-CSRC+=sbrk.c
-endif
-ifeq ($(strip $(UCLIBC_HAS_SSP)),y)
-CSRC+=ssp.c
+ifeq ($(strip $(EXCLUDE_BRK)),y)
+SRCS := $(filter-out sbrk.c,$(SRCS))
endif
-COBJS=$(patsubst %.c,%.o, $(CSRC))
+ifneq ($(strip $(UCLIBC_HAS_SSP)),y)
+SRCS := $(filter-out ssp.c,$(SRCS))
+endif
-OBJS=$(COBJS) $(MOBJ)
+OBJS = $(patsubst %.c,%.o, $(SRCS))
OBJ_LIST=../../../obj.sysdeps.common
@@ -72,7 +38,7 @@ all: $(OBJ_LIST)
$(OBJ_LIST): $(OBJS)
echo $(patsubst %, sysdeps/linux/common/%, $(OBJS)) > $(OBJ_LIST)
-$(COBJS): %.o : %.c
+$(OBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
$(STRIPTOOL) -x -R .note -R .comment $*.o