1993-11-04 02:09:18 +01:00
|
|
|
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
|
1994-03-09 18:12:59 +01:00
|
|
|
# $Id: Makefile,v 1.8 1993/12/24 02:11:37 jkh Exp $
|
1993-06-12 16:58:17 +02:00
|
|
|
|
1993-11-09 05:26:11 +01:00
|
|
|
CFLAGS+= -DLIBC_SCCS -DDYNAMIC
|
1994-03-09 18:12:59 +01:00
|
|
|
OBJS= crt0.o gcrt0.o c++rt0.o
|
1993-06-12 16:58:17 +02:00
|
|
|
CLEANFILES+= gmon.o moncrt0.o core a.out
|
|
|
|
|
|
|
|
all: ${OBJS}
|
|
|
|
|
|
|
|
crt0.o: crt0.c
|
1993-12-24 03:11:37 +01:00
|
|
|
${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC} -o ${.TARGET}
|
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
|
|
|
|
1994-03-09 18:12:59 +01:00
|
|
|
c++rt0.o: c++rt0.c
|
|
|
|
${CC} ${CFLAGS} -fpic -c ${.ALLSRC}
|
|
|
|
@${LD} -x -r ${.TARGET}
|
1993-12-24 03:11:37 +01:00
|
|
|
@mv a.out ${.TARGET}
|
1993-06-12 16:58:17 +02:00
|
|
|
|
|
|
|
moncrt0.o: crt0.c
|
|
|
|
${CC} ${CFLAGS} -c -DMCRT0 ${.ALLSRC} -o ${.TARGET}
|
1993-12-24 03:11:37 +01:00
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
1993-06-12 16:58:17 +02:00
|
|
|
|
|
|
|
gcrt0.o: moncrt0.o gmon.o
|
1993-12-24 03:11:37 +01:00
|
|
|
${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
|
1993-06-12 16:58:17 +02:00
|
|
|
|
|
|
|
gmon.o: gmon.c gmon.h
|
1993-12-24 03:11:37 +01:00
|
|
|
${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
1993-06-12 16:58:17 +02:00
|
|
|
|
|
|
|
install:
|
1993-07-03 02:21:21 +02:00
|
|
|
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
|
1993-06-12 16:58:17 +02:00
|
|
|
${DESTDIR}/usr/lib
|
|
|
|
|
|
|
|
depend lint tags:
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|