# Makefile for uClibc
#
# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

# TODO: can just select all *.c files in this dir as well

klib-y := \
    allocrtsig.o killpg.o raise.o sigaction.o sigaddset.o sigandset.o \
    sigblock.o sigdelset.o sigempty.o sigfillset.o siggetmask.o sighold.o \
    sigignore.o sigintr.o sigisempty.o sigismem.o sigjmp.o signal.o \
    sigorset.o sigpause.o sigrelse.o sigset.o sigsetmask.o sigsetops.o \
    sysv_signal.o sigwait.o

archfiles := $(wildcard libc/sysdeps/linux/$(ARCH)/*.c libc/sysdeps/linux/$(ARCH)/*.S)
archfiles := $(notdir $(archfiles))
archfiles := $(patsubst %.c,%.o,$(archfiles))
archfiles := $(patsubst %.S,%.o,$(archfiles))
archfiles := $(strip $(archfiles))

ifneq ($(archfiles),)
klib-y := $(filter-out $(archfiles),$(klib-y))
endif
