Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/userboot/libstand/Makefile
Show All 16 Lines | |||||
.PATH: ${LIBSTAND_SRC} | .PATH: ${LIBSTAND_SRC} | ||||
LIB= stand | LIB= stand | ||||
INTERNALLIB= | INTERNALLIB= | ||||
MK_PROFILE= no | MK_PROFILE= no | ||||
NO_PIC= | NO_PIC= | ||||
WARNS?= 0 | WARNS?= 0 | ||||
CFLAGS+= -ffreestanding -Wformat -fPIC | |||||
CFLAGS+= -I${LIBSTAND_SRC} | |||||
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" | |||||
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 | |||||
.endif | |||||
.if ${MACHINE_CPUARCH} == "i386" | |||||
CFLAGS.gcc+= -mpreferred-stack-boundary=2 | |||||
CFLAGS+= -mno-sse3 | |||||
.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 | |||||
# 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 94 Lines • ▼ Show 20 Lines | |||||
# network info services: | # network info services: | ||||
SRCS+= bootp.c rarp.c bootparam.c | SRCS+= bootp.c rarp.c bootparam.c | ||||
# boot filesystems | # boot filesystems | ||||
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 | ||||
.include <bsd.stand.mk> | |||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |