3 uname_m := $(shell uname -m)
4 ifeq ($(uname_m),armv7l)
5 CFLAGS=-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt `pkg-config --cflags --libs glib-2.0`
7 ifeq ($(uname_m),armv6l)
8 CFLAGS=-O3 -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
10 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
16 #CFLAGS= -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx
21 CPP_FLAGS= -fopenmp -O3 -lc -lm
24 C_INCLUDE=gf-complete/include/
25 #LIBS= -larmadillo -lopenblas
27 #test_mat2: test_mat2.cpp
28 # g++ -std=c++11 $(CPP_FLAGS) -o $@ $< $(LIBS)
31 # g++ -std=c++11 $(CPP_FLAGS) -o $@ $< $(LIBS)
34 ida_gf64: ida_gf64.cpp
35 g++ -o $@ $< -std=c++11 -O3 -lm -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -g -O3 -Wall -I/home/couturie/ajeter/jerasure/include /home/couturie/ajeter/jerasure/src/.libs/jerasure.o /home/couturie/ajeter/jerasure/src/.libs/galois.o -lgf_complete -fpermissive
37 ida_gf65: ida_gf65.cpp
38 g++ -o $@ $< -std=c++11 -O3 -lm -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -g -O3 -Wall -Ijerasure/include jerasure/src/.libs/jerasure.o jerasure/src/.libs/galois.o -lgf_complete -fpermissive -lpthread -I $(C_INCLUDE)
41 ida_gf65_paper1: ida_gf65_paper1.cpp
42 g++ -o $@ $< -std=c++11 -O3 -lm -g -O3 -Wall -Ijerasure/include jerasure/src/.libs/jerasure.o jerasure/src/.libs/galois.o -lgf_complete -fpermissive -lpthread -I $(C_INCLUDE)
46 ida_gf65_paper2: ida_gf65_paper2.cpp
47 g++ -o $@ $< -std=c++11 -O3 -lm -g -O3 -Wall -Ijerasure/include jerasure/src/.libs/jerasure.o jerasure/src/.libs/galois.o -lgf_complete -fpermissive -lpthread -I $(C_INCLUDE)
50 rm test_mat2 ida ida_gf64 ida_gf65_paper1 ida_gf65_paper2