# $OpenBSD: Makefile,v 1.8 2001/02/01 03:38:22 smurph Exp $ # # DO NOT OPTMIZE bugcrt (i.e. no "-O2") # S=${.CURDIR}/../../../.. CFLAGS=-I${.CURDIR}/../../include -I${.CURDIR}/../libbug -I${S}/lib/libsa \ -fomit-frame-pointer -save-temps STAGE1_CFLAGS=-DSTACK_ASM_OP="\".long ${STAGE1_RELOC}\"" -DSTAGE1 STAGE2_CFLAGS=-DSTACK_ASM_OP="\".long ${STAGE2_RELOC}\"" SINGLE_CFLAGS=-DSTACK_ASM_OP="\".long ${STAGE2_RELOC}\"" -DSTAGE1 SRCS=crt.c OBJS=stage1crt.o stage2crt.o singlecrt.o CLEANFILES+=a.out ${OBJS} *.i *.s all: ${OBJS} stage1crt.o: crt.c ${CC} ${CFLAGS} ${STAGE1_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET} ${LD} -x -r ${.TARGET} mv a.out ${.TARGET} stage2crt.o: crt.c ${CC} ${CFLAGS} ${STAGE2_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET} ${LD} -x -r ${.TARGET} mv a.out ${.TARGET} singlecrt.o: crt.c ${CC} ${CFLAGS} ${SINGLE_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET} ${LD} -x -r ${.TARGET} mv a.out ${.TARGET} install: lint tags: .include