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