summaryrefslogtreecommitdiffstats
path: root/lib/csu/i386-elf
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-20 13:31:35 +0000
committerru <ru@FreeBSD.org>2004-01-20 13:31:35 +0000
commitaafbac06b87670bc429947442eb140e447f3326f (patch)
tree373b380ee5fd275504fbc655fbae8ce5544fccbd /lib/csu/i386-elf
parent65c0fbc1846d72aeaabdb9c5a228036768e7b02e (diff)
downloadFreeBSD-src-aafbac06b87670bc429947442eb140e447f3326f.zip
FreeBSD-src-aafbac06b87670bc429947442eb140e447f3326f.tar.gz
The <bsd.files.mk> API seems the best to use here.
Diffstat (limited to 'lib/csu/i386-elf')
-rw-r--r--lib/csu/i386-elf/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/csu/i386-elf/Makefile b/lib/csu/i386-elf/Makefile
index 9c61de7..8598ce8 100644
--- a/lib/csu/i386-elf/Makefile
+++ b/lib/csu/i386-elf/Makefile
@@ -3,21 +3,17 @@
.PATH: ${.CURDIR}/../common
SRCS= crt1.c crti.S crtn.S
-OBJS= ${SRCS:N*.h:R:S/$/.o/g}
-OBJS+= gcrt1.o
+FILES= ${SRCS:N*.h:R:S/$/.o/g} gcrt1.o
+FILESOWN= ${LIBOWN}
+FILESGRP= ${LIBGRP}
+FILESMODE= ${LIBMODE}
+FILESDIR= ${LIBDIR}
WARNS?= 6
CFLAGS+= -I${.CURDIR}/../common \
-I${.CURDIR}/../../libc/include
-
-all: ${OBJS}
-
-CLEANFILES= ${OBJS}
+CLEANFILES= ${FILES}
gcrt1.o: crt1.c
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
-realinstall:
- ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
- ${OBJS} ${DESTDIR}${LIBDIR}
-
-.include <bsd.lib.mk>
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud