blob: d986197249eca8a488b52a861ffa1b75191c3993 (
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
40
41
42
43
44
45
46
47
48
49
50
51
|
# $OpenBSD: Makefile,v 1.7 2019/04/20 22:59:04 deraadt Exp $
.include "${.CURDIR}/../Makefile.inc"
LIB= sa
.PATH: ${.CURDIR}/../../../../lib/libsa
CLEANFILES += machine mips64
CFLAGS+= ${CEXTRAFLAGS} ${SAABI} -nostdinc -mno-abicalls -D_NO_ABICALLS \
-fno-pie \
-I${.CURDIR} -I${.CURDIR}/../include -I${.CURDIR}/../.. \
-I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
-I${.CURDIR}/../../../../lib/libsa \
-I${.OBJDIR}
# stand routines
SRCS= alloc.c cons.c ctime.c exit.c getchar.c getfile.c getln.c globals.c \
memcmp.c memcpy.c memmove.c memset.c printf.c putchar.c \
snprintf.c strchr.c strcmp.c strerror.c strncmp.c strncpy.c strtol.c
# io routines
SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fstat.c ioctl.c \
lseek.c open.c read.c readdir.c stat.c write.c
#SRCS+= cread.c
#CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD
# boot filesystems
SRCS+= ufs.c cd9660.c
CFLAGS+=-DNO_NET
SRCS+= loadfile.c
${OBJS}: ${.CURDIR}/../Makefile.inc
NOPROFILE=
NOPIC=
.if !make(clean) && !make(cleandir) && !make(includes) && !make(obj)
.BEGIN:
@([ -h machine ] || ln -s ${.CURDIR}/../../include machine)
@([ -h mips64 ] || ln -s ${.CURDIR}/../../../mips64/include mips64)
CLEANFILES+= machine mips64
.endif
install:
.include <bsd.lib.mk>
|