File: Makefile.in

package info (click to toggle)
bvi 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 640 kB
  • sloc: ansic: 5,963; sh: 3,115; makefile: 57
file content (95 lines) | stat: -rw-r--r-- 2,590 bytes parent folder | download
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# bvi - Binary Visual Editor Makefile
#
# This is the Makefile for bvi - binary visual editor. If it has the name
# "Makefile.in" then it is a template for a Makefile;  to generate the actual
# Makefile, run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
# Copyright (c) 1996-2014 by Gerhard Buergmann
# gerhard@puon.at
# 
# 1996-01-18 V 1.0.0
# 1999-01-15 V 1.1.0
# 1999-03-03 V 1.1.1
# 1999-10-22 V 1.2.0
# 2000-05-31 V 1.3.0 beta
# 2000-10-01 V 1.3.0 final
# 2003-07-03 V 1.3.2
# 2014-10-01 V 1.4.0
#
###############################################

srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@

bindir  = $(DESTDIR)@bindir@
mandir  = $(DESTDIR)@mandir@
libdir  = $(DESTDIR)@libdir@
helpdir = $(DESTDIR)@datadir@/bvi

man1dir = $(mandir)/man1

OBJS     =  bvi.o comm.o set.o re.o io.o edit.o recomp.o
INCLUDES =  bvi.h set.h
BMOBJ    =  bmore.o bm_unix.o recomp.o
CC       =  @CC@
CFLAGS   =  @CFLAGS@ @CPPFLAGS@
DEFS     =  @DEFS@
LDFLAGS  =  @LDFLAGS@
LIBS     =  @LIBS@
SHELL    =  /bin/sh



INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@


all: bvi bmore

bvi: $(OBJS) $(HEADER)
	$(CC) $(LDFLAGS) -o bvi $(OBJS) $(LIBS)

bmore: $(BMOBJ)
	$(CC) $(LDFLAGS) -o bmore $(BMOBJ) $(LIBS)

%.o: %.c $(INCLUDES)
	$(CC) $(CFLAGS) $(DEFS) -c $<

bmore.o: bmore.c
	$(CC) $(CFLAGS) $(DEFS) -DHELPFILE=\"$(helpdir)/bmore.help\" -c $<


install: all installdirs
	@echo "Installing bvi"
	@$(INSTALL_DATA) bvi.1 bmore.1 $(man1dir)
	@$(INSTALL_PROGRAM) bvi $(bindir)
	@$(INSTALL_PROGRAM) bmore $(bindir)
	@$(INSTALL_DATA) bmore.help $(helpdir)
	@if [ -f $(bindir)/bview ]; then rm $(bindir)/bview; fi
	@if [ -f $(bindir)/bvedit ]; then rm $(bindir)/bvedit; fi
	@ln $(bindir)/bvi $(bindir)/bview
	@ln $(bindir)/bvi $(bindir)/bvedit

installdirs:
	$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(helpdir) $(man1dir)

uninstall:
	@echo "Uninstalling bvi"
	@if [ -f $(bindir)/bview ]; then rm $(bindir)/bview; fi
	@if [ -f $(bindir)/bvedit ]; then rm $(bindir)/bvedit; fi
	@if [ -f $(bindir)/bvi ]; then rm $(bindir)/bvi; fi
	@if [ -f $(bindir)/bmore ]; then rm $(bindir)/bmore; fi
	@if [ -f $(helpdir)/bmore.help ]; then rm $(helpdir)/bmore.help; fi
	@if [ -f $(man1dir)/bvi.1 ]; then rm $(man1dir)/bvi.1; fi
	@if [ -f $(man1dir)/bmore.1 ]; then rm $(man1dir)/bmore.1; fi

clean:
	rm -f core *.o bvi bvi.exe bmore bmore.exe a.out

distclean: clean
	rm -f Makefile config.cache config.h config.log config.status