Sync with manuals from netbsd-8 branch.
[minix3.git] / usr.bin / m4 / Makefile
blobd72b181bd917d5b50b07b9648565723b29b32ca2
1 # $NetBSD: Makefile,v 1.19 2015/01/29 19:26:20 christos Exp $
3 # @(#)Makefile 8.1 (Berkeley) 6/6/93
5 # -DEXTENDED
6 # if you want the paste & spaste macros.
7 .include <bsd.own.mk>
9 .if defined(__MINIX)
10 .if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
11 !empty(DBG:M-g) || !empty(CFLAGS:M-g)
12 #LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
13 CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
14 .endif
15 .endif # defined(__MINIX)
17 PROG= m4
18 CPPFLAGS+= -DEXTENDED -I${.CURDIR}/lib
19 SRCS= parser.y tokenizer.l eval.c expr.c look.c main.c misc.c gnum4.c trace.c
20 .PATH: ${.CURDIR}/lib
21 SRCS+= ohash_create_entry.c ohash_delete.c ohash_do.c ohash_entries.c \
22 ohash_enum.c ohash_init.c ohash_int.h ohash_interval.c \
23 ohash_lookup_interval.c ohash_lookup_memory.c ohash_qlookup.c \
24 ohash_qlookupi.c
25 YHEADER=1
26 .if (${HOSTPROG:U} == "")
27 DPADD+= ${LIBUTIL} ${LIBL}
28 LDADD+= -lutil -ll
29 .endif
31 tokenizer.o: parser.h
33 CLEANFILES+=parser.c parser.h tokenizer.o
35 .include <bsd.prog.mk>