blob: 309e6133b1d0e0e6372420d448fcabc28d818cec (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $OpenBSD: Makefile,v 1.8 1997/04/27 20:56:58 millert Exp $
.PATH: ${.CURDIR}/doc
CFLAGS+=-I${.CURDIR} -I${.OBJDIR} -DHAVE_CONFIG_H
LDADD+= -ltermlib
DPADD+= ${LIBTERMLIB}
PROG= vim
LINKS= ${BINDIR}/vim ${BINDIR}/vi
LINKS+= ${BINDIR}/vim ${BINDIR}/view
LINKS+= ${BINDIR}/vim ${BINDIR}/ex
MLINKS= vim.1 vi.1
MLINKS+=vim.1 view.1
MLINKS+=vim.1 ex.1
SRCS= alloc.c buffer.c charset.c cmdcmds.c cmdline.c csearch.c \
digraph.c edit.c fileio.c getchar.c help.c linefunc.c main.c mark.c \
memfile.c memline.c message.c misccmds.c normal.c ops.c option.c \
pathdef.c quickfix.c regexp.c regsub.c screen.c search.c tables.c \
tag.c term.c undo.c unix.c version.c window.c
DOCS= vim_40.txt vim_ami.txt vim_arch.txt vim_diff.txt vim_digr.txt \
vim_dos.txt vim_gui.txt vim_help.txt vim_idx.txt vim_kcc.txt \
vim_mac.txt vim_menu.txt vim_mint.txt vim_os2.txt vim_ref.txt \
vim_rlh.txt vim_tips.txt vim_unix.txt vim_w32.txt vim_win.txt \
vim_tags
# I haven't tried this, but it's a start...
# Use the following to build Motif vim:
#SRCS+= gui.c gui_motif.c gui_x11.c pty_openbsd.c
#LDADD+= -L/usr/local/LessTiff/lib -L/usr/local/X11R6.1/lib -lXm -lXt -lX11 -lutil
#CFLAGS+= -I/usr/local/LessTiff/include -I/usr/local/X11R6.1/include -DHAVE_X11 -DUSE_GUI_MOTIF
# Use the following to build Athena vim:
#SRCS+= gui.c gui_athena.c gui_x11.c pty_openbsd.c gui_at_sb.c
#LDADD+= -L/some/where/X11/lib -lXaw -lXt -lXmu -lX11 -lutil
#CFLAGS+= -I/some/where/X11/include -DHAVE_X11 -DUSE_GUI_ATHENA
CLEANFILES+= mkcmdtab mkcmdtab.o cmdtab.h
.depend cmdline.o: cmdtab.h
cmdtab.h: mkcmdtab cmdtab.tab
${.OBJDIR}/mkcmdtab ${.CURDIR}/cmdtab.tab ${.OBJDIR}/cmdtab.h
mkcmdtab: mkcmdtab.o
${CC} mkcmdtab.o -o mkcmdtab
afterinstall:
${INSTALL} -d -m 555 -o ${BINOWN} -g ${BINGRP} ${DESTDIR}/usr/share/vim
cd ${.CURDIR}/doc; for i in ${DOCS}; do \
cmp -s $$i ${DESTDIR}/usr/share/vim/$$i || \
${INSTALL} ${INSTALL_COPY} -m 444 -o ${BINOWN} -g ${BINGRP} $$i \
${DESTDIR}/usr/share/vim; done
.include <bsd.prog.mk>
|