1993-11-04 01:09:18 +00:00
|
|
|
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
|
1995-02-09 08:00:20 +00:00
|
|
|
# $Id: Makefile,v 1.13 1995/02/07 13:27:28 jkh Exp $
|
1993-06-12 14:58:17 +00:00
|
|
|
|
1993-11-09 04:26:11 +00:00
|
|
|
CFLAGS+= -DLIBC_SCCS -DDYNAMIC
|
1994-03-09 17:12:59 +00:00
|
|
|
OBJS= crt0.o gcrt0.o c++rt0.o
|
1994-08-22 15:13:41 +00:00
|
|
|
CLEANFILES+= a.out
|
1995-02-07 13:27:29 +00:00
|
|
|
MAN3+= dlopen.3
|
1993-06-12 14:58:17 +00:00
|
|
|
|
|
|
|
all: ${OBJS}
|
|
|
|
|
|
|
|
crt0.o: crt0.c
|
1993-12-24 02:11:37 +00:00
|
|
|
${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC} -o ${.TARGET}
|
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
|
|
|
|
1994-03-09 17:12:59 +00:00
|
|
|
c++rt0.o: c++rt0.c
|
|
|
|
${CC} ${CFLAGS} -fpic -c ${.ALLSRC}
|
|
|
|
@${LD} -x -r ${.TARGET}
|
1993-12-24 02:11:37 +00:00
|
|
|
@mv a.out ${.TARGET}
|
1993-06-12 14:58:17 +00:00
|
|
|
|
1994-08-22 15:13:41 +00:00
|
|
|
gcrt0.o: crt0.c
|
1993-06-12 14:58:17 +00:00
|
|
|
${CC} ${CFLAGS} -c -DMCRT0 ${.ALLSRC} -o ${.TARGET}
|
1993-12-24 02:11:37 +00:00
|
|
|
${LD} -x -r ${.TARGET}
|
|
|
|
mv a.out ${.TARGET}
|
1993-06-12 14:58:17 +00:00
|
|
|
|
|
|
|
install:
|
1993-07-03 00:21:21 +00:00
|
|
|
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
|
1993-06-12 14:58:17 +00:00
|
|
|
${DESTDIR}/usr/lib
|
1995-02-09 08:00:20 +00:00
|
|
|
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/dlfcn.h \
|
|
|
|
${DESTDIR}/usr/include
|
1993-06-12 14:58:17 +00:00
|
|
|
|
|
|
|
depend lint tags:
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|