blob: bfa80bec1653ee0775797b1608620572171dd375 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# 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
8subdirs += libc/misc/ttyent
9
10CSRC := getttyent.c
11
12MISC_TTYENT_DIR := $(top_srcdir)libc/misc/ttyent
13MISC_TTYENT_OUT := $(top_builddir)libc/misc/ttyent
14
15MISC_TTYENT_SRC := $(patsubst %.c,$(MISC_TTYENT_DIR)/%.c,$(CSRC))
16MISC_TTYENT_OBJ := $(patsubst %.c,$(MISC_TTYENT_OUT)/%.o,$(CSRC))
17
18libc-y += $(MISC_TTYENT_OBJ)
19
20objclean-y += CLEAN_libc/misc/ttyent
21
22CLEAN_libc/misc/ttyent:
23 $(do_rm) $(addprefix $(MISC_TTYENT_OUT)/*., o os)