Deleted Added
full compact
Makefile.inc (118644) Makefile.inc (119693)
1# $FreeBSD: head/lib/libkse/support/Makefile.inc 118644 2003-08-08 03:41:13Z kan $
1# $FreeBSD: head/lib/libkse/support/Makefile.inc 119693 2003-09-02 19:37:11Z kan $
2
2
3.PATH: ${.CURDIR}/support
3.PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string
4
4
5CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_ARCH}
6
7SYSCALLS= clock_gettime \
8 kse_create \
9 kse_exit \
10 kse_release \
11 kse_thr_interrupt \
12 kse_wakeup \
13 sigaction \
14 sigprocmask \
15 sigtimedwait \
16 write
17
18SYSCALL_SRC= ${SYSCALLS:S/$/.S/}
19SYSCALL_OBJ= ${SYSCALLS:S/$/.So/}
20
21${SYSCALL_SRC}:
22 printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET}
23
24LIBC_OBJS= sigsetops.So \
25 bcopy.So \
26 bzero.So \
27 memcpy.So \
28 memset.So \
29 strcpy.So \
30 strlen.So
31
5SOBJS+= thr_libc.So
32SOBJS+= thr_libc.So
6CLEANFILES+= thr_support.So
33CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS}
7
34
8thr_libc.So: thr_support.So
9 ${CC} -nostdlib -o ${.TARGET} -r thr_support.So -lc_pic
35thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS}
36 ${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC}
37