NetBSD/libexec/ld.elf_so/Makefile

49 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.22 1999/02/24 18:31:00 christos Exp $
.include <bsd.own.mk> # for OBJECT_FMT definition
.if ${OBJECT_FMT} == "ELF" && ${MKPIC} != "no"
PROG= ld.elf_so
.endif
.if (${MACHINE} == "alpha") || (${MACHINE_ARCH} == "mips") || \
1999-01-10 21:18:56 +03:00
(${MACHINE_ARCH} == "powerpc") || (${MACHINE} == "sparc64") || \
(${MACHINE} == "i386") || (${MACHINE} == "sparc")
1997-10-22 09:45:08 +04:00
# Adds SRCS, CPPFLAGS, LDFLAGS, etc. Must go first so MD startup source
# is first.
1999-01-10 21:18:56 +03:00
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
.endif
CLIBOBJ!=cd ${.CURDIR}/../../lib/libc; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
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+= -I${.CURDIR}
1997-10-22 09:45:08 +04:00
CPPFLAGS+= -DDEBUG -DRTLD_LOADER
1999-02-07 20:23:03 +03:00
#CPPFLAGS+= -DRTLD_DEBUG -DRTLD_DEBUG_RELOC
LDADD+= -L${DESTDIR}/${LIBDIR} -L${CLIBOBJ} -non_shared -lc_pic
1997-03-25 01:15:37 +03:00
DPADD+= ${LIBC_PIC}
CFLAGS+=-g
.if (${OBJECT_FMT} == "ELF")
# to be installed
INCS= link.h
INCSDIR=/usr/include
.endif
STRIPFLAG=
1999-01-10 21:18:56 +03:00
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
${PROG}: ${OBJS} ${DPADD}
${LD} ${LDFLAGS} -o ${PROG} ${OBJS} ${LDADD}
1997-06-23 08:51:16 +04:00
.endif
MKMAN= no
.include <bsd.prog.mk>