-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (25 loc) · 925 Bytes
/
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
GSL = 3rdparty/gsl/build/.libs/libgsl.a
GSLCBLAS = 3rdparty/gsl/build/cblas/.libs/libgslcblas.a
GSLSRC = 3rdparty/gsl/configure
all: $(GSL) $(GSLCBLAS)
$(MAKE) -C ./src/
GSLVERSION=1.16
$(GSLSRC):
mkdir -p 3rdparty/ && \
cd 3rdparty/ && \
wget http://ftpmirror.gnu.org/gsl/gsl-$(GSLVERSION).tar.gz && \
tar zxf gsl-$(GSLVERSION).tar.gz && \
mv gsl-$(GSLVERSION) gsl
$(GSL): $(GSLCBLAS) $(GSLSRC)
$(GSLCBLAS): $(GSLSRC)
mkdir -p 3rdparty/gsl/build/ && cd 3rdparty/gsl/build/ && ../configure --host=armv6 && $(MAKE) CFLAGS="$(CXXFLAGS)"
raspi: CXXFLAGS+=-g3 -Wall -pedantic -static-libgcc -static-libstdc++ -mfloat-abi=hard -mfpu=vfp -ffast-math -fopenmp -Ofast -flto
raspi: $(GSL) $(GSLCBLAS)
$(MAKE) -C ./src/ CXXFLAGS="$(CXXFLAGS)" CFLAGS="$(CXXFLAGS)"
.SILENT:
clean:
$(RM) -R 3rdparty/gsl/build/
$(MAKE) -C ./src/ clean
distclean: clean
$(RM) -r 3rdparty/gsl*
.PHONY: gsl