##
##  I wrote this Makefile, based on comments in the source.  -rich $alz.
##  Define INDEX to use index() in place of strchr() (v7, BSD).
1	= -DINDEX
#1	= -UINDEX
##  Define MEMCPY when an efficient memcpy() exists (SysV).
2	= -DMEMCPY
#2	= -UMEMCPY
##  Define MKDIR when a mkdir() system call is present (4.2BSD, SysVr3).
3	= -DMKDIR
#3	= -UMKDIR
##  Define NOVOID if your compiler doesn't like void casts.
4	= -DNOVOID
#4	= -UNOVOID
##  Define SYSTIME to use <sys/time.h> rather than <time.h> (4.2BSD).
5	= -DSYSTEM
#5	= -USYSTEM
##  Define VOIDFIX to allow pointers to functions returning void (non-PCC).
6	= -DVOIDFIX
#6	= -UVOIDFIX
##  Define CTC3B2 to support AT&T 3B2 streaming cartridge tape.
7	= -DCTC3B2
#7	= -UCTC3B2
CFLAGS	= $1 $2 $3 $4 $5 $6 $7


all:		afio afio.1

afio:		afio.c
	$(CC) $(CFLAGS) -o afio afio.c

install:	all
	@echo copy afio and afio.1 into the appropriate directories.
