1#ident @(#)Makefile	1.35 21/08/20
2###########################################################################
3SRCROOT=	..
4RULESDIR=	RULES
5include		$(SRCROOT)/$(RULESDIR)/rules.top
6###########################################################################
7
8INSDIR=		bin
9TARGET=		ved
10SYMLINKS +=	ved-e
11SYMLINKS +=	ved-w
12#
13# It you like to compile ved with large file support, uncomment the next
14# line to make CPPOPTS += -DUSE_LARGEFILES active.
15#
16# It you don"t like to compile ved with large file support, comment the next
17# line to make CPPOPTS += -DUSE_LARGEFILES inactive.
18#
19CPPOPTS +=	-DUSE_LARGEFILES
20CPPOPTS +=	-DVED_STATS
21CPPOPTS +=	-DFASTPOS
22#CPPOPTS +=	-DFASTPOS -DCHECKPOS
23CPPOPTS +=	-DSCHILY_PRINT
24CPPOPTS +=	-DUSE_NLS		# Include locale support
25CPPOPTS +=	-DINS_BASE=\"${INS_BASE}\"
26CPPOPTS +=	-DINS_RBASE=\"${INS_RBASE}\"
27CPPOPTS +=	-DTEXT_DOMAIN=\"SCHILY_utils\"
28
29CFILES=		ved.c edit.c binding.c vedtmpops.c cmds.c quitcmds.c \
30		execcmds.c numbercmds.c cursorcmds.c delcmds.c \
31		searchcmds.c filecmds.c tmpfiles.c takecmds.c \
32		markcmds.c screen.c ctab.c movedot.c buffer.c storage.c \
33		terminal.c cmdline.c io.c fileio.c filesubs.c \
34		take.c message.c search.c \
35		ttycmds.c ttymodes.c macro.c coloncmds.c \
36		substcmds.c tags.c map.c vedstats.c consdebug.c
37
38HFILES=		buffer.h ved.h func.h map.h movedot.h terminal.h ttys.h \
39		version.h
40#LIBS=		-lunos
41LIBS=		-lxtermcap -lschily $(LIB_INTL)
42XMK_FILE=	Makefile.man ved-e.mk1 ved-w.mk1 \
43		Makefile.help Makefile.doc Makefile.dot Makefile.warn
44
45###########################################################################
46include		$(SRCROOT)/$(RULESDIR)/rules.cmd
47###########################################################################
48
49count:		$(CFILES) $(HFILES)
50		count $r1
51
52