From b12189af60a4a86ed715ab9a9915cbdd4548cfa1 Mon Sep 17 00:00:00 2001 From: jb Date: Tue, 10 Mar 1998 07:04:18 +0000 Subject: Trash startup sources from NetBSD in favour of jdp's FreeBSD source now that has been committed. The makefile is derived from the i386-elf version, modified to pick up most of the source (except crt1.c) from i386-elf. With minor changes to i386-elf/crt1.c, this directory can be combined with i386-elf to be a single csu/elf directory for all seasons. --- lib/csu/alpha/Makefile | 64 ++++++++++++++++++-------------------------------- 1 file changed, 23 insertions(+), 41 deletions(-) (limited to 'lib/csu/alpha/Makefile') diff --git a/lib/csu/alpha/Makefile b/lib/csu/alpha/Makefile index 7a3291d..e25f050 100644 --- a/lib/csu/alpha/Makefile +++ b/lib/csu/alpha/Makefile @@ -1,41 +1,23 @@ -# $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 +# +# $Id: Makefile,v 1.1.1.1 1998/03/07 20:27:10 jdp Exp $ +# + +.PATH: ${.CURDIR}/../i386-elf +SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S +OBJS= ${SRCS:N*.h:R:S/$/.o/g} +SOBJS= crtbegin.so crtend.so +CFLAGS+= -Wall -Wno-unused +NOMAN= true +NOPIC= true +NOPROFILE= true +INTERNALLIB= true + +all: ${OBJS} ${SOBJS} + +realinstall: +.for file in ${OBJS} ${SOBJS} + ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + ${file} ${DESTDIR}${LIBDIR}/${file:S/.so$/S.o/} +.endfor + +.include -- cgit v1.1