39 lines
934 B
Makefile
39 lines
934 B
Makefile
# $NetBSD: Makefile,v 1.1 1996/12/16 20:37:55 cgd Exp $
|
|
|
|
PROG= ld.elf_so
|
|
|
|
# Adds SRCS, CFLAGS, LDFLAGS, etc. Must go first so MD startup source
|
|
# is first.
|
|
.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
|
|
|
|
SRCS+= rtld.c reloc.c symbol.c malloc.c xmalloc.c xprintf.c debug.c \
|
|
map_object.c load.c search.c headers.c paths.c
|
|
CFLAGS+= -Wall -DLIBDIR=\"${LIBDIR}\" -D_PATH_RTLD=\"${BINDIR}/${PROG}\"
|
|
CFLAGS+= -DDEBUG -DRTLD_LOADER
|
|
#CFLAGS+= -DRTLD_DEBUG
|
|
|
|
LDADD+= -L${LIBDIR} -non_shared -lc_pic
|
|
DPADD+= ${LIBDIR}/libc_pic.a
|
|
|
|
# to be installed
|
|
HDRS= link.h
|
|
|
|
NOMAN=
|
|
STRIP=
|
|
|
|
.PATH: ${.CURDIR}/${MACHINE_ARCH}
|
|
|
|
${PROG}: ${OBJS} ${DPADD}
|
|
${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LDADD}
|
|
|
|
includes:
|
|
@cd ${.CURDIR}; for i in $(HDRS); do \
|
|
j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
|
|
${DESTDIR}/usr/include"; \
|
|
echo $$j; \
|
|
eval "$$j"; \
|
|
done
|
|
|
|
.include <bsd.prog.mk>
|