Create crtn.o. Right now it's an empty file...
authorpefo <pefo@openbsd.org>
Mon, 2 Sep 1996 10:04:11 +0000 (10:04 +0000)
committerpefo <pefo@openbsd.org>
Mon, 2 Sep 1996 10:04:11 +0000 (10:04 +0000)
lib/csu/mips/Makefile
lib/csu/mips/crtn.c [new file with mode: 0644]

index 8a914c2..3966a5e 100644 (file)
@@ -1,8 +1,8 @@
 #      from: @(#)Makefile      8.1 (Berkeley) 6/1/93
-#      $Id: Makefile,v 1.4 1996/05/25 09:11:44 pefo Exp $
+#      $Id: Makefile,v 1.5 1996/09/02 10:04:11 pefo Exp $
 
 CFLAGS+=       -DLIBC_SCCS -I${.CURDIR}
-OBJS=          crt0.o gcrt0.o scrt0.o
+OBJS=          crt0.o gcrt0.o scrt0.o crtn.o
 CLEANFILES+=   core a.out
 SRCS=          crt0.c
 DEPS=
@@ -15,6 +15,12 @@ crt0.o: ${SRCS} ${DEPS}
        @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
        @rm -f ${.TARGET}.o
 
+crtn.o: ${SRCS} ${DEPS}
+       @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} ${DEPS}
        @echo "${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}"
        @${COMPILE.c} -DMCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o
diff --git a/lib/csu/mips/crtn.c b/lib/csu/mips/crtn.c
new file mode 100644 (file)
index 0000000..9617679
--- /dev/null
@@ -0,0 +1,8 @@
+/*
+ *     Empty file to create crtn.o.
+ *     This is something constructors/destructors
+ *     later will depend on...
+ */
+
+__crtn()
+{}