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