X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=mg%2FMakefile;fp=mg%2FMakefile;h=5b235e52b2ad42b9b7dbccb51db70c3c68400155;hp=0000000000000000000000000000000000000000;hb=a9843085ec916c175bd245a8398f30e6cc03f984;hpb=26fe4e09c6c3c250334fdeed60ce3061febecde2 diff --git a/mg/Makefile b/mg/Makefile new file mode 100644 index 0000000..5b235e5 --- /dev/null +++ b/mg/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.27 2012/06/18 07:13:26 jasper Exp $ + +PROG= mg + +LDADD+= -lcurses -lutil +DPADD+= ${LIBCURSES} ${LIBUTIL} + +# (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 cscope.c dired.c grep.c tags.c theo.c + +afterinstall: + ${INSTALL} -d ${DESTDIR}${DOCDIR}/mg + ${INSTALL} -m ${DOCMODE} -c ${.CURDIR}/tutorial \ + ${DESTDIR}${DOCDIR}/mg + +