Make modules work again part 1: linkup vfs, rename Makefile.module files,
[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 # $DragonFly: src/sys/i386/boot/Attic/Makefile.inc,v 1.2 2003/06/17 04:28:34 dillon Exp $
3
4 BINDIR?=        /usr/mdec
5 CFLAGS+=        -aout
6 .if exists(${.CURDIR}/../../../../include)
7 CFLAGS+=        -nostdinc -I${.CURDIR}/../../../../include
8 .endif
9 CFLAGS+=        -I${.CURDIR}/../../.. -I${.OBJDIR}
10 CLEANFILES+=    machine
11
12 .if defined(SRCS)
13 ${SRCS:M*.[sS]:R:S/$/.o/g} ${SRCS:M*.c:R:S/$/.o/g}: machine
14 ${SRCS:M*.cc:R:S/$/.o/g}   ${SRCS:M*.C:R:S/$/.o/g}: machine
15 ${SRCS:M*.cxx:R:S/$/.o/g}  ${SRCS:N*.h:R:S/$/.o/g}: machine
16 .endif
17 .if defined(OBJS)
18 ${OBJS}: machine
19 .endif
20
21 beforedepend: machine
22 machine:
23         ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine