1 # $NetBSD: Makefile.inc,v 1.9 2007/12/01 11:06:36 yamt Exp $
2 # from: @(#)Makefile 5.5 (Berkeley) 5/21/91
4 CPPFLAGS+= -DLIBC_SCCS -I${.CURDIR}/../common_aout
5 OBJS+= crt0.o gcrt0.o scrt0.o
9 .include <bsd.shlib.mk>
11 .if ${MKPIC} != "no" && ${SHLINKINSTALLDIR} != "/usr/libexec"
19 ${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
20 ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
23 # dependant on crt0.o to pick up header dependencies
24 gcrt0.o: ${SRCS} crt0.o
26 ${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
27 ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
30 scrt0.o: ${SRCS} crt0.o
32 ${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
33 ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
36 # same as crt0.o modulo the dynamic linker is in /libexec
37 lcrt0.o: ${SRCS} crt0.o
39 ${COMPILE.c} -DCRT0 -DDYNAMIC -DLDSO=\"${SHLINKINSTALLDIR}/ld.so\" ${.CURDIR}/${SRCS} -o ${.TARGET}.o
40 ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
51 .if ${MKPIC} != "no" && ${SHLINKINSTALLDIR} != "/usr/libexec"
52 FILESDIR_lcrt0.o:=${SHLIBINSTALLDIR}
53 FILESNAME_lcrt0.o:=crt0.o
56 .include <bsd.prog.mk>