# Makefile for efax

# Change the following to the name of your ANSI C compiler
# (normally gcc).

CC=gcc

# Compile/load options (none normally required).

CFLAGS=-O
LDFLAGS=

# Change the following to the destination directories for
# binaries and man pages (probably /usr/bin and /usr/man).

BINDIR=/usr/bin
MANDIR=/usr/man

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

all:	efax efix

efax:	efax.o efaxlib.o efaxos.o
	$(CC) -o efax $(LDFLAGS) efax.o efaxlib.o efaxos.o

efix:	efix.o efaxlib.o
	$(CC) -o efix $(LDFLAGS) efix.o efaxlib.o

install:
	cp fax efax efix $(BINDIR)
	cp fax.1 efax.1 efix.1 $(MANDIR)/man1

clean:	
	rm -f efax efix efax.o efix.o efaxlib.o efaxos.o

efax.o:	efax.c efaxlib.h efaxos.h
efix.o:	efix.c efaxlib.h
efaxos.o:	efaxos.c efaxlib.h efaxos.h
efaxlib.o:	efaxlib.c efaxlib.h


