libc: add getcontext, setcontext, makecontext and swapcontext on x86_64
[dragonfly.git] / lib / libc / x86_64 / sys / Makefile.inc
CommitLineData
17030342
MD
1# from: Makefile.inc,v 1.1 1993/09/03 19:04:23 jtc Exp
2# $FreeBSD: src/lib/libc/amd64/sys/Makefile.inc,v 1.29 2003/10/23 06:07:09 peter Exp $
17030342
MD
3
4SRCS+= amd64_get_fsbase.c amd64_get_gsbase.c amd64_set_fsbase.c amd64_set_gsbase.c
5
98b8c7e1 6MDASM= vfork.S brk.S cerror.S exect.S getcontext.S pipe.S ptrace.S \
17030342
MD
7 reboot.S sbrk.S setlogin.S sigreturn.S
8
9# Don't generate default code for these syscalls:
10NOASM= break.o exit.o ftruncate.o getdomainname.o getlogin.o \
11 lseek.o mmap.o openbsd_poll.o pread.o \
12 pwrite.o setdomainname.o sstk.o truncate.o uname.o vfork.o yield.o
13
14PSEUDO= _getlogin.o _exit.o
050a21aa
SS
15
16# getcontext.S needs certain offsets
17#
18# XXX this should be moved to a non-arch directory
19SRCS+= asmcontext.h
20CLEANFILES+= asmcontext.h asmcontext.o
21
22GENASSYM= NM=nm sh ${.CURDIR}/../../sys/kern/genassym.sh
23asmcontext.h: asmcontext.o
24 ${GENASSYM} ${.ALLSRC} > ${.TARGET}
25