blob: bd4e61d2595f27f10d9edaf663e8e4a9923e723c (
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.4 1996/09/22 01:17:57 downsj 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/some/where/motif/lib -L/some/where/X11/lib -lXm -lXt -lutil
#CFLAGS+= -I/some/where/motif/include -I/some/where/X11/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 -lutil
#CFLAGS+= -I/some/where/X11/include -DHAVE_X11 -DUSE_GUI_ATHENA
CLEANFILES+= mkcmdtab 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 -c -m 444 -o ${BINOWN} -g ${BINGRP} $$i \
${DESTDIR}/usr/share/vim; done
.include <bsd.prog.mk>
|