-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
70 lines (55 loc) · 2.02 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
# Galois.tar - Fast Galois Field Arithmetic Library in C/C++
# Copright (C) 2007 James S. Plank
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# James S. Plank
# Department of Computer Science
# University of Tennessee
# Knoxville, TN 37996
CC = gcc
CFLAGS = -O3 -I$(HOME)/include
ALL = gf_mult gf_div gf_xor gf_log gf_ilog gf_basic_tester gf_inverse gf_xor_tester
all: $(ALL)
clean:
rm -f core *.o $(ALL) a.out
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $*.c
galois.o: galois.h
gf_xor_tester.o: galois.h galois.o
gf_xor_tester: gf_xor_tester.o galois.o
$(CC) $(CFLAGS) -o gf_xor_tester gf_xor_tester.o galois.o
gf_basic_tester.o: galois.h galois.o
gf_basic_tester: gf_basic_tester.o galois.o
$(CC) $(CFLAGS) -o gf_basic_tester gf_basic_tester.o galois.o
gf_inverse.o: galois.h galois.o
gf_inverse: gf_inverse.o galois.o
$(CC) $(CFLAGS) -o gf_inverse gf_inverse.o galois.o
gf_ilog.o: galois.h galois.o
gf_ilog: gf_ilog.o galois.o
$(CC) $(CFLAGS) -o gf_ilog gf_ilog.o galois.o
gf_log.o: galois.h galois.o
gf_log: gf_log.o galois.o
$(CC) $(CFLAGS) -o gf_log gf_log.o galois.o
gf_mult.o: galois.h galois.o
gf_mult: gf_mult.o galois.o
$(CC) $(CFLAGS) -o gf_mult gf_mult.o galois.o
gf_div.o: galois.h galois.o
gf_div: gf_div.o galois.o
$(CC) $(CFLAGS) -o gf_div gf_div.o galois.o
gf_xor: gf_xor.o galois.o
$(CC) $(CFLAGS) -o gf_xor gf_xor.o