-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
133 lines (119 loc) · 5.29 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#Makefile for the Albert program.
#
# Trent Whiteley September 1993
BIN=../bin
CC=gcc
CXX=g++
#CFLAGS=-MMD
#CFLAGS=-g -O0 -Wall
#CFLAGS=-g -O -Wall -mavx2
CFLAGS=-g -O3 -Wall -fopenmp -Weffc++ -Wextra -mavx2
#CFLAGS=-g -O3 -Wall -fopenmp --coverage
#CFLAGS=-g -O3 -Wall -fopenmp -fprofile-generate -fprofile-correction
#CFLAGS=-g -O3 -Wall -fopenmp -fprofile-use -fprofile-correction
#CFLAGS=-g -O3 -flto -Wall
#CFLAGS+=-DPROFILE_MEMORY
#CXXFLAGS=$(CFLAGS)
CXXFLAGS=$(CFLAGS) -std=c++11
LDFLAGS=-fopenmp
#LDFLAGS=-fopenmp --coverage
#LDFLAGS=-fopenmp -fprofile-generate -fprofile-correction
#LDFLAGS=-fopenmp -fprofile-use -fprofile-correction
#LDFLAGS=-g -O3 -flto
#LIBS=-lcurses -ltermcap -lm
#LIBS=-lreadline
LIBS=-lreadline
#LIBS+=-lprocps
C_FILES=$(wildcard *.c)
CPP_FILES=$(wildcard *.cpp)
OBJECTS=$(notdir $(C_FILES:.c=.o) $(CPP_FILES:.cpp=.o))
albert: $(OBJECTS)
$(CXX) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
doxygen: $(wildcard *.c *.h *.cpp)
doxygen doxygen_config
install: albert
/bin/rm -f ${BIN}/albert4
cp albert ${BIN}/albert4
chmod 775 ${BIN}/albert4
clean:
- rm -f albert *.o *.d *~ *# *.core core
- rm -f cachegrind.out.* callgrind.out.*
clean_all:
- make clean
- rm -f *.gcda *.gcno
- rm -f *.openss
- rm -rf doxygen
- rm -rf coverage coverage.info
coverage:
- lcov --capture --directory . --output-file coverage.info
- genhtml coverage.info --output-directory coverage
#-include $(OBJFILES:.o=.d)
Alg_elements.o: Alg_elements.cpp Alg_elements.h Build_defs.h \
Scalar_arithmetic.h Memory_routines.h Po_prod_bst.h Mult_table.h
Basis_table.o: Basis_table.cpp Basis_table.h Build_defs.h Generators.h \
Po_parse_exptext.h Help.h Memory_routines.h Po_prod_bst.h Type_table.h
Build.o: Build.cpp Build.h Id_routines.h Po_parse_exptext.h Type_table.h \
Build_defs.h Basis_table.h ExtractMatrix.h CreateMatrix.h \
GenerateEquations.h Mult_table.h Alg_elements.h Scalar_arithmetic.h \
SparseReduceMatrix.h Debug.h
CreateMatrix.o: CreateMatrix.cpp CreateMatrix.h Build_defs.h \
Basis_table.h Memory_routines.h Po_prod_bst.h Scalar_arithmetic.h \
SparseReduceMatrix.h Type_table.h
CreateSubs.o: CreateSubs.cpp CreateSubs.h Build_defs.h CreateMatrix.h \
Po_parse_exptext.h Type_table.h Memory_routines.h Po_prod_bst.h \
PerformSub.h GenerateEquations.h Debug.h
driver.o: driver.cpp driver.h Build_defs.h Basis_table.h Build.h \
Id_routines.h Po_parse_exptext.h Type_table.h Field.h Generators.h \
Get_Command.h Help.h Memory_routines.h Po_prod_bst.h Po_create_poly.h \
Po_routines.h Scalar_arithmetic.h Ty_routines.h Mult_table.h \
Alg_elements.h
ExtractMatrix.o: ExtractMatrix.cpp ExtractMatrix.h Build_defs.h \
CreateMatrix.h Basis_table.h Memory_routines.h Po_prod_bst.h \
Mult_table.h Alg_elements.h Scalar_arithmetic.h SparseReduceMatrix.h \
Type_table.h
Field.o: Field.cpp Field.h Build_defs.h
GenerateEquations.o: GenerateEquations.cpp GenerateEquations.h \
Build_defs.h CreateMatrix.h Po_parse_exptext.h Memory_routines.h \
Po_prod_bst.h Multpart.h CreateSubs.h Debug.h Type_table.h
Generators.o: Generators.cpp Generators.h Build_defs.h Po_parse_exptext.h
Get_Command.o: Get_Command.cpp Get_Command.h Memory_routines.h \
Po_prod_bst.h Strings.h Type_table.h Build_defs.h
Help.o: Help.cpp Help.h Help_pri.h
Id_routines.o: Id_routines.cpp Id_routines.h Po_parse_exptext.h \
Memory_routines.h Po_prod_bst.h Po_routines.h
Memory_routines.o: Memory_routines.cpp Memory_routines.h Po_prod_bst.h \
Po_parse_poly.h Po_parse_exptext.h Id_routines.h
Multpart.o: Multpart.cpp Multpart.h Build_defs.h CreateSubs.h \
CreateMatrix.h Po_parse_exptext.h Type_table.h Memory_routines.h \
Po_prod_bst.h Debug.h
Mult_table.o: Mult_table.cpp Mult_table.h Build_defs.h Alg_elements.h \
Scalar_arithmetic.h Help.h Memory_routines.h Po_prod_bst.h Basis_table.h
PerformSub.o: PerformSub.cpp PerformSub.h Build_defs.h CreateMatrix.h \
GenerateEquations.h Po_parse_exptext.h Alg_elements.h \
Scalar_arithmetic.h Memory_routines.h Po_prod_bst.h Debug.h
Po_create_poly.o: Po_create_poly.cpp Po_create_poly.h Po_parse_exptext.h \
Po_create_poly_pri.h Po_expand_poly.h Memory_routines.h Po_prod_bst.h \
Po_parse_poly.h Po_semantics.h Strings.h
Po_expand_poly.o: Po_expand_poly.cpp Po_expand_poly.h Memory_routines.h \
Po_prod_bst.h Po_parse_poly.h Po_semantics.h Ty_routines.h \
Po_parse_exptext.h
Po_parse_exptext.o: Po_parse_exptext.cpp Po_parse_exptext.h \
Memory_routines.h Po_prod_bst.h
Po_parse_poly.o: Po_parse_poly.cpp Po_parse_poly.h Po_parse_poly_pri.h \
Po_syn_stack.h Po_semantics.h Po_prod_bst.h
Po_prod_bst.o: Po_prod_bst.cpp Po_prod_bst.h Memory_routines.h
Po_routines.o: Po_routines.cpp Po_routines.h Po_parse_exptext.h \
Build_defs.h Generators.h Debug.h Alg_elements.h Scalar_arithmetic.h \
Memory_routines.h Po_prod_bst.h
Po_semantics.o: Po_semantics.cpp Po_parse_poly.h Po_syn_stack.h \
Po_semantics.h Memory_routines.h Po_prod_bst.h
Po_syn_stack.o: Po_syn_stack.cpp Po_syn_stack.h Po_parse_poly.h
Scalar_arithmetic.o: Scalar_arithmetic.cpp Scalar_arithmetic.h \
Build_defs.h driver.h
SparseReduceMatrix.o: SparseReduceMatrix.cpp SparseReduceMatrix.h \
CreateMatrix.h Build_defs.h Scalar_arithmetic.h
Strings.o: Strings.cpp Strings.h Memory_routines.h Po_prod_bst.h
Type_table.o: Type_table.cpp Type_table.h Build_defs.h Basis_table.h \
Memory_routines.h Po_prod_bst.h
Ty_routines.o: Ty_routines.cpp Ty_routines.h Po_parse_exptext.h \
Ty_routines_pri.h