# 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=
@${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
--- /dev/null
+/*
+ * Empty file to create crtn.o.
+ * This is something constructors/destructors
+ * later will depend on...
+ */
+
+__crtn()
+{}