#$Id: Makefile,v 1.1 1993/05/18 06:46:19 buhrow Exp buhrow $
#NAME: Brian Buhrow
#DATE: March 24, 1993
#
#PURPOSE: The purpose of this file is to make nfbtrans, the braille
#translation software written by the National Federation of the Blind
#compile under the Unix operating system.
#The program was originally written in pascal and then converted to C by
#Andy Formenti, and then converted to run
#under the Unix operating system by Brian Buhrow
#
#The source and object files are as follows:

SRCFILES=nfbtrans.c nfbpatch.c
OBJFILES=nfbtrans.o nfbpatch.o
LIBS= -ltermcap

#Compiler and linking flags are as follows:
CFLAGS=-O
CC=gcc
LDFLAGS=-Bdynamic

default:
	@echo "type one of the following"
	@echo
	@echo "sunos"
	@echo "sunos-insight"
	@echo "ultrix"

all: nfbtrans

#Lint can wait a while

nfbtrans: $(OBJFILES)
	$(CC) $(CFLAGS) $(OBJFILES) $(LIBS) -o nfbtrans

ultrix:
	$(MAKE) all CFLAGS="-O -Dultrix"

sunos:
	$(MAKE) all CFLAGS="-O -Dsunos"

insight:
	insight -fno-builtin -fwritable-strings \
	$(CFLAGS) $(OBJFILES) $(LIBS) -o nfbtrans

