update for .S and MACHINE_ARCH
This commit is contained in:
parent
e3b636c256
commit
0ada107897
|
@ -1,5 +1,5 @@
|
|||
# $Id: Makefile.inc,v 1.2 1993/11/05 22:44:00 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.3 1993/12/04 02:33:35 cgd Exp $
|
||||
|
||||
KMINCLUDES= arch/i386/SYS.h arch/i386/DEFS.h
|
||||
KMSRCS= bcmp.s bzero.s ffs.s strcat.s strcmp.s strcpy.s strlen.s \
|
||||
htonl.s htons.s ntohl.s ntohs.s
|
||||
KMSRCS= bcmp.S bzero.S ffs.S strcat.S strcmp.S strcpy.S strlen.S \
|
||||
htonl.S htons.S ntohl.S ntohs.S
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
# $Id: Makefile.inc,v 1.1 1993/10/07 00:21:18 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.2 1993/12/04 02:34:01 cgd Exp $
|
||||
|
||||
# `source' files built from m4 source
|
||||
# the name `div.o' is taken for the ANSI C `div' function, hence sdiv here
|
||||
SRCS+= rem.s sdiv.s udiv.s urem.s
|
||||
CLEANFILES+=rem.s sdiv.s udiv.s urem.s
|
||||
SRCS+= rem.S sdiv.S udiv.S urem.S
|
||||
CLEANFILES+=rem.S sdiv.S udiv.S urem.S
|
||||
|
||||
sdiv.s: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
sdiv.S: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
||||
@(echo "define(NAME,\`.div')define(OP,\`div')define(S,\`true')"; \
|
||||
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
||||
@chmod 444 ${.TARGET}
|
||||
|
||||
udiv.s: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
udiv.S: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
||||
@(echo "define(NAME,\`.udiv')define(OP,\`div')define(S,\`false')"; \
|
||||
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
||||
@chmod 444 ${.TARGET}
|
||||
|
||||
rem.s: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
rem.S: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
||||
@(echo "define(NAME,\`.rem')define(OP,\`rem')define(S,\`true')"; \
|
||||
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
||||
@chmod 444 ${.TARGET}
|
||||
|
||||
urem.s: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
urem.S: ${.CURDIR}/sparc/gen/divrem.m4
|
||||
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
||||
@(echo "define(NAME,\`.urem')define(OP,\`rem')define(S,\`false')"; \
|
||||
cat ${.ALLSRC}) | m4 > ${.TARGET}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# from: @(#)Makefile.inc 5.3 (Berkeley) 2/20/91
|
||||
# $Id: Makefile.inc,v 1.3 1993/10/07 00:22:37 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.4 1993/12/04 02:34:20 cgd Exp $
|
||||
|
||||
# compat-43 sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/compat-43 ${.CURDIR}/compat-43
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/compat-43 ${.CURDIR}/compat-43
|
||||
|
||||
SRCS+= creat.c getwd.c killpg.c setpgrp.c sigcompat.c
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# $Id: Makefile.inc,v 1.1 1993/10/17 00:45:45 pk Exp $
|
||||
# $Id: Makefile.inc,v 1.2 1993/12/04 02:34:47 cgd Exp $
|
||||
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/dl ${.CURDIR}/dl
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/dl ${.CURDIR}/dl
|
||||
|
||||
SRCS+= dl.c
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# from: @(#)Makefile.inc 5.21 (Berkeley) 5/24/91
|
||||
# $Id: Makefile.inc,v 1.28 1993/12/03 19:40:23 jtc Exp $
|
||||
# $Id: Makefile.inc,v 1.29 1993/12/04 02:35:35 cgd Exp $
|
||||
|
||||
# gen sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/gen ${.CURDIR}/gen
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/gen ${.CURDIR}/gen
|
||||
|
||||
SRCS+= alarm.c assert.c clock.c confstr.c ctermid.c ctime.c ctype_.c \
|
||||
cuserid.c difftime.c \
|
||||
|
@ -23,26 +23,26 @@ SRCS+= alarm.c assert.c clock.c confstr.c ctermid.c ctime.c ctype_.c \
|
|||
ualarm.c unvis.c usleep.c utime.c valloc.c vis.c wait.c wait3.c \
|
||||
waitpid.c
|
||||
|
||||
.if (${MACHINE} == "hp300")
|
||||
SRCS+= _setjmp.s alloca.s fabs.s ldexp.s modf.s setjmp.s
|
||||
SRCS+= adddf3.s addsf3.s ashlsi3.s ashrsi3.s cmpdf2.s cmpsf2.s divdf3.s \
|
||||
divsf3.s divsi3.s extendsfdf2.s fixdfsi.s fixunsdfsi.s \
|
||||
floatsidf.s lshlsi3.s lshrsi3.s modsi3.s muldf3.s mulsf3.s mulsi3.s \
|
||||
negdf2.s negsf2.s saveregs.c subdf3.s subsf3.s truncdfsf2.s udivsi3.s \
|
||||
umodsi3.s umulsi3.s
|
||||
.elif (${MACHINE} == "i386")
|
||||
SRCS+= _setjmp.s alloca.s fabs.s ldexp.c modf.s setjmp.s sigsetjmp.s
|
||||
SRCS+= divsi3.s fixdfsi.s fixunsdfsi.s udivsi3.s
|
||||
.elif (${MACHINE} == "pc532")
|
||||
SRCS+= __main.c _setjmp.s alloca.s fabs.s frexp.s infinity.c isinf.c
|
||||
SRCS+= ldexp.s modf.s setjmp.s
|
||||
.elif (${MACHINE} == "tahoe")
|
||||
.if (${MACHINE_ARCH} == "m68k")
|
||||
SRCS+= _setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S
|
||||
SRCS+= adddf3.S addsf3.S ashlsi3.S ashrsi3.S cmpdf2.S cmpsf2.S divdf3.S \
|
||||
divsf3.S divsi3.S extendsfdf2.S fixdfsi.S fixunsdfsi.S \
|
||||
floatsidf.S lshlsi3.S lshrsi3.S modsi3.S muldf3.S mulsf3.S mulsi3.S \
|
||||
negdf2.S negsf2.S saveregs.c subdf3.S subsf3.S truncdfsf2.S udivsi3.S \
|
||||
umodsi3.S umulsi3.S
|
||||
.elif (${MACHINE_ARCH} == "i386")
|
||||
SRCS+= _setjmp.S alloca.S fabs.S ldexp.c modf.S setjmp.S sigsetjmp.S
|
||||
SRCS+= divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S
|
||||
.elif (${MACHINE_ARCH} == "pc532")
|
||||
SRCS+= __main.c _setjmp.S alloca.S fabs.S frexp.S infinity.c isinf.c
|
||||
SRCS+= ldexp.S modf.S setjmp.S
|
||||
.elif (${MACHINE_ARCH} == "tahoe")
|
||||
CFLAGS+=-I/sys
|
||||
SRCS+= _setjmp.s alloca.s fabs.s ldexp.s modf.s setjmp.s
|
||||
SRCS+= udiv.s urem.s
|
||||
.elif (${MACHINE} == "vax")
|
||||
SRCS+= _setjmp.s alloca.s fabs.s ldexp.s modf.s setjmp.s
|
||||
SRCS+= udiv.s urem.s
|
||||
SRCS+= _setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S
|
||||
SRCS+= udiv.S urem.S
|
||||
.elif (${MACHINE_ARCH} == "vax")
|
||||
SRCS+= _setjmp.S alloca.S fabs.S ldexp.S modf.S setjmp.S
|
||||
SRCS+= udiv.S urem.S
|
||||
.endif
|
||||
|
||||
MAN3+= alarm.0 clock.0 ctermid.0 ctime.0 ctype.0 cuserid.0 directory.0 err.0 \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# from: @(#)Makefile.inc 5.1 (Berkeley) 2/18/91
|
||||
# $Id: Makefile.inc,v 1.3 1993/10/07 00:23:13 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.4 1993/12/04 02:36:00 cgd Exp $
|
||||
|
||||
# locale sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/locale ${.CURDIR}/locale
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/locale ${.CURDIR}/locale
|
||||
|
||||
SRCS+= lconv.c localeconv.c setlocale.c
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# from: @(#)Makefile.inc 5.3 (Berkeley) 2/21/91
|
||||
# $Id: Makefile.inc,v 1.7 1993/10/07 00:23:27 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.8 1993/12/04 02:36:36 cgd Exp $
|
||||
|
||||
# net sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/net ${.CURDIR}/net
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/net ${.CURDIR}/net
|
||||
|
||||
SRCS+= gethostnamadr.c getnetbyaddr.c getnetbyname.c getnetent.c \
|
||||
getproto.c getprotoent.c getprotoname.c getservbyname.c \
|
||||
|
@ -13,16 +13,16 @@ SRCS+= gethostnamadr.c getnetbyaddr.c getnetbyname.c getnetent.c \
|
|||
res_debug.c res_init.c res_mkquery.c res_query.c res_send.c \
|
||||
send.c sethostent.c
|
||||
|
||||
.if (${MACHINE} == "hp300")
|
||||
SRCS+= htonl.s htons.s ntohl.s ntohs.s
|
||||
.elif (${MACHINE} == "i386")
|
||||
SRCS+= htonl.s htons.s ntohl.s ntohs.s
|
||||
.elif (${MACHINE} == "pc532")
|
||||
SRCS+= ntoh.s
|
||||
.elif (${MACHINE} == "tahoe")
|
||||
SRCS+= htonl.s htons.s ntohl.s ntohs.s
|
||||
.elif (${MACHINE} == "vax")
|
||||
SRCS+= htonl.s htons.s ntohl.s ntohs.s
|
||||
.if (${MACHINE_ARCH} == "hp300")
|
||||
SRCS+= htonl.S htons.S ntohl.S ntohs.S
|
||||
.elif (${MACHINE_ARCH} == "i386")
|
||||
SRCS+= htonl.S htons.S ntohl.S ntohs.S
|
||||
.elif (${MACHINE_ARCH} == "pc532")
|
||||
SRCS+= ntoh.S
|
||||
.elif (${MACHINE_ARCH} == "tahoe")
|
||||
SRCS+= htonl.S htons.S ntohl.S ntohs.S
|
||||
.elif (${MACHINE_ARCH} == "vax")
|
||||
SRCS+= htonl.S htons.S ntohl.S ntohs.S
|
||||
.else
|
||||
SRCS+= htonl.c htons.c ntohl.c ntohs.c
|
||||
.endif
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
|
||||
# $Id: Makefile.inc,v 1.2 1993/10/07 00:23:40 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.3 1993/12/04 02:37:06 cgd Exp $
|
||||
|
||||
# Quad support
|
||||
SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c fixdfdi.c \
|
||||
|
@ -8,4 +8,4 @@ SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c fixdfdi.c \
|
|||
negdi2.c notdi2.c qdivrem.c subdi3.c ucmpdi2.c udivdi3.c umoddi3.c \
|
||||
xordi3.c
|
||||
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/quad ${.CURDIR}/quad
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/quad ${.CURDIR}/quad
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# from: @(#)Makefile.inc 5.6 (Berkeley) 6/4/91
|
||||
# $Id: Makefile.inc,v 1.13 1993/10/22 17:26:43 jtc Exp $
|
||||
# $Id: Makefile.inc,v 1.14 1993/12/04 02:38:30 cgd Exp $
|
||||
|
||||
# stdlib sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/stdlib ${.CURDIR}/stdlib
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/stdlib ${.CURDIR}/stdlib
|
||||
|
||||
SRCS+= a64l.c abort.c atexit.c atoi.c atol.c bsearch.c calloc.c cfree.c \
|
||||
exit.c getenv.c getopt.c heapsort.c l64a.c malloc.c multibyte.c \
|
||||
|
@ -11,16 +11,16 @@ SRCS+= a64l.c abort.c atexit.c atoi.c atol.c bsearch.c calloc.c cfree.c \
|
|||
_rand48.c drand48.c erand48.c jrand48.c lcong48.c lrand48.c \
|
||||
mrand48.c nrand48.c seed48.c srand48.c
|
||||
|
||||
.if (${MACHINE} == "hp300")
|
||||
SRCS+= abs.s div.c labs.c ldiv.c atof.c
|
||||
.elif (${MACHINE} == "i386")
|
||||
SRCS+= abs.s div.s labs.s ldiv.s atof.c
|
||||
.elif (${MACHINE} == "pc532")
|
||||
SRCS+= abs.s div.c labs.c ldiv.c atof.c
|
||||
.elif (${MACHINE} == "tahoe")
|
||||
SRCS+= abs.s div.c labs.c ldiv.c atof.s
|
||||
.elif (${MACHINE} == "vax")
|
||||
SRCS+= abs.s div.c labs.c ldiv.c atof.s
|
||||
.if (${MACHINE_ARCH} == "hp300")
|
||||
SRCS+= abs.S div.c labs.c ldiv.c atof.c
|
||||
.elif (${MACHINE_ARCH} == "i386")
|
||||
SRCS+= abs.S div.S labs.S ldiv.S atof.c
|
||||
.elif (${MACHINE_ARCH} == "pc532")
|
||||
SRCS+= abs.S div.c labs.c ldiv.c atof.c
|
||||
.elif (${MACHINE_ARCH} == "tahoe")
|
||||
SRCS+= abs.S div.c labs.c ldiv.c atof.S
|
||||
.elif (${MACHINE_ARCH} == "vax")
|
||||
SRCS+= abs.S div.c labs.c ldiv.c atof.S
|
||||
.else
|
||||
SRCS+= abs.c div.c labs.c ldiv.c atof.c
|
||||
.endif
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
# from: @(#)Makefile.inc 5.6 (Berkeley) 3/5/91
|
||||
# $Id: Makefile.inc,v 1.14 1993/10/18 20:24:41 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.15 1993/12/04 02:39:02 cgd Exp $
|
||||
|
||||
# string sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/string ${.CURDIR}/string
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/string ${.CURDIR}/string
|
||||
|
||||
SRCS+= memccpy.c strcasecmp.c strcoll.c strdup.c strerror.c \
|
||||
strftime.c strmode.c strtok.c strxfrm.c
|
||||
|
||||
.if (${MACHINE} == "hp300")
|
||||
SRCS+= bcmp.s bcopy.s bzero.s ffs.s index.s memchr.c memcmp.c memset.c \
|
||||
rindex.s strcat.c strcmp.s strcpy.s strcspn.c strlen.s \
|
||||
strncat.c strncmp.s strncpy.s strpbrk.c strsep.c \
|
||||
.if (${MACHINE_ARCH} == "hp300")
|
||||
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.S memchr.c memcmp.c memset.c \
|
||||
rindex.S strcat.c strcmp.S strcpy.S strcspn.c strlen.S \
|
||||
strncat.c strncmp.S strncpy.S strpbrk.c strsep.c \
|
||||
strspn.c strstr.c swab.c
|
||||
.elif (${MACHINE} == "i386")
|
||||
SRCS+= bcmp.s bcopy.s bzero.s ffs.s index.s memchr.s memcmp.s memset.s \
|
||||
rindex.s strcat.s strcmp.s strcpy.s strcspn.c strlen.s \
|
||||
strncat.c strncmp.s strncpy.c strpbrk.c strsep.c \
|
||||
strspn.c strstr.c swab.s
|
||||
SRCS+= memmove.s strchr.s strrchr.s
|
||||
.elif (${MACHINE} == "pc532")
|
||||
.elif (${MACHINE_ARCH} == "i386")
|
||||
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.S memchr.S memcmp.S memset.S \
|
||||
rindex.S strcat.S strcmp.S strcpy.S strcspn.c strlen.S \
|
||||
strncat.c strncmp.S strncpy.c strpbrk.c strsep.c \
|
||||
strspn.c strstr.c swab.S
|
||||
SRCS+= memmove.S strchr.S strrchr.S
|
||||
.elif (${MACHINE_ARCH} == "pc532")
|
||||
SRCS+= bcmp.c bcopy.c bzero.c ffs.c index.c memchr.c memcmp.c memset.c \
|
||||
rindex.c strcat.c strcmp.c strcpy.c strcspn.c strlen.c \
|
||||
strncat.c strncmp.c strncpy.c strpbrk.c strsep.c \
|
||||
strspn.c strstr.c swab.c
|
||||
SRCS+= memmove.c strchr.c strrchr.c
|
||||
.elif (${MACHINE} == "tahoe")
|
||||
SRCS+= bcmp.s bcopy.s bzero.s ffs.s index.c memchr.c memcmp.s memset.c \
|
||||
rindex.c strcat.s strcmp.s strcpy.s strcspn.c strlen.s \
|
||||
strncat.s strncmp.s strncpy.s strpbrk.c strsep.c \
|
||||
.elif (${MACHINE_ARCH} == "tahoe")
|
||||
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.c memchr.c memcmp.S memset.c \
|
||||
rindex.c strcat.S strcmp.S strcpy.S strcspn.c strlen.S \
|
||||
strncat.S strncmp.S strncpy.S strpbrk.c strsep.c \
|
||||
strspn.c strstr.c swab.c
|
||||
SRCS+= memmove.s
|
||||
.elif (${MACHINE} == "vax")
|
||||
SRCS+= bcmp.s bcopy.s bzero.s ffs.s index.c memchr.s memcmp.s memset.s \
|
||||
rindex.s strcat.s strcmp.s strcpy.s strcspn.s strlen.s \
|
||||
strncat.s strncmp.s strncpy.s strpbrk.s strsep.s \
|
||||
strspn.s strstr.s swab.c
|
||||
SRCS+= memmove.s strchr.s strrchr.s
|
||||
SRCS+= memmove.S
|
||||
.elif (${MACHINE_ARCH} == "vax")
|
||||
SRCS+= bcmp.S bcopy.S bzero.S ffs.S index.c memchr.S memcmp.S memset.S \
|
||||
rindex.S strcat.S strcmp.S strcpy.S strcspn.S strlen.S \
|
||||
strncat.S strncmp.S strncpy.S strpbrk.S strsep.S \
|
||||
strspn.S strstr.S swab.c
|
||||
SRCS+= memmove.S strchr.S strrchr.S
|
||||
.endif
|
||||
|
||||
# if no machine specific memmove(3), build one out of bcopy(3).
|
||||
.if empty(SRCS:Mmemmove.s)
|
||||
.if empty(SRCS:Mmemmove.S)
|
||||
OBJS+= memmove.o
|
||||
memmove.o: bcopy.c
|
||||
${CC} -DMEMMOVE ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
|
||||
|
@ -55,8 +55,8 @@ memmove.po: bcopy.c
|
|||
# if no machine specific memcpy(3), build one out of bcopy(3).
|
||||
# if there is a machine specific memmove(3), we'll assume it aliases
|
||||
# memcpy(3).
|
||||
.if empty(SRCS:Mmemcpy.s)
|
||||
.if empty(SRCS:Mmemmove.s)
|
||||
.if empty(SRCS:Mmemcpy.S)
|
||||
.if empty(SRCS:Mmemmove.S)
|
||||
OBJS+= memcpy.o
|
||||
memcpy.o: bcopy.c
|
||||
${CC} -DMEMCOPY ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
|
||||
|
@ -71,7 +71,7 @@ memcpy.po: bcopy.c
|
|||
.endif
|
||||
|
||||
# if no machine specific strchr(3), build one out of index(3).
|
||||
.if empty(SRCS:Mstrchr.s)
|
||||
.if empty(SRCS:Mstrchr.S)
|
||||
OBJS+= strchr.o
|
||||
strchr.o: index.c
|
||||
${CC} -DSTRCHR ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
|
||||
|
@ -85,7 +85,7 @@ strchr.po: index.c
|
|||
.endif
|
||||
|
||||
# if no machine specific strrchr(3), build one out of rindex(3).
|
||||
.if empty(SRCS:Mstrrchr.s)
|
||||
.if empty(SRCS:Mstrrchr.S)
|
||||
OBJS+= strrchr.o
|
||||
strrchr.o: rindex.c
|
||||
${CC} -DSTRRCHR ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# from: @(#)Makefile.inc 5.11 (Berkeley) 6/23/91
|
||||
# $Id: Makefile.inc,v 1.14 1993/11/21 19:32:11 mycroft Exp $
|
||||
# $Id: Makefile.inc,v 1.15 1993/12/04 02:39:41 cgd Exp $
|
||||
|
||||
# sys sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/sys ${.CURDIR}/sys
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/sys ${.CURDIR}/sys
|
||||
|
||||
# modules with non-default implementations on at least one architecture:
|
||||
SRCS+= Ovfork.s brk.s cerror.s exect.s fork.s pipe.s ptrace.s reboot.s \
|
||||
sbrk.s setlogin.s sigpending.s sigprocmask.s sigreturn.s \
|
||||
sigsuspend.s syscall.s
|
||||
SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S pipe.S ptrace.S reboot.S \
|
||||
sbrk.S setlogin.S sigpending.S sigprocmask.S sigreturn.S \
|
||||
sigsuspend.S syscall.S
|
||||
|
||||
# modules with default implementations on all architectures:
|
||||
ASM= accept.o access.o acct.o adjtime.o async_daemon.o bind.o chdir.o \
|
||||
|
@ -39,38 +39,38 @@ SPSEUDO=${PSEUDO:.o=.so}
|
|||
|
||||
OBJS+= ${ASM} ${PSEUDO}
|
||||
|
||||
${PASM}: ${.CURDIR}/arch/${MACHINE}/SYS.h /usr/include/sys/syscall.h
|
||||
${PASM}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
|
||||
@echo creating ${.TARGET}
|
||||
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
|
||||
${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}
|
||||
@${LD} -X -r ${.TARGET}
|
||||
@mv a.out ${.TARGET}
|
||||
|
||||
${SASM}: ${.CURDIR}/arch/${MACHINE}/SYS.h /usr/include/sys/syscall.h
|
||||
${SASM}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
|
||||
@echo creating ${.TARGET}
|
||||
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
|
||||
${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.TARGET}
|
||||
|
||||
${ASM}: ${.CURDIR}/arch/${MACHINE}/SYS.h /usr/include/sys/syscall.h
|
||||
${ASM}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
|
||||
@echo creating ${.TARGET}
|
||||
@printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' | \
|
||||
${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}
|
||||
@${LD} -x -r ${.TARGET}
|
||||
@mv a.out ${.TARGET}
|
||||
|
||||
${PPSEUDO}: ${.CURDIR}/arch/${MACHINE}/SYS.h /usr/include/sys/syscall.h
|
||||
${PPSEUDO}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
|
||||
@echo creating ${.TARGET}
|
||||
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
|
||||
${CPP} -DPROF ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}
|
||||
@${LD} -X -r ${.TARGET}
|
||||
@mv a.out ${.TARGET}
|
||||
|
||||
${SPSEUDO}: ${.CURDIR}/arch/${MACHINE}/SYS.h /usr/include/sys/syscall.h
|
||||
${SPSEUDO}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
|
||||
@echo creating ${.TARGET}
|
||||
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
|
||||
${CPP} -DPIC ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -k -o ${.TARGET}
|
||||
|
||||
${PSEUDO}: ${.CURDIR}/arch/${MACHINE}/SYS.h /usr/include/sys/syscall.h
|
||||
${PSEUDO}: ${.CURDIR}/arch/${MACHINE_ARCH}/SYS.h /usr/include/sys/syscall.h
|
||||
@echo creating ${.TARGET}
|
||||
@printf '#include "SYS.h"\nPSEUDO(${.PREFIX},${.PREFIX:S/_//})\n' | \
|
||||
${CPP} ${CFLAGS:M-[ID]*} ${AINC} | ${AS} -o ${.TARGET}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# from: @(#)Makefile.inc 5.3 (Berkeley) 2/20/91
|
||||
# $Id: Makefile.inc,v 1.4 1993/10/07 00:24:30 cgd Exp $
|
||||
# $Id: Makefile.inc,v 1.5 1993/12/04 02:40:06 cgd Exp $
|
||||
|
||||
# yp sources
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE}/yp ${.CURDIR}/yp
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/yp ${.CURDIR}/yp
|
||||
|
||||
SRCS+= xdryp.c yplib.c
|
||||
|
||||
|
|
Loading…
Reference in New Issue