summaryrefslogtreecommitdiff
path: root/lib/csu/i386/Makefile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
commitd6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch)
treeece253b876159b39c620e62b6c9b1174642e070e /lib/csu/i386/Makefile
initial import of NetBSD tree
Diffstat (limited to 'lib/csu/i386/Makefile')
-rw-r--r--lib/csu/i386/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/csu/i386/Makefile b/lib/csu/i386/Makefile
new file mode 100644
index 00000000000..49d269db30d
--- /dev/null
+++ b/lib/csu/i386/Makefile
@@ -0,0 +1,42 @@
+# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
+# $Id: Makefile,v 1.1 1995/10/18 08:41:17 deraadt Exp $
+
+CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/..
+OBJS= crt0.o gcrt0.o scrt0.o
+SRCS= crt0.c
+
+all: ${OBJS}
+
+crt0.o: ${SRCS}
+ @echo "${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}"
+ @${COMPILE.c} -DCRT0 -DDYNAMIC ${.CURDIR}/${SRCS} -o ${.TARGET}.o
+ @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+
+gcrt0.o: ${SRCS}
+ @echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
+ @${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
+ @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+
+scrt0.o: ${SRCS}
+ @echo "${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
+ @${COMPILE.c} -DSCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
+ @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+
+install:
+ install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
+ ${DESTDIR}/usr/lib
+
+.if make(depend)
+CPPFLAGS+= -DDYNAMIC
+.endif
+
+afterdepend: .depend
+ @(TMP=/tmp/_depend$$$$; \
+ sed -e 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o s\1.o:/' \
+ < .depend > $$TMP; \
+ mv $$TMP .depend)
+
+.include <bsd.prog.mk>