1997-10-22 09:45:08 +04:00
|
|
|
# $NetBSD: Makefile,v 1.8 1997/10/22 05:45:08 lukem Exp $
|
1996-12-16 23:37:55 +03:00
|
|
|
|
1997-06-23 08:51:16 +04:00
|
|
|
.if ${MACHINE} == "alpha"
|
1996-12-16 23:37:55 +03:00
|
|
|
PROG= ld.elf_so
|
|
|
|
|
1997-10-22 09:45:08 +04:00
|
|
|
# Adds SRCS, CPPFLAGS, LDFLAGS, etc. Must go first so MD startup source
|
1996-12-16 23:37:55 +03:00
|
|
|
# is first.
|
1997-04-10 21:39:20 +04:00
|
|
|
.if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc)
|
1996-12-16 23:37:55 +03:00
|
|
|
.include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
|
1997-04-10 21:39:20 +04:00
|
|
|
.endif
|
1996-12-16 23:37:55 +03:00
|
|
|
|
|
|
|
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
|
1997-10-22 09:45:08 +04:00
|
|
|
CPPFLAGS+= -Wall -DLIBDIR=\"${LIBDIR}\" -D_PATH_RTLD=\"${BINDIR}/${PROG}\"
|
|
|
|
CPPFLAGS+= -DDEBUG -DRTLD_LOADER
|
|
|
|
#CPPFLAGS+= -DRTLD_DEBUG
|
1996-12-16 23:37:55 +03:00
|
|
|
|
|
|
|
LDADD+= -L${LIBDIR} -non_shared -lc_pic
|
1997-03-25 01:15:37 +03:00
|
|
|
DPADD+= ${LIBC_PIC}
|
1996-12-16 23:37:55 +03:00
|
|
|
|
|
|
|
# to be installed
|
|
|
|
HDRS= link.h
|
|
|
|
|
1997-04-18 02:17:27 +04:00
|
|
|
STRIPFLAG=
|
1996-12-16 23:37:55 +03:00
|
|
|
|
|
|
|
.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
|
1997-06-23 08:51:16 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NOMAN=
|
1996-12-16 23:37:55 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|