blob: fb02b129837a9e0d5fc97dc36732645353cd2f69 (
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
30
31
32
33
34
|
# $OpenBSD: Makefile,v 1.24 2011/02/02 05:21:36 lum Exp $
PROG= mg
LDADD+= -lcurses
DPADD+= ${LIBCURSES}
# (Common) compile-time options:
#
# FKEYS -- add support for function key sequences.
# REGEX -- create regular expression functions.
# STARTUP -- look for and handle initialization file.
# XKEYS -- use termcap function key definitions.
# note: XKEYS and bsmap mode do _not_ get along.
#
CFLAGS+=-Wall -DFKEYS -DREGEX -DXKEYS
SRCS= autoexec.c basic.c buffer.c cinfo.c dir.c display.c \
echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \
line.c macro.c main.c match.c modes.c paragraph.c random.c \
re_search.c region.c search.c spawn.c tty.c ttyio.c ttykbd.c \
undo.c version.c window.c word.c yank.c
#
# More or less standalone extensions.
#
SRCS+= cmode.c dired.c grep.c theo.c
afterinstall:
${INSTALL} -d ${DESTDIR}${DOCDIR}/mg
${INSTALL} -m ${NONBINMODE} -c ${.CURDIR}/tutorial \
${DESTDIR}${DOCDIR}/mg
.include <bsd.prog.mk>
|