ftp://ftp.metalab.unc.edu/pub/Linux/apps/serialcomm/fax/efax-0.9.tar.gz
[efax.git] / Makefile
1 # Makefile for efax
2
3 # Change the following to the name of your ANSI C compiler
4 # (normally gcc).
5
6 CC=gcc
7
8 # Compile/load options. Add -DNO_STRERROR to CFLAGS if _strerror
9 # is undefined
10
11 CFLAGS=
12 LDFLAGS=
13
14 # Change the following to the destination directories for
15 # binaries and man pages. Probably /usr/bin and /usr/man on
16 # Linux, /usr/local/{bin,man} on other systems.
17
18 BINDIR=/usr/bin
19 MANDIR=/usr/man
20
21 .c.o:
22         $(CC) $(CFLAGS) -c $<
23
24 all:    efax efix
25
26 efax:   efax.o efaxlib.o efaxio.o efaxos.o efaxmsg.o
27         $(CC) -o efax $(LDFLAGS) efax.o efaxlib.o efaxio.o efaxos.o efaxmsg.o
28         strip efax
29
30 efix:   efix.o efaxlib.o efaxmsg.o
31         $(CC) -o efix $(LDFLAGS) efix.o efaxlib.o efaxmsg.o
32         strip efix
33
34 install:
35         cp fax efax efix $(BINDIR)
36         cp fax.1 efax.1 efix.1 $(MANDIR)/man1
37
38 clean:  
39         rm -f efax efix efax.o efix.o efaxlib.o efaxio.o efaxos.o efaxmsg.o
40
41 efax.o:         efax.c    efaxmsg.h efaxlib.h efaxio.h efaxos.h
42 efaxio.o:       efaxio.c  efaxmsg.h           efaxio.h efaxos.h
43 efaxos.o:       efaxos.c  efaxmsg.h efaxlib.h          efaxos.h
44 efix.o:         efix.c    efaxmsg.h efaxlib.h           
45 efaxlib.o:      efaxlib.c efaxmsg.h efaxlib.h           
46 efaxmsg.o:      efaxmsg.c efaxmsg.h