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

Private GIT Repository
Merge branch 'master' of ssh://info.iut-bm.univ-fcomte.fr/Cipher_code
[Cipher_code.git] / OneRoundHash / Makefile
1 CXX=g++ -O3
2 C=gcc -O3
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 `pkg-config --cflags --libs glib-2.0` 
7 else
8 ifeq ($(uname_m),armv6l)
9 CFLAGS=-O3   -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0` 
10 else
11 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0` 
12 endif
13 endif
14
15
16
17 %.o: %.c 
18         $(C) -c -o $@ $< $(CFLAGS)
19
20 oneroundhash.o: oneroundhash.cpp 
21         $(CXX) -c -o $@ $< $(CFLAGS)
22
23 oneroundhash: pixmap_io.o oneroundhash.o 
24         $(CXX)  -o $@ $^ $(CFLAGS)
25
26
27
28 clean:
29         rm -rf *.o oneroundhash