home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume24
/
mced
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-10-26
|
1KB
|
43 lines
#
# Makefile for mced
#
# To install this utility do the following:
# 1) Select vi or emacs mode by uncommenting one of the
# OBJECTS lines below.
# 2) Fill in the BINDIR and MANDIR variables.
# 3) Type "make install" on the command line.
# 4) Type "make clean" on the command line to clean up after install.
#
#
#
# definitions for EMACS EDIT mode:
#OBJECTS = main.o emacs_edit.o getch.o
#
# definitions for VI EDIT mode:
OBJECTS = main.o vi_edit.o getch.o
#
# Where to stick the executable on install
BINDIR=/usr/local/bin
#
# Where to stick the man page on install
MANDIR=/usr/local/man/man1
#
LDFLAGS = -lcurses -ltermcap
#
CFLAGS = -O ## do not use optimizer on SunOS 4.0.3S ##
mced : $(OBJECTS)
$(CC) $(TARGET_ARCH) $(CFLAGS) $(OBJECTS) -o $@ $(LDFLAGS)
man : mced.1
cat mced.1 | nroff -man > mced.man
install : mced
install -s -c mced $(BINDIR)
install -m 644 mced.1 $(MANDIR)/mced.1
ln -s $(MANDIR)/mced.1 $(MANDIR)/=.1
clean :
rm -f mced core $(OBJECTS)