summaryrefslogtreecommitdiff
path: root/lib/libpthread/sys/Makefile.inc
blob: 2c4ee0df2fd8ed9cb563ac10ebd829037e2e0edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#	$Id: Makefile.inc,v 1.3 1999/01/06 05:36:18 d Exp $
#	$OpenBSD: Makefile.inc,v 1.3 1999/01/06 05:36:18 d Exp $

.PATH:	 ${.CURDIR}/sys ${.CURDIR}/arch/${MACHINE_ARCH}

SRCS+=	uthread_error.c _atomic_lock.c slow_atomic_lock.c 

SRCS+= _sys_aliases.c
CLEANFILES += _sys_aliases.c
_sys_aliases.c: ${.CURDIR}/Makefile ${LIBCSRCDIR}/sys/Makefile.inc
	(echo '#include <sys/cdefs.h>'; \
	 for fn in ${ASM:R} ${PSEUDO:R} ""; do \
	    case $$fn in ${HIDDEN_SYSCALLS:.o=|}"") : stays hidden ;; \
	    		 *) echo "__indr_reference(_thread_sys_$$fn,$$fn);";; \
	     esac; \
	 done ) > ${.TARGET}