bvi/Makefile.in

96 lines
2.5 KiB
Makefile
Raw Normal View History

2001-01-15 00:00:00 +00:00
# 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.
#
2014-10-08 00:00:00 +00:00
# Copyright (c) 1996-2014 by Gerhard Buergmann
2005-01-07 00:00:00 +00:00
# gerhard@puon.at
2001-01-15 00:00:00 +00:00
#
# 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
2005-01-07 00:00:00 +00:00
# 2003-07-03 V 1.3.2
2014-10-08 00:00:00 +00:00
# 2014-10-01 V 1.4.0
2001-01-15 00:00:00 +00:00
#
###############################################
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
2014-10-08 00:00:00 +00:00
datarootdir = @datarootdir@
2001-01-15 00:00:00 +00:00
2014-10-08 00:00:00 +00:00
bindir = $(DESTDIR)@bindir@
mandir = $(DESTDIR)@mandir@
libdir = $(DESTDIR)@libdir@
helpdir = $(DESTDIR)@datadir@/bvi
2001-01-15 00:00:00 +00:00
man1dir = $(mandir)/man1
2014-10-08 00:00:00 +00:00
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
2001-01-15 00:00:00 +00:00
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
all: bvi bmore
2014-10-08 00:00:00 +00:00
bvi: $(OBJS) $(HEADER)
2001-01-15 00:00:00 +00:00
$(CC) $(LDFLAGS) -o bvi $(OBJS) $(LIBS)
bmore: $(BMOBJ)
$(CC) $(LDFLAGS) -o bmore $(BMOBJ) $(LIBS)
2014-10-08 00:00:00 +00:00
%.o: %.c $(INCLUDES)
2001-01-15 00:00:00 +00:00
$(CC) $(CFLAGS) $(DEFS) -c $<
bmore.o: bmore.c
2014-10-08 00:00:00 +00:00
$(CC) $(CFLAGS) $(DEFS) -DHELPFILE=\"$(helpdir)/bmore.help\" -c $<
2001-01-15 00:00:00 +00:00
install: all installdirs
@echo "Installing bvi"
@$(INSTALL_DATA) bvi.1 bmore.1 $(man1dir)
2014-10-08 00:00:00 +00:00
@$(INSTALL_PROGRAM) bvi $(bindir)
@$(INSTALL_PROGRAM) bmore $(bindir)
@$(INSTALL_DATA) bmore.help $(helpdir)
2001-01-15 00:00:00 +00:00
@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:
2014-10-08 00:00:00 +00:00
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(helpdir) $(man1dir)
2001-01-15 00:00:00 +00:00
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
2014-10-08 00:00:00 +00:00
@if [ -f $(helpdir)/bmore.help ]; then rm $(helpdir)/bmore.help; fi
2001-01-15 00:00:00 +00:00
@if [ -f $(man1dir)/bvi.1 ]; then rm $(man1dir)/bvi.1; fi
@if [ -f $(man1dir)/bmore.1 ]; then rm $(man1dir)/bmore.1; fi
clean:
2005-01-07 00:00:00 +00:00
rm -f core *.o bvi bvi.exe bmore bmore.exe a.out
2001-01-15 00:00:00 +00:00
distclean: clean
rm -f Makefile config.cache config.h config.log config.status