Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / i386 / boot / Makefile.inc
1 # $FreeBSD: src/sys/i386/boot/Makefile.inc,v 1.6 1999/08/28 00:43:08 peter Exp $
2
3 BINDIR?=        /usr/mdec
4 CFLAGS+=        -aout
5 .if exists(${.CURDIR}/../../../../include)
6 CFLAGS+=        -nostdinc -I${.CURDIR}/../../../../include
7 .endif
8 CFLAGS+=        -I${.CURDIR}/../../.. -I${.OBJDIR}
9 CLEANFILES+=    machine
10
11 .if defined(SRCS)
12 ${SRCS:M*.[sS]:R:S/$/.o/g} ${SRCS:M*.c:R:S/$/.o/g}: machine
13 ${SRCS:M*.cc:R:S/$/.o/g}   ${SRCS:M*.C:R:S/$/.o/g}: machine
14 ${SRCS:M*.cxx:R:S/$/.o/g}  ${SRCS:N*.h:R:S/$/.o/g}: machine
15 .endif
16 .if defined(OBJS)
17 ${OBJS}: machine
18 .endif
19
20 beforedepend: machine
21 machine:
22         ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine