blob: a1d0efa3279f5b272d4f314195d3e127b4cf466a [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# FTS Makefile for uClibc
2#
3# Copyright (C) 2009 STMicroelectronics Ltd.
4# Author: Salvatore Cro <salvatore.cro at st.com>
5#
6# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7#
8
9subdirs += libc/misc/fts
10CSRC := fts.c
11
12MISC_FTS_DIR := $(top_srcdir)libc/misc/fts
13MISC_FTS_OUT := $(top_builddir)libc/misc/fts
14
15MISC_FTS_SRC := $(patsubst %.c,$(MISC_FTS_DIR)/%.c,$(CSRC))
16MISC_FTS_OBJ := $(patsubst %.c,$(MISC_FTS_OUT)/%.o,$(CSRC))
17
18libc-$(UCLIBC_HAS_FTS) += $(MISC_FTS_OBJ)
19
20objclean-y += CLEAN_libc/misc/fts
21
22CLEAN_libc/misc/fts:
23 $(do_rm) $(addprefix $(MISC_FTS_OUT)/*., o os)