# Makefile for efax # Change the following to the name of your ANSI C compiler # (normally gcc). CC?=cc # Compile/load options. Add -DNO_STRERROR to CFLAGS if _strerror # is undefined # Change the following to the destination directories for # binaries and man pages. Probably /usr/bin and /usr/man on # Linux, /usr/local/{bin,man} on other systems. BINDIR=$(PREFIX)/bin MANDIR=$(PREFIX)/man .c.o: $(CC) $(CFLAGS) -c $< all: efax efix efax: efax.o efaxlib.o efaxio.o efaxos.o efaxmsg.o $(CC) -o efax $(LDFLAGS) efax.o efaxlib.o efaxio.o efaxos.o efaxmsg.o strip efax efix: efix.o efaxlib.o efaxmsg.o $(CC) -o efix $(LDFLAGS) efix.o efaxlib.o efaxmsg.o strip efix install: $(INSTALL_PROGRAM) efax efix $(BINDIR) $(INSTALL_SCRIPT) fax $(BINDIR) $(INSTALL_DATA) fax.1 efax.1 efix.1 $(MANDIR)/man1 clean: rm -f efax efix efax.o efix.o efaxlib.o efaxio.o efaxos.o efaxmsg.o efax.o: efax.c efaxmsg.h efaxlib.h efaxio.h efaxos.h efaxio.o: efaxio.c efaxmsg.h efaxio.h efaxos.h efaxos.o: efaxos.c efaxmsg.h efaxlib.h efaxos.h efix.o: efix.c efaxmsg.h efaxlib.h efaxlib.o: efaxlib.c efaxmsg.h efaxlib.h efaxmsg.o: efaxmsg.c efaxmsg.h