lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # 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 | |
| 9 | subdirs += libc/misc/fts |
| 10 | CSRC := fts.c |
| 11 | |
| 12 | MISC_FTS_DIR := $(top_srcdir)libc/misc/fts |
| 13 | MISC_FTS_OUT := $(top_builddir)libc/misc/fts |
| 14 | |
| 15 | MISC_FTS_SRC := $(patsubst %.c,$(MISC_FTS_DIR)/%.c,$(CSRC)) |
| 16 | MISC_FTS_OBJ := $(patsubst %.c,$(MISC_FTS_OUT)/%.o,$(CSRC)) |
| 17 | |
| 18 | libc-$(UCLIBC_HAS_FTS) += $(MISC_FTS_OBJ) |
| 19 | |
| 20 | objclean-y += CLEAN_libc/misc/fts |
| 21 | |
| 22 | CLEAN_libc/misc/fts: |
| 23 | $(do_rm) $(addprefix $(MISC_FTS_OUT)/*., o os) |