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

Private GIT Repository
enhanced oneround
[Cipher_code.git] / Old_one_round / 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_light.o: one_round_light.cpp 
21         $(CXX) -c -o $@ $< $(CFLAGS)
22
23 one_round_light_v2.o: one_round_light_v2.cpp 
24         $(CXX) -c -o $@ $< $(CFLAGS)
25
26 one_round_light_auth.o: one_round_light_auth.cpp 
27         $(CXX) -c -o $@ $< $(CFLAGS)
28
29
30
31 one_round_light: pixmap_io.o one_round_light.o 
32         $(CXX)  -o $@ $^ $(CFLAGS)
33
34 one_round_light_v2: pixmap_io.o one_round_light_v2.o 
35         $(CXX)  -o $@ $^ $(CFLAGS)
36
37
38 one_round_light_auth: pixmap_io.o one_round_light_auth.o 
39         $(CXX) -fopenmp -o $@ $^ $(CFLAGS)
40
41
42 clean:
43         rm -rf *.o one_round_light one_round_light_v2 one_round_light_auth