]> AND Private Git Repository - Cipher_code.git/blob - IDA_new/Makefile
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
add
[Cipher_code.git] / IDA_new / Makefile
1
2
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`
6 else
7 ifeq ($(uname_m),armv6l)
8 CFLAGS=-O3   -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
9 else
10 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
11 endif
12 endif
13
14
15 # LINUX to improve
16 #CFLAGS= -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx 
17
18
19
20
21 CPP_FLAGS= -fopenmp  -O3 -lc   -lm  
22
23
24 C_INCLUDE=gf-complete/include/
25 #LIBS= -larmadillo -lopenblas
26
27 #test_mat2: test_mat2.cpp
28 #       g++ -std=c++11 $(CPP_FLAGS)  -o $@ $<   $(LIBS)
29
30 #ida: ida.cpp
31 #       g++ -std=c++11 $(CPP_FLAGS)  -o $@ $<   $(LIBS)
32
33
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
36
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)
39
40
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)
43
44
45
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)
48
49 ida_gf65_paper3: ida_gf65_paper3.cpp
50         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)
51
52
53 clean:
54         rm test_mat2 ida ida_gf64  ida_gf65_paper1  ida_gf65_paper2   ida_gf65_paper3