Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/Makefile
- This file was added.
# @(#)Makefile 8.2 (Berkeley) 2/3/94 | |||||
# $FreeBSD$ | |||||
PACKAGE= clibs | |||||
SHLIBDIR?= /lib | |||||
.include <src.opts.mk> | |||||
# Force building of libc_pic.a | |||||
MK_TOOLCHAIN= yes | |||||
LIBC_SRCTOP?= ${.CURDIR}/../libc/ | |||||
LIBSYS_SRCTOP?= ${.CURDIR} | |||||
.if exists(${LIBSYS_SRCTOP}/${MACHINE_ARCH}) | |||||
LIBSYS_ARCH=${MACHINE_ARCH} | |||||
.else | |||||
LIBSYS_ARCH=${MACHINE_CPUARCH} | |||||
.endif | |||||
LIB=sys | |||||
SHLIB_MAJOR= 7 | |||||
WARNS?= 2 | |||||
CFLAGS+=-I${LIBC_SRCTOP}/include -I${SRCTOP}/include | |||||
CFLAGS+=-I${LIBSYS_SRCTOP}/${LIBSYS_ARCH} | |||||
.PATH: ${LIBSYS_SRCTOP}/sys ${LIBSYS_SRCTOP}/${LIBSYS_ARCH}/sys | |||||
INSTALL_PIC_ARCHIVE= | |||||
PRECIOUSLIB= | |||||
# | |||||
# Link with static libcompiler_rt.a. | |||||
# | |||||
LDFLAGS+= -nodefaultlibs | |||||
LIBADD+= compiler_rt | |||||
# Define (empty) variables so that make doesn't give substitution | |||||
# errors if the included makefiles don't change these: | |||||
MDSRCS= | |||||
MISRCS= | |||||
MDASM= | |||||
MIASM= | |||||
NOASM= | |||||
.include "${LIBSYS_SRCTOP}/${LIBSYS_ARCH}/Makefile.inc" | |||||
.include "${LIBSYS_SRCTOP}/sys/Makefile.inc" | |||||
VERSION_DEF=${LIBSYS_SRCTOP}/Versions.def | |||||
SYMBOL_MAPS=${SYM_MAPS} | |||||
CFLAGS+= -DSYMBOL_VERSIONING | |||||
# If there are no machine dependent sources, append all the | |||||
# machine-independent sources: | |||||
.if empty(MDSRCS) | |||||
SRCS+= ${MISRCS} | |||||
.else | |||||
# Append machine-dependent sources, then append machine-independent sources | |||||
# for which there is no machine-dependent variant. | |||||
SRCS+= ${MDSRCS} | |||||
.for _src in ${MISRCS} | |||||
.if ${MDSRCS:R:M${_src:R}} == "" | |||||
SRCS+= ${_src} | |||||
.endif | |||||
.endfor | |||||
.endif | |||||
MAN= | |||||
MLINKS= | |||||
.include <bsd.lib.mk> | |||||