blob: 6d15a9d4c886c2dc1549d0fe7c9f45eed68e5327 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $OpenBSD: Makefile,v 1.3 1999/05/26 13:52:58 espie Exp $
SRCS += main.c output.c symbol.c types.c lex.c parse.c
CLEANFILES += lex.c parse.c parse.h y.tab.h
CFLAGS += -I. -I${.CURDIR}/../src/util -I${.CURDIR}/../src/lib/roken \
-I${.CURDIR}/../src/include -I${.CURDIR} -DHAVE_CONFIG_H
CFLAGS += -DCPP='"/usr/bin/cpp"'
MAN =
BINDIR = ${DESTDIR}/usr/bin
PROG = ydr
LDADD += ../libroken/libroken.a
DPADD += ../libroken/libroken.a
.PATH: ${.CURDIR}/../src/ydr
beforedepend: parse.h
parse.h: y.tab.h
-@ln -s y.tab.h parse.h
y.tab.h: parse.c
lex.o: parse.h
.if (${MACHINE_ARCH} == "m68k")
output.o: output.c
${CC} -c ${CFLAGS} -O1 ${.IMPSRC}
.endif
.include <bsd.prog.mk>
|