File: Makefile

package info (click to toggle)
efax 08a-6
  • links: PTS
  • area: main
  • in suites: slink
  • size: 356 kB
  • ctags: 529
  • sloc: ansic: 4,161; sh: 624; makefile: 66
file content (48 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Makefile for efax

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

CC=gcc

# Compile/load options (CFLAGS=-O is good).
#
# For SunOS: add -DNO_STRERROR
#

CFLAGS=-O
LDFLAGS=

# 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=/usr/bin
MANDIR=/usr/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:
	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 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