blob: acbace9743e92599543c3ec31f5985480af26c5f (
plain)
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
|
REALDIR=/home/dnw/Code/ERA-calc/ic-reals-6.3
GMPDIR=/home/dnw/Code/ERA-calc/gmp-6.3.0
# In OTHER_FLAGS:
# -DDAVINCI enables the davinci interface
# -DTRACE=traceOn enables tracing accoring to library function debugTrace()
# -DTRACE=0 disable tracing completely (or simply omit -DTRACE)
# -DSTACK_SIZE is the number of K words in the stack
CFLAGS = \
$(INCLUDE) \
-g \
-DPACK_DIGITS \
-DDEFAULT_FORCE_COUNT=1 \
-DSTACK_SIZE=20 \
-DFORCE_DEC_UPPER_BOUND=10000 \
-DREALDIR=\\\"$(REALDIR)\\\" \
-O3
# The following flags are not used. They are here for convenience; they can
# be cut and pasted easily into the list above
OTHER_FLAGS = \
-pg \
-DTRACE=traceOn \
-DTRACE=1 \
-DDEFAULT_FORCE_COUNT=1 \
END
LIB=$(GMPDIR)/libgmp.la
INCLUDE = \
-I.. \
-I$(GMPDIR) \
-I$(GMPDIR)/mpn/
CC = gcc
FLAGS_TO_PASS = \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
"GMPDIR=$(GMPDIR)" \
"REALDIR=$(REALDIR)"
real.a : force
cd base; $(MAKE) $(FLAGS_TO_PASS)
cd math-lib; $(MAKE) $(FLAGS_TO_PASS)
ar rc real.a math-lib/*.o base/*.o $(GMPDIR)/*.o $(GMPDIR)/mpz/*.o \
$(GMPDIR)/mpn/*.o $(GMPDIR)/mpq/*.o $(GMPDIR)/mpf/*.o $(GMPDIR)/scanf/*.o
clean:
cd base; $(MAKE) clean
cd math-lib; $(MAKE) clean
cd tests; $(MAKE) clean
rm -f real.a
force:
.PHONY: force
|