-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (35 loc) · 1.36 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
#
# Galois Field Arithmetic Library
# By Arash Partow - 2000
#
# URL: http://www.partow.net/projects/galois/index.html
#
# Copyright Notice:
# Free use of this library is permitted under the
# guidelines and in accordance with the most
# current version of the Common Public License.
# http://www.opensource.org/licenses/cpl.php
#
COMPILER = -c++
OPTIMIZATION_OPT = -O3
OPTIONS = -pedantic -ansi -Wall -lstdc++ $(OPTIMIZATION_OPT) -o
OPTIONS_LIBS = -pedantic -ansi -Wall $(OPTIMIZATION_OPT) -c
CPP_SRC = GaloisField.cpp \
GaloisFieldElement.cpp \
GaloisFieldPolynomial.cpp
OBJECTS = $(CPP_SRC:.cpp=.o)
%.o: %.h %.cpp
$(COMPILER) $(OPTIONS_LIBS) $*.cpp
all: $(OBJECTS) GaloisProto GaloisFieldOut GaloisFieldTest GFPDerivTest GaloisShiftProto
GaloisProto: GaloisProto.cpp $(OBJECTS)
$(COMPILER) $(OPTIONS) GaloisProto GaloisProto.cpp $(OBJECTS)
GaloisFieldOut: GaloisFieldOut.cpp $(OBJECTS)
$(COMPILER) $(OPTIONS) GaloisFieldOut GaloisFieldOut.cpp $(OBJECTS)
GaloisFieldTest: GaloisFieldTest.cpp $(OBJECTS)
$(COMPILER) $(OPTIONS) GaloisFieldTest GaloisFieldTest.cpp $(OBJECTS)
GFPDerivTest: GFPDerivTest.cpp $(OBJECTS)
$(COMPILER) $(OPTIONS) GFPDerivTest GFPDerivTest.cpp $(OBJECTS)
GaloisShiftProto: GaloisShiftProto.cpp $(OBJECTS)
$(COMPILER) $(OPTIONS) GaloisShiftProto GaloisShiftProto.cpp $(OBJECTS)
clean:
rm -f core *.o *.bak *stackdump *#