summaryrefslogtreecommitdiff
path: root/lib/libpthread/sys/Makefile.inc
blob: bf19b6dd111d98c00380281de95a009eb17b26a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#	$Id: Makefile.inc,v 1.1 1998/08/27 09:00:48 d Exp $
#	$OpenBSD: Makefile.inc,v 1.1 1998/08/27 09:00:48 d Exp $

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

SRCS+=	uthread_error.c _atomic_lock.S _sys_aliases.S

_sys_aliases.S: ${.CURDIR}/Makefile ${LIBCSRCDIR}/sys/Makefile.inc
	(echo '#include "SYS.h"'; \
	 for fn in ${ASM:R} ${PSEUDO:R} ""; do \
	    case $$fn in ${HIDDEN_SYSCALLS:.o=|}"") : stays hidden ;; \
	    		 *) echo "PASSTHRU($$fn)";; \
	     esac; \
	 done ) > ${.TARGET}

CLEANFILES += _sys_aliases.S