Deleted Added
full compact
Makefile (281886) Makefile (287227)
1# $FreeBSD: head/lib/libstand/Makefile 281886 2015-04-23 14:04:33Z emaste $
1# $FreeBSD: head/lib/libstand/Makefile 287227 2015-08-27 23:46:42Z imp $
2# Originally from $NetBSD: Makefile,v 1.21 1997/10/26 22:08:38 lukem Exp $
3#
4# Notes:
5# - We don't use the libc strerror/sys_errlist because the string table is
6# quite large.
7#
8
9MK_PROFILE= no

--- 6 unchanged lines hidden (view full) ---

16
17LIB= stand
18NO_PIC=
19INCS= stand.h
20MAN= libstand.3
21
22WARNS?= 0
23
2# Originally from $NetBSD: Makefile,v 1.21 1997/10/26 22:08:38 lukem Exp $
3#
4# Notes:
5# - We don't use the libc strerror/sys_errlist because the string table is
6# quite large.
7#
8
9MK_PROFILE= no

--- 6 unchanged lines hidden (view full) ---

16
17LIB= stand
18NO_PIC=
19INCS= stand.h
20MAN= libstand.3
21
22WARNS?= 0
23
24CFLAGS+= -ffreestanding -Wformat
25CFLAGS+= -I${LIBSTAND_SRC}
26
24CFLAGS+= -I${LIBSTAND_SRC}
25
27.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
28CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
29.endif
30.if ${MACHINE_CPUARCH} == "i386"
31CFLAGS.gcc+= -mpreferred-stack-boundary=2
32.endif
33.if ${MACHINE_CPUARCH} == "amd64"
34CFLAGS+= -fPIC -mno-red-zone
35.endif
36.if ${MACHINE} == "pc98"
37CFLAGS+= -Os
38.endif
39.if ${MACHINE_CPUARCH} == "powerpc"
40CFLAGS+= -msoft-float -D_STANDALONE -DNETIF_DEBUG
41.endif
42.if ${MACHINE_CPUARCH} == "arm"
43CFLAGS+= -msoft-float -D_STANDALONE
44.endif
45.if ${MACHINE_CPUARCH} == "aarch64"
46CFLAGS+= -D_STANDALONE -mgeneral-regs-only
47.endif
48.if ${MACHINE_CPUARCH} == "mips"
49CFLAGS+= -G0 -fno-pic -mno-abicalls
50.endif
51
52# standalone components and stuff we have modified locally
53SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \
54 globals.c pager.c printf.c strdup.c strerror.c strtol.c strtoul.c random.c \
55 sbrk.c twiddle.c zalloc.c zalloc_malloc.c
56
57# private (pruned) versions of libc string functions
58SRCS+= strcasecmp.c
59

--- 103 unchanged lines hidden (view full) ---

163SRCS+= ufs.c nfs.c cd9660.c tftp.c gzipfs.c bzipfs.c
164SRCS+= dosfs.c ext2fs.c
165SRCS+= splitfs.c
166SRCS+= pkgfs.c
167.if ${MK_NAND} != "no"
168SRCS+= nandfs.c
169.endif
170
26# standalone components and stuff we have modified locally
27SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \
28 globals.c pager.c printf.c strdup.c strerror.c strtol.c strtoul.c random.c \
29 sbrk.c twiddle.c zalloc.c zalloc_malloc.c
30
31# private (pruned) versions of libc string functions
32SRCS+= strcasecmp.c
33

--- 103 unchanged lines hidden (view full) ---

137SRCS+= ufs.c nfs.c cd9660.c tftp.c gzipfs.c bzipfs.c
138SRCS+= dosfs.c ext2fs.c
139SRCS+= splitfs.c
140SRCS+= pkgfs.c
141.if ${MK_NAND} != "no"
142SRCS+= nandfs.c
143.endif
144
145.include <bsd.stand.mk>
171.include <bsd.lib.mk>
146.include <bsd.lib.mk>