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/sysvipc |
| 9 | |
| 10 | CSRC := ftok.c __syscall_ipc.c |
| 11 | |
| 12 | # multi source sem.c |
| 13 | CSRC += semget.c semctl.c semop.c semtimedop.c |
| 14 | |
| 15 | # multi source shm.c |
| 16 | CSRC += shmat.c shmctl.c shmdt.c shmget.c |
| 17 | |
| 18 | # multi source msgq.c |
| 19 | CSRC += msgctl.c msgget.c msgrcv.c msgsnd.c |
| 20 | |
| 21 | MISC_SYSVIPC_DIR := $(top_srcdir)libc/misc/sysvipc |
| 22 | MISC_SYSVIPC_OUT := $(top_builddir)libc/misc/sysvipc |
| 23 | |
| 24 | MISC_SYSVIPC_SRC := $(patsubst %.c,$(MISC_SYSVIPC_DIR)/%.c,$(CSRC)) |
| 25 | MISC_SYSVIPC_OBJ := $(patsubst %.c,$(MISC_SYSVIPC_OUT)/%.o,$(CSRC)) |
| 26 | |
| 27 | libc-y += $(MISC_SYSVIPC_OBJ) |
| 28 | |
| 29 | objclean-y += CLEAN_libc/misc/sysvipc |
| 30 | |
| 31 | CLEAN_libc/misc/sysvipc: |
| 32 | $(do_rm) $(addprefix $(MISC_SYSVIPC_OUT)/*., o os) |