Makefile (24dfa658e4294bf87e8df65ac2fd8d5bee7dc2b0) Makefile (afa643ba9a1ad93999c687430f81cc70ea67c0bf)
1# $FreeBSD$
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

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

15LIBSA_CPUARCH?=${MACHINE_CPUARCH}
16LIBC_SRC= ${SRCTOP}/lib/libc
17
18LIB?= sa
19NO_PIC=
20
21# standalone components and stuff we have modified locally
22SRCS+= gzguts.h zutil.h __main.c abort.c assert.c bcd.c environment.c getopt.c gets.c \
1# $FreeBSD$
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

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

15LIBSA_CPUARCH?=${MACHINE_CPUARCH}
16LIBC_SRC= ${SRCTOP}/lib/libc
17
18LIB?= sa
19NO_PIC=
20
21# standalone components and stuff we have modified locally
22SRCS+= gzguts.h zutil.h __main.c abort.c assert.c bcd.c environment.c getopt.c gets.c \
23 globals.c pager.c panic.c printf.c strdup.c strerror.c strtol.c strtoul.c \
23 globals.c pager.c panic.c printf.c strdup.c strerror.c \
24 random.c sbrk.c twiddle.c zalloc.c zalloc_malloc.c
25
26# private (pruned) versions of libc string functions
27SRCS+= strcasecmp.c
28
29.PATH: ${LIBC_SRC}/net
30
31SRCS+= ntoh.c
32
33# string functions from libc
34.PATH: ${LIBC_SRC}/string
35SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \
36 memccpy.c memchr.c memcmp.c memcpy.c memmove.c memset.c \
37 qdivrem.c strcat.c strchr.c strcmp.c strcpy.c stpcpy.c stpncpy.c \
38 strcspn.c strlcat.c strlcpy.c strlen.c strncat.c strncmp.c strncpy.c \
39 strnlen.c strpbrk.c strrchr.c strsep.c strspn.c strstr.c strtok.c swab.c
40
41# stdlib functions from libc
42.PATH: ${LIBC_SRC}/stdlib
24 random.c sbrk.c twiddle.c zalloc.c zalloc_malloc.c
25
26# private (pruned) versions of libc string functions
27SRCS+= strcasecmp.c
28
29.PATH: ${LIBC_SRC}/net
30
31SRCS+= ntoh.c
32
33# string functions from libc
34.PATH: ${LIBC_SRC}/string
35SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \
36 memccpy.c memchr.c memcmp.c memcpy.c memmove.c memset.c \
37 qdivrem.c strcat.c strchr.c strcmp.c strcpy.c stpcpy.c stpncpy.c \
38 strcspn.c strlcat.c strlcpy.c strlen.c strncat.c strncmp.c strncpy.c \
39 strnlen.c strpbrk.c strrchr.c strsep.c strspn.c strstr.c strtok.c swab.c
40
41# stdlib functions from libc
42.PATH: ${LIBC_SRC}/stdlib
43SRCS+= abs.c
43SRCS+= abs.c strtol.c strtoll.c strtoul.c strtoull.c
44
45.if ${MACHINE_CPUARCH} == "arm"
46.PATH: ${LIBC_SRC}/arm/gen
47
48# Do not generate movt/movw, because the relocation fixup for them does not
49# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
50# Also, the fpu is not available in a standalone environment.
51.if ${COMPILER_VERSION} < 30800

--- 109 unchanged lines hidden ---
44
45.if ${MACHINE_CPUARCH} == "arm"
46.PATH: ${LIBC_SRC}/arm/gen
47
48# Do not generate movt/movw, because the relocation fixup for them does not
49# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
50# Also, the fpu is not available in a standalone environment.
51.if ${COMPILER_VERSION} < 30800

--- 109 unchanged lines hidden ---