]> AND Private Git Repository - Cipher_code.git/blob - Grain-128AEAD-sw-ref/Makefile
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
[Cipher_code.git] / Grain-128AEAD-sw-ref / Makefile
1
2 CC = gcc
3 #CFLAGS = -std=c99 -Wall -Wextra -Wshadow -O3 #-fsanitize=address,undefined -O2
4
5 uname_m := $(shell uname -m)
6 ifeq ($(uname_m),armv7l)
7 CFLAGS=-O3  -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt `pkg-config --cflags --libs glib-2.0`
8 else
9 ifeq ($(uname_m),armv6l)
10 CFLAGS=-O3   -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
11 else
12 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
13 endif
14 endif
15
16
17
18
19 all: grain128aead
20
21 init: CFLAGS += -DINIT
22 init: grain128aead
23
24 pre: CFLAGS += -DPRE
25 pre: grain128aead
26
27 grain128a: grain128a.c
28
29 clean:
30         rm -f grain128aead