# Makefile     Makefile for tascii v1.2 on Linux
#              28 November 1998

# Symbolic constants are used for conditional compilation,
# through preprocessor directives like #ifdef and #ifndef.
#
# Things you might add to DEFS:
#
# -DUNIX_OS             Enable libraries and functions that
#                       are specific to UNIX type operating
#                       systems.
#

# Use this compilation flag with Linux.
DEFS	=  -DUNIX_OS

# Take these compilation flags for Linux.
FLAGS	= -Wall -O2
PROGS	= tascii
LFLAGS	= -s
CC	= cc

MANDIR	= /usr/man


# Nothing should have to change beneath this line.

SRCS	= tascii.c

OBJS	= tascii.o

CFLAGS	= $(FLAGS) $(DEFS)


all:		$(PROGS)

tascii:		$(OBJS)
		$(CC) $(CFLAGS) $(LFLAGS) -o tascii $(OBJS)

tascii.o:	tascii.c


install: all
	install -s -m 755 tascii  /usr/bin/
	install -m 644 tascii.1  $(MANDIR)/man1/tascii.1

clean:
	rm -f tascii *.o

