blob: 49ae5a5035074bcf3a278497f9ef54f902bd14d8 [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/utmp
9
10CSRC := utent.c wtent.c
11
12ifeq ($(UCLIBC_HAS_UTMPX),y)
13CSRC += utxent.c
14endif
15
16MISC_UTMP_DIR := $(top_srcdir)libc/misc/utmp
17MISC_UTMP_OUT := $(top_builddir)libc/misc/utmp
18
19MISC_UTMP_SRC := $(patsubst %.c,$(MISC_UTMP_DIR)/%.c,$(CSRC))
20MISC_UTMP_OBJ := $(patsubst %.c,$(MISC_UTMP_OUT)/%.o,$(CSRC))
21
22libc-y += $(MISC_UTMP_OBJ)
23
24objclean-y += CLEAN_libc/misc/utmp
25
26CLEAN_libc/misc/utmp:
27 $(do_rm) $(addprefix $(MISC_UTMP_OUT)/*., o os)