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 $
4 SRCS+= amd64_get_fsbase.c amd64_get_gsbase.c amd64_set_fsbase.c amd64_set_gsbase.c
6 MDASM= vfork.S cerror.S exect.S getcontext.S pipe.S pipe2.S ptrace.S \
7 reboot.S fake_sbrk.S setlogin.S sigreturn.S
9 # Don't generate default code for these syscalls:
10 NOASM= exit.o ftruncate.o getlogin.o \
11 lseek.o mmap.o openbsd_poll.o pread.o \
12 pwrite.o sstk.o truncate.o vfork.o yield.o \
15 PSEUDO= _getlogin.o _exit.o
17 # getcontext.S needs certain offsets
19 # XXX this should be moved to a non-arch directory
21 CLEANFILES+= asmcontext.h asmcontext.o
23 GENASSYM= NM=nm sh ${.CURDIR}/../../sys/kern/genassym.sh
25 asmcontext.o: asmcontext.c
26 ${CC} ${CFLAGS} -fcommon -c ${.IMPSRC}
28 asmcontext.h: asmcontext.o
29 ${GENASSYM} ${.ALLSRC} > ${.TARGET}