Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libstand/Makefile
Show All 15 Lines | |||||
LIB= stand | LIB= stand | ||||
NO_PIC= | NO_PIC= | ||||
INCS= stand.h | INCS= stand.h | ||||
MAN= libstand.3 | MAN= libstand.3 | ||||
WARNS?= 0 | WARNS?= 0 | ||||
CFLAGS+= -ffreestanding -Wformat | |||||
CFLAGS+= -I${LIBSTAND_SRC} | CFLAGS+= -I${LIBSTAND_SRC} | ||||
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | |||||
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float | |||||
.endif | |||||
.if ${MACHINE_CPUARCH} == "i386" | |||||
CFLAGS.gcc+= -mpreferred-stack-boundary=2 | |||||
.endif | |||||
.if ${MACHINE_CPUARCH} == "amd64" | |||||
CFLAGS+= -fPIC -mno-red-zone | |||||
.endif | |||||
.if ${MACHINE} == "pc98" | |||||
CFLAGS+= -Os | |||||
.endif | |||||
.if ${MACHINE_CPUARCH} == "powerpc" | |||||
CFLAGS+= -msoft-float -D_STANDALONE -DNETIF_DEBUG | |||||
.endif | |||||
.if ${MACHINE_CPUARCH} == "arm" | |||||
CFLAGS+= -msoft-float -D_STANDALONE | |||||
.endif | |||||
.if ${MACHINE_CPUARCH} == "aarch64" | |||||
CFLAGS+= -D_STANDALONE -mgeneral-regs-only | |||||
.endif | |||||
.if ${MACHINE_CPUARCH} == "mips" | |||||
CFLAGS+= -G0 -fno-pic -mno-abicalls | |||||
.endif | |||||
# standalone components and stuff we have modified locally | # standalone components and stuff we have modified locally | ||||
SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \ | SRCS+= gzguts.h zutil.h __main.c assert.c bcd.c bswap.c environment.c getopt.c gets.c \ | ||||
globals.c pager.c printf.c strdup.c strerror.c strtol.c strtoul.c random.c \ | globals.c pager.c printf.c strdup.c strerror.c strtol.c strtoul.c random.c \ | ||||
sbrk.c twiddle.c zalloc.c zalloc_malloc.c | sbrk.c twiddle.c zalloc.c zalloc_malloc.c | ||||
# private (pruned) versions of libc string functions | # private (pruned) versions of libc string functions | ||||
SRCS+= strcasecmp.c | SRCS+= strcasecmp.c | ||||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
SRCS+= ufs.c nfs.c cd9660.c tftp.c gzipfs.c bzipfs.c | SRCS+= ufs.c nfs.c cd9660.c tftp.c gzipfs.c bzipfs.c | ||||
SRCS+= dosfs.c ext2fs.c | SRCS+= dosfs.c ext2fs.c | ||||
SRCS+= splitfs.c | SRCS+= splitfs.c | ||||
SRCS+= pkgfs.c | SRCS+= pkgfs.c | ||||
.if ${MK_NAND} != "no" | .if ${MK_NAND} != "no" | ||||
SRCS+= nandfs.c | SRCS+= nandfs.c | ||||
.endif | .endif | ||||
.include <bsd.stand.mk> | |||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |