CC = /bin/cc

DEFS = -DUNIX -DSTDLIB

CFLAGS = -v -O -g $(DEFS)

HDR = cawf.h cawflib.h regexp.h regmagic.h

SRC = cawf.c error.c expand.c expr.c getopt.c macsup.c output.c pass2.c pass3.c regerror.c regexp.c store.c string.c

OBJ = cawf.o error.o expand.o expr.o getopt.o macsup.o output.o pass2.o pass3.o regerror.o regexp.o store.o string.o

all:	bsfilt cawf fontfilt

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

cawf:	$(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -o cawf

$(OBJ):	$(HDR)

fontfilt: fontfilt.o getopt.o
	$(CC) $(CFLAGS) fontfilt.o getopt.o -o fontfilt

install: bsfilt cawf fontfilt