1 # $NetBSD: Makefile,v 1.42 2009/04/14 09:10:00 lukem Exp $
6 SRCS
= cgram.y scan.l mem1.c mem.c err.c main1.c decl.c tree.c func.c \
7 init.c emit.c emit1.c inittyp.c tyname.c
print.c
11 #CPPFLAGS+=-DYYDEBUG=1
13 CPPFLAGS
+= -I
${.CURDIR
} -I.
-DPASS
=\"${PROG}.h
\"
15 .if
${OBJECT_FMT} == "a.out"
16 CPPFLAGS
+= -DTARGET_OBJFMT_AOUT
17 .elif
${OBJECT_FMT} == "COFF"
18 CPPFLAGS
+= -DTARGET_OBJFMT_COFF
19 .elif
${OBJECT_FMT} == "ELF"
20 CPPFLAGS
+= -DTARGET_OBJFMT_ELF
23 @echo
"Unrecognized OBJECT_FMT ${OBJECT_FMT}"
32 .if
${USETOOLS} == "yes"
33 LINT1
= ${TOOLDIR}/libexec
/${MACHINE_GNU_PLATFORM}-lint1
37 ${MAN}: makeman
${LINT1
:C
/^\.\
///} Makefile
39 ${HOST_SH} ${.ALLSRC
:M
*makeman
} ${LINT1} -m
>${.TARGET
}
49 .
include <bsd.prog.mk
>