4a61fb92f4
-nostdinc properly.
21 lines
506 B
Makefile
21 lines
506 B
Makefile
# $Id$
|
|
|
|
.if exists(${.CURDIR}/../../../../include)
|
|
CFLAGS+= -nostdinc -I${.CURDIR}/../../../../include
|
|
.endif
|
|
CFLAGS+= -I${.CURDIR}/../../.. -I${.OBJDIR}
|
|
CLEANFILES+= machine
|
|
|
|
.if defined(SRCS)
|
|
${SRCS:M*.[sS]:R:S/$/.o/g} ${SRCS:M*.c:R:S/$/.o/g}: machine
|
|
${SRCS:M*.cc:R:S/$/.o/g} ${SRCS:M*.C:R:S/$/.o/g}: machine
|
|
${SRCS:M*.cxx:R:S/$/.o/g} ${SRCS:N*.h:R:S/$/.o/g}: machine
|
|
.endif
|
|
.if defined(OBJS)
|
|
${OBJS}: machine
|
|
.endif
|
|
|
|
beforedepend: machine
|
|
machine:
|
|
ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine
|