xref: /freebsd/lib/libdl/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
119f74c09SKyle EvansPACKAGE=clibs
299ac8154SKonstantin BelousovLIB=dl
399ac8154SKonstantin BelousovSHLIB_MAJOR=1
499ac8154SKonstantin Belousov
599ac8154SKonstantin Belousov.PATH:	${SRCTOP}/lib/libc/gen
699ac8154SKonstantin BelousovCFLAGS+=-I${SRCTOP}/lib/libc/include
7*7f7489ebSKonstantin BelousovRTLD_ELF_DIR=${SRCTOP}/libexec/rtld-elf
8*7f7489ebSKonstantin Belousov.if exists(${RTLD_ELF_DIR}/${MACHINE_ARCH:S/powerpc64le/powerpc64/})
9*7f7489ebSKonstantin BelousovRTLD_ARCH=	${MACHINE_ARCH:S/powerpc64le/powerpc64/}
10*7f7489ebSKonstantin Belousov.else
11*7f7489ebSKonstantin BelousovRTLD_ARCH=	${MACHINE_CPUARCH}
12*7f7489ebSKonstantin Belousov.endif
13*7f7489ebSKonstantin BelousovCFLAGS+= -I${RTLD_ELF_DIR}/${RTLD_ARCH} -I${RTLD_ELF_DIR}
1499ac8154SKonstantin BelousovCFLAGS+=-DIN_LIBDL
1599ac8154SKonstantin BelousovLDFLAGS+=-Wl,-F,libc.so.7
1699ac8154SKonstantin BelousovVERSION_DEF=${SRCTOP}/lib/libc/Versions.def
1799ac8154SKonstantin BelousovSYMBOL_MAPS=${.CURDIR}/Symbol.map
1899ac8154SKonstantin Belousov
1999ac8154SKonstantin BelousovSRCS =	dlfcn.c
2099ac8154SKonstantin Belousov
2199ac8154SKonstantin Belousov.include <bsd.lib.mk>
22