03dab16e1d
PR: bin/140089 Reviewed by: jmallett Approved by: ed (co-mentor)
26 lines
489 B
Makefile
26 lines
489 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../common
|
|
|
|
SRCS= crt1.S crti.S crtn.S
|
|
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
|
OBJS+= Scrt1.o gcrt1.o
|
|
CFLAGS+= -I${.CURDIR}/../common \
|
|
-I${.CURDIR}/../../libc/include
|
|
|
|
all: ${OBJS}
|
|
|
|
CLEANFILES= ${OBJS}
|
|
|
|
gcrt1.o: crt1.S
|
|
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
|
|
|
|
Scrt1.o: crt1.S
|
|
${CC} ${CFLAGS} -fPIC -DPIC -c -o Scrt1.o ${.ALLSRC}
|
|
|
|
realinstall:
|
|
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
${OBJS} ${DESTDIR}${LIBDIR}
|
|
|
|
.include <bsd.lib.mk>
|