aboutsummaryrefslogtreecommitdiff
path: root/examples/redis-unstable/deps/fast_float/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/deps/fast_float/Makefile')
-rw-r--r--examples/redis-unstable/deps/fast_float/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/redis-unstable/deps/fast_float/Makefile b/examples/redis-unstable/deps/fast_float/Makefile
new file mode 100644
index 0000000..e3acaa5
--- /dev/null
+++ b/examples/redis-unstable/deps/fast_float/Makefile
@@ -0,0 +1,27 @@
1# Fallback to gcc/g++ when $CC or $CXX is not in $PATH.
2CC ?= gcc
3CXX ?= g++
4
5WARN=-Wall
6OPT=-O3
7STD=-std=c++11
8DEFS=-DFASTFLOAT_ALLOWS_LEADING_PLUS
9
10FASTFLOAT_CFLAGS=$(WARN) $(OPT) $(STD) $(DEFS) $(CFLAGS)
11FASTFLOAT_LDFLAGS=$(LDFLAGS)
12
13libfast_float: fast_float_strtod.o
14 $(AR) -r libfast_float.a fast_float_strtod.o
15
1632bit: FASTFLOAT_CFLAGS += -m32
1732bit: FASTFLOAT_LDFLAGS += -m32
1832bit: libfast_float
19
20fast_float_strtod.o: fast_float_strtod.cpp
21 $(CXX) $(FASTFLOAT_CFLAGS) -c fast_float_strtod.cpp $(FASTFLOAT_LDFLAGS)
22
23clean:
24 rm -f *.o
25 rm -f *.a
26 rm -f *.h.gch
27 rm -rf *.dSYM