xref: /freebsd/lib/libdl/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PACKAGE=clibs
2LIB=dl
3SHLIB_MAJOR=1
4
5.PATH:	${SRCTOP}/lib/libc/gen
6CFLAGS+=-I${SRCTOP}/lib/libc/include
7RTLD_ELF_DIR=${SRCTOP}/libexec/rtld-elf
8.if exists(${RTLD_ELF_DIR}/${MACHINE_ARCH:S/powerpc64le/powerpc64/})
9RTLD_ARCH=	${MACHINE_ARCH:S/powerpc64le/powerpc64/}
10.else
11RTLD_ARCH=	${MACHINE_CPUARCH}
12.endif
13CFLAGS+= -I${RTLD_ELF_DIR}/${RTLD_ARCH} -I${RTLD_ELF_DIR}
14CFLAGS+=-DIN_LIBDL
15LDFLAGS+=-Wl,-F,libc.so.7
16VERSION_DEF=${SRCTOP}/lib/libc/Versions.def
17SYMBOL_MAPS=${.CURDIR}/Symbol.map
18
19SRCS =	dlfcn.c
20
21.include <bsd.lib.mk>
22