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

Private GIT Repository
8f0c0cfde3962d3b0d5f6db0adf4eaf15fb92a93
[Cipher_code.git] / OneRoundIoT / OneRound / Makefile
1 CXX=g++
2 C=gcc
3
4 uname_m := $(shell uname -m)
5 ifeq ($(uname_m),armv7l)
6 CFLAGS=-O3  -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt
7 else
8 ifeq ($(uname_m),armv6l)
9 CFLAGS=-O3   -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt
10 else
11 CFLAGS=-O3 
12 endif
13 endif
14
15
16
17 %.o: %.c 
18         $(C) -c -o $@ $< $(CFLAGS)
19
20 one_round_new.o: one_round_new.cpp 
21         $(CXX) -c -o $@ $< $(CFLAGS)
22
23
24
25 one_round_par.o: one_round_par.cpp 
26         $(CXX)  -fopenmp -c -o $@ $< $(CFLAGS)
27
28 one_round_par2.o: one_round_par2.cpp 
29         $(CXX)  -fopenmp -c -o $@ $< $(CFLAGS)
30
31 one_round_new: pixmap_io.o one_round_new.o 
32         $(CXX)  -o $@ $^ $(CFLAGS)
33
34 one_round_par: pixmap_io.o one_round_par.o 
35         $(CXX) -fopenmp -o $@ $^ $(CFLAGS)
36
37
38 one_round_par2: pixmap_io.o one_round_par2.o 
39         $(CXX) -fopenmp -o $@ $^ $(CFLAGS)
40
41 clean:
42         rm -rf *.o one_round_new one_round_par one_round_par2