Makefile 619 B

123456789101112131415161718192021222324252627
  1. #
  2. # $FreeBSD: src/lib/csu/i386-elf/Makefile,v 1.3.2.3 1999/08/29 14:55:14 peter Exp $
  3. #
  4. SRCS= crt1.c crtbegin.c crtend.c crti.S crtn.S
  5. OBJS= ${SRCS:N*.h:R:S/$/.o/g}
  6. OBJS+= gcrt1.o
  7. SOBJS= crtbegin.So crtend.So
  8. CFLAGS+= -elf -Wall -fkeep-inline-functions
  9. LDFLAGS+= -elf
  10. NOMAN= true
  11. NOPIC= true
  12. NOPROFILE= true
  13. INTERNALLIB= true
  14. all: ${OBJS} ${SOBJS}
  15. gcrt1.o: crt1.c
  16. ${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
  17. realinstall:
  18. .for file in ${OBJS} ${SOBJS}
  19. ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
  20. ${file} ${DESTDIR}${LIBDIR}/${file:S/.So$/S.o/}
  21. .endfor
  22. .include <bsd.lib.mk>