diff options
Diffstat (limited to 'lib/csu/alpha/Makefile')
-rw-r--r-- | lib/csu/alpha/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/csu/alpha/Makefile b/lib/csu/alpha/Makefile new file mode 100644 index 0000000..7a3291d --- /dev/null +++ b/lib/csu/alpha/Makefile @@ -0,0 +1,41 @@ +# $Id$ +# From: NetBSD: Makefile,v 1.15 1997/10/24 21:18:25 thorpej Exp + +CPPFLAGS+= -DLIBC_SCCS -DPIC -DDYNAMIC -DELFSIZE=64 +CPPFLAGS+= -I${.CURDIR}/../../../libexec/ld.elf_so +COPT+= -fPIC + +OBJS= crt0.o gcrt0.o crtbegin.o crtend.o + +CLEANFILES+= core a.out + +all: ${OBJS} + +crt0.o: crt0.c + ${CC} -DCRT0 -c ${.CURDIR}/crt0.c -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +gcrt0.o: crt0.c + ${CC} -DMCRT0 -c ${.CURDIR}/crt0.c -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +crtbegin.o: crtbegin.c + ${CC} -c ${.CURDIR}/crtbegin.c -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +crtend.o: crtend.c + ${CC} -c ${.CURDIR}/crtend.c -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +install: + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ + ${DESTDIR}/usr/lib + rm -f ${DESTDIR}/usr/lib/crtbeginS.o ${DESTDIR}/usr/lib/crtendS.o + ln ${DESTDIR}/usr/lib/crtbegin.o ${DESTDIR}/usr/lib/crtbeginS.o + ln ${DESTDIR}/usr/lib/crtend.o ${DESTDIR}/usr/lib/crtendS.o + +.include <bsd.prog.mk> |