-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
81 lines (67 loc) · 1.59 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# Makefile for program "cover" by Kari J. Nurmela.
#
CC = gcc
LIBS= -lm
FLAGS= -ggdb -W # unoptimized, debuggable
#FLAGS= -W -O2 # optimized, not debuggable
#if windows
#REMOVE= del cover.exe
#DELETE = del
#if UNIX
REMOVE= rm -f cover
DELETE= rm -f
HEADERS= cover.h bincoef.h tables.h setoper.h solcheck.h exp.h arg.h pdo.h
OBJECTS= cover.o bincoef.o tables.o setoper.o solcheck.o exp.o arg.o pdo.o
CS= cover.c bincoef.c tables.c setoper.c solcheck.c exp.c arg.c pdo.c
AUTOBACKUPS= *~
.cc.o :
$(CC) $(FLAGS) -c $<
cover: $(OBJECTS)
$(REMOVE)
$(CC) -o cover $(OBJECTS) \
$(LIBS)
distrib:
tar cvf cover.tar arg.c bincoef.c cover.c exp.c setoper.c solcheck.c tables.c arg.h bincoef.h cover.h exp.h setoper.h solcheck.h tables.h Makefile README
compress cover.tar
zip cover.zip arg.c bincoef.c cover.c exp.c setoper.c solcheck.c tables.c arg.h bincoef.h cover.h exp.h setoper.h solcheck.h tables.h Makefile README
echo "NOTE: distribution contains files cover.tar.Z, cover.zip, and README."
clean:
$(DELETE) $(OBJECTS)
$(DELETE) $(AUTOBACKUPS)
$(DELETE) core
$(DELETE) cover.tar
$(DELETE) cover.tar.Z
# rm -f $(OBJECTS)
# rm -f $(AUTOBACKUPS)
# rm -f core
# rm -f cover.tar
# rm -f cover.tar.Z
cover.o: \
cover.h \
bincoef.h \
tables.h \
exp.h \
solcheck.h
bincoef.o: \
cover.h \
bincoef.h
tables.o: \
cover.h \
tables.h \
bincoef.h \
setoper.h
setoper.o: \
cover.h \
setoper.h \
bincoef.h
solcheck.o: \
cover.h \
setoper.h \
bincoef.h \
tables.h \
solcheck.h
arg.o: \
cover.h \
arg.h \
tables.h