f92bdbd010
than ".so". The old extension conflicted with well-established naming conventions for dynamically loadable modules. The "clean" targets continue to remove ".so" files too, to deal with old systems.
29 lines
584 B
Makefile
29 lines
584 B
Makefile
#
|
|
# $Id: Makefile,v 1.2 1998/09/07 23:31:59 jdp Exp $
|
|
#
|
|
|
|
SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
|
OBJS+= gcrt1.o
|
|
SOBJS= crtbegin.So crtend.So
|
|
CFLAGS+= -elf
|
|
CFLAGS+= -Wall -Wno-unused
|
|
LDFLAGS+= -elf
|
|
NOMAN= true
|
|
NOPIC= true
|
|
NOPROFILE= true
|
|
INTERNALLIB= true
|
|
|
|
all: ${OBJS} ${SOBJS}
|
|
|
|
gcrt1.o: crt1.c
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
|
|
|
|
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>
|