summaryrefslogtreecommitdiffstats
path: root/lib/csu/alpha/Makefile
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-03-10 07:04:18 +0000
committerjb <jb@FreeBSD.org>1998-03-10 07:04:18 +0000
commitb12189af60a4a86ed715ab9a9915cbdd4548cfa1 (patch)
tree17e3983f8ad464cc75c68c4335c84112c73f50eb /lib/csu/alpha/Makefile
parent8839778db0018a91d6b4398d8d98460787e193bf (diff)
downloadFreeBSD-src-b12189af60a4a86ed715ab9a9915cbdd4548cfa1.zip
FreeBSD-src-b12189af60a4a86ed715ab9a9915cbdd4548cfa1.tar.gz
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.
Diffstat (limited to 'lib/csu/alpha/Makefile')
-rw-r--r--lib/csu/alpha/Makefile64
1 files changed, 23 insertions, 41 deletions
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 <bsd.prog.mk>
+#
+# $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 <bsd.lib.mk>
OpenPOWER on IntegriCloud