blob: 3eb6bb9a2c8e33d631d3ef7faa56c8a8c6cec088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $OpenBSD: Makefile,v 1.5 2003/06/01 17:00:39 deraadt Exp $
LIB= kern
.PATH: ${.CURDIR}/../../../../lib/libkern
.PATH: ${.CURDIR}/../../../../lib/libkern/arch/sparc
.include "${.CURDIR}/../../../../lib/libkern/arch/sparc/Makefile.inc"
CFLAGS= -O2 -nostdinc -I${.CURDIR}/../include -I${.CURDIR}/../../../.. \
-I${.CURDIR}/../../../../lib/libkern \
-I${.CURDIR}/../../../../lib/libkern/arch/sparc -I${.CURDIR}
AFLAGS= -x assembler-with-cpp -traditional-cpp -I${.CURDIR}/../include \
-I${.CURDIR}/../../../.. -I${.CURDIR}/../../../../lib/libkern \
-I${.CURDIR}/../../../../lib/libkern/arch/sparc
# kern routines
SRCS= __main.c ashrdi3.c bzero.S divdi3.c qdivrem.c strlen.S \
strcmp.c strlcat.c strlcpy.c strncmp.c umoddi3.c
SRCS+= umul.S mul.S rem.S sdiv.S udiv.S urem.S
SRCS+= saveregs.S
${OBJS}: ${.CURDIR}/../Makefile.inc
CLEANFILES += machine
NOPROFILE=
NOPIC=
.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir) && !make(obj)
.BEGIN:
@([ -h machine ] || ln -s ${.CURDIR}/../../include machine)
.endif
install:
.include <bsd.lib.mk>
|