diff options
Diffstat (limited to 'lib/csu/hppa/Makefile')
-rw-r--r-- | lib/csu/hppa/Makefile | 58 |
1 files changed, 42 insertions, 16 deletions
diff --git a/lib/csu/hppa/Makefile b/lib/csu/hppa/Makefile index 4744524bde7..ad1f0b3b666 100644 --- a/lib/csu/hppa/Makefile +++ b/lib/csu/hppa/Makefile @@ -1,27 +1,53 @@ -# $OpenBSD: Makefile,v 1.1 2001/08/19 19:57:54 mickey Exp $ +# $OpenBSD: Makefile,v 1.2 2002/11/10 22:49:54 mickey Exp $ +# from: @(#)Makefile 5.5 (Berkeley) 5/21/91 -CFLAGS+= -DLIBC_SCCS -DELFSIZE=32 -I${.CURDIR}/.. +CFLAGS+= -DLIBC_SCCS -I${.CURDIR}/.. +OBJS= crt0.o scrt0.o gcrt0.o crtbegin.o crtend.o crtbeginS.o crtendS.o -#OBJS= crt0.o gcrt0.o -OBJS= crt0.o -SRCS= crt0.c -NOPROFILE=noprofile -NOPIC= nopic -NOMAN= noman +.PATH: ${.CURDIR}/../common_elf +CFLAGS+= -I${.CURDIR}/../common_elf -CLEANFILES+= core a.out +#PICFLAG?=-fPIC -all: ${OBJS} +all: ${OBJS} -crt0.o: ${SRCS} - @echo ${COMPILE.c} -DCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET} - @${COMPILE.c} -DCRT0 ${.CURDIR}/${SRCS} -o ${.TARGET}.o +crt0.o: crt0.c + ${COMPILE.c} -DCRT0 ${.ALLSRC} -o ${.TARGET}.o @${LD} -x -r -o ${.TARGET} ${.TARGET}.o @rm -f ${.TARGET}.o -install: +scrt0.o: crt0.c + ${COMPILE.c} -DSCRT0 ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +gcrt0.o: crt0.c + ${COMPILE.c} -DMCRT0 ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +crtbegin.o: crtbegin.c + ${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +crtbeginS.o: crtbeginS.c + ${COMPILE.c} ${PICFLAG} ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +crtend.o: crtend.c + ${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +crtendS.o: crtendS.c + ${COMPILE.c} ${PICFLAG} ${.ALLSRC} -o ${.TARGET}.o + @${LD} -x -r -o ${.TARGET} ${.TARGET}.o + @rm -f ${.TARGET}.o + +realinstall: ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \ - ${DESTDIR}/usr/lib + ${DESTDIR}/usr/lib .include <bsd.prog.mk> - |