25 lines
499 B
Makefile
25 lines
499 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
SRCS= crt1.c crti.S crtn.S
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
|
OBJS+= gcrt1.o
|
|
CFLAGS+= -Wall -Wno-unused \
|
|
-I${.CURDIR}/../common \
|
|
-I${.CURDIR}/../../libc/include
|
|
NOLIB= true
|
|
|
|
all: ${OBJS} ${SOBJS}
|
|
|
|
gcrt1.o: crt1.c
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
|
|
|
|
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>
|