blob: 4f993f33eb83229a22d8eff178e45bc448bc82f7 (
plain) (
tree)
|
|
# Makefile for Tap
CC = gcc
CFLAGS = -O2 -g -Wall
LIBS = -lncurses
TAP = tap
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
INFODIR = $(PREFIX)/info
MANDIR = $(PREFIX)/man/man1
DOCDIR = $(PREFIX)/doc/tap
INSTALL-INFO = /sbin/install-info
SRCFILES = memmgr.c serial.c tap.c ui.c
HDRFILES = tap.h version.h command_struct.h
OBJFILES = $(SRCFILES:%.c=%.o)
READLINE = readline/readline.o
READLINESRC = readline/*.c
COMMANDS = commands/commands.o
COMMANDSSRC = commands/*.c
DOCEXTRAS = tap.cp tap.fn tap.ky tap.pg tap.tp tap.vr \
tap.aux tap.log tap.cps tap.toc
DOCFILES = tap.dvi tap.ps tap.html tap.info
.PHONY : all doc ps dvi info html install clean
all : $(TAP)
$(TAP) : $(READLINE) $(COMMANDS) $(SERIAL) $(OBJFILES) $(HDRFILES)
$(CC) $(CFLAGS) $(LIBS) -o $@ $(OBJFILES) $(READLINE) $(COMMANDS)
$(READLINE) : $(READLINESRC)
make -C readline
$(COMMANDS) : $(COMMANDSSRC)
make -C commands
doc : tap.ps tap.html tap.info tap.texinfo
ps : tap.ps
dvi : tap.dvi
info : tap.info
html : tap.html
tap.ps : tap.dvi tap.texinfo
dvips tap.dvi -o tap.ps
tap.dvi : tap.texinfo
texi2dvi tap.texinfo
tap.info : tap.texinfo
makeinfo tap.texinfo
tap.html : tap.texinfo
makeinfo --html tap.texinfo
install : tap info html
clean :
make -C readline clean
make -C commands clean
rm -f $(OBJFILES) $(TAP) $(DOCFILES) $(DOCEXTRAS) core *~
|