nrelease - fix/improve livecd
[dragonfly.git] / lib / libc / x86_64 / sys / Makefile.inc
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 $
3
4 SRCS+=  amd64_get_fsbase.c amd64_get_gsbase.c amd64_set_fsbase.c amd64_set_gsbase.c
5
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
8
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 \
13         fork.o
14
15 PSEUDO= _getlogin.o _exit.o
16
17 # getcontext.S needs certain offsets
18 #
19 # XXX this should be moved to a non-arch directory
20 SRCS+= asmcontext.h
21 CLEANFILES+= asmcontext.h asmcontext.o
22
23 GENASSYM= NM=nm sh ${.CURDIR}/../../sys/kern/genassym.sh
24
25 asmcontext.o: asmcontext.c
26         ${CC} ${CFLAGS} -fcommon -c ${.IMPSRC}
27
28 asmcontext.h: asmcontext.o
29         ${GENASSYM} ${.ALLSRC} > ${.TARGET}
30