]> pd.if.org Git - pd_readline/blob - mg/Makefile
Added mg from an OpenBSD mirror site. Many thanks to the OpenBSD team and the mg...
[pd_readline] / mg / Makefile
1 # $OpenBSD: Makefile,v 1.27 2012/06/18 07:13:26 jasper Exp $
2
3 PROG=   mg
4
5 LDADD+= -lcurses -lutil
6 DPADD+= ${LIBCURSES} ${LIBUTIL}
7
8 # (Common) compile-time options:
9 #
10 #       FKEYS           -- add support for function key sequences.
11 #       REGEX           -- create regular expression functions.
12 #       STARTUP         -- look for and handle initialization file.
13 #       XKEYS           -- use termcap function key definitions.
14 #                               note: XKEYS and bsmap mode do _not_ get along.
15 #
16 CFLAGS+=-Wall -DFKEYS -DREGEX -DXKEYS
17
18 SRCS=   autoexec.c basic.c buffer.c cinfo.c dir.c display.c \
19         echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \
20         line.c macro.c main.c match.c modes.c paragraph.c random.c \
21         re_search.c region.c search.c spawn.c tty.c ttyio.c ttykbd.c \
22         undo.c version.c window.c word.c yank.c
23
24 #
25 # More or less standalone extensions.
26 #
27 SRCS+=  cmode.c cscope.c dired.c grep.c tags.c theo.c
28
29 afterinstall:
30         ${INSTALL} -d ${DESTDIR}${DOCDIR}/mg
31         ${INSTALL} -m ${DOCMODE} -c ${.CURDIR}/tutorial \
32                 ${DESTDIR}${DOCDIR}/mg
33
34