1998-03-07 20:27:11 +00:00
|
|
|
#
|
1998-09-07 23:32:00 +00:00
|
|
|
# $Id: Makefile,v 1.1.1.1 1998/03/07 20:27:10 jdp Exp $
|
1998-03-07 20:27:11 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S
|
|
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
1998-09-07 23:32:00 +00:00
|
|
|
OBJS+= gcrt1.o
|
1998-03-07 20:27:11 +00:00
|
|
|
SOBJS= crtbegin.so crtend.so
|
|
|
|
CFLAGS+= -elf
|
|
|
|
CFLAGS+= -Wall -Wno-unused
|
|
|
|
LDFLAGS+= -elf
|
|
|
|
NOMAN= true
|
|
|
|
NOPIC= true
|
|
|
|
NOPROFILE= true
|
|
|
|
INTERNALLIB= true
|
|
|
|
|
|
|
|
all: ${OBJS} ${SOBJS}
|
|
|
|
|
1998-09-07 23:32:00 +00:00
|
|
|
gcrt1.o: crt1.c
|
|
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
|
|
|
|
|
1998-03-07 20:27:11 +00:00
|
|
|
realinstall:
|
|
|
|
.for file in ${OBJS} ${SOBJS}
|
|
|
|
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
|
|
${file} ${DESTDIR}${LIBDIR}/${file:S/.so$/S.o/}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|