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

Private GIT Repository
new
[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  -std=c++11 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt
7 else
8 ifeq ($(uname_m),armv6l)
9 CFLAGS=-O3  -std=c++11  -march=armv6-a -lrt
10 else
11 CFLAGS=-O3 
12 endif
13 endif
14
15
16 OBJ = pixmap_io.o one_round_new.o 
17
18 %.o: %.c 
19         $(C) -c -o $@ $< $(CFLAGS)
20
21 %.o: %.cpp 
22         $(CXX) -c -o $@ $< $(CFLAGS)
23
24 one_round_new: $(OBJ)
25         $(CXX) -o $@ $^ $(CFLAGS)
26
27 clean:
28         rm -rf $(OBJ) one_round_new