lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # Makefile for uClibc |
| 2 | # |
| 3 | # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org> |
| 4 | # |
| 5 | # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. |
| 6 | # |
| 7 | |
| 8 | subdirs += libc/misc/ttyent |
| 9 | |
| 10 | CSRC := getttyent.c |
| 11 | |
| 12 | MISC_TTYENT_DIR := $(top_srcdir)libc/misc/ttyent |
| 13 | MISC_TTYENT_OUT := $(top_builddir)libc/misc/ttyent |
| 14 | |
| 15 | MISC_TTYENT_SRC := $(patsubst %.c,$(MISC_TTYENT_DIR)/%.c,$(CSRC)) |
| 16 | MISC_TTYENT_OBJ := $(patsubst %.c,$(MISC_TTYENT_OUT)/%.o,$(CSRC)) |
| 17 | |
| 18 | libc-y += $(MISC_TTYENT_OBJ) |
| 19 | |
| 20 | objclean-y += CLEAN_libc/misc/ttyent |
| 21 | |
| 22 | CLEAN_libc/misc/ttyent: |
| 23 | $(do_rm) $(addprefix $(MISC_TTYENT_OUT)/*., o os) |