# FTS Makefile for uClibc
#
# Copyright (C) 2009 STMicroelectronics Ltd.
# Author: Salvatore Cro <salvatore.cro at st.com>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

subdirs += libc/misc/fts
CSRC-y := fts.c

MISC_FTS_DIR := $(top_srcdir)libc/misc/fts
MISC_FTS_OUT := $(top_builddir)libc/misc/fts

MISC_FTS_SRC := $(patsubst %.c,$(MISC_FTS_DIR)/%.c,$(CSRC-y))
MISC_FTS_OBJ := $(patsubst %.c,$(MISC_FTS_OUT)/%.o,$(CSRC-y))

libc-$(UCLIBC_HAS_FTS) += $(MISC_FTS_OBJ)

objclean-y += CLEAN_libc/misc/fts

CLEAN_libc/misc/fts:
	$(do_rm) $(addprefix $(MISC_FTS_OUT)/*., o os)
