# $OpenBSD: Makefile,v 1.17 2002/08/21 15:40:30 art Exp $ SUBDIR=ldconfig ldd VPATH=${.CURDIR}/../../lib/libc/string:${.CURDIR}/../../sys/lib/libsa NOMAN= SRCS= ldasm.S loader.c library.c resolve.c dlfcn.c dl_printf.c rtld_machine.c SRCS+= util.c sod.c strsep.c strtol.c dir.c PROG= ld.so MAN= ld.so.8 .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc" .PATH: ${.CURDIR}/${MACHINE_ARCH} CFLAGS += -Werror -Wall CFLAGS += -I${.CURDIR} -D__PIC__ -I${.CURDIR}/${MACHINE_ARCH} \ -Dstrsep=_dl_strsep -Dstrtol=_dl_strtol INSTALL_STRIP= ELF_LDFLAGS+=--shared -Bsymbolic $(PROG): $(LD) -x -e _dl_start $(ELF_LDFLAGS) -o $(PROG) $(OBJS) .include