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

Private GIT Repository
new master
authorcouturier <raphael.couturie@univ-fcomte.fr>
Tue, 21 Jun 2022 09:46:42 +0000 (11:46 +0200)
committercouturier <raphael.couturie@univ-fcomte.fr>
Tue, 21 Jun 2022 09:46:42 +0000 (11:46 +0200)
other_ciphers/grain-128aead/Implementations/crypto_aead/grain128aead/opt32/Makefile

index c94ded0180a5f4af3decdc0fff8849c6b20e64b4..13650223b4e026207909e70d77a31ea0828f8691 100644 (file)
@@ -1,11 +1,27 @@
 CC=gcc 
 CC=gcc 
-NISTGCCFLAGS=-std=c99 -Wall -Wextra -Wshadow -fsanitize=address,undefined -O2 
+
+uname_m := $(shell uname -m)
+ifeq ($(uname_m),armv7l)
+CFLAGS=-O3  -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt `pkg-config --cflags --libs glib-2.0`
+else
+ifeq ($(uname_m),armv6l)
+CFLAGS=-O3   -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
+else
+CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
+endif
+endif
+
+
+
 LFLAGS=-lm
 all: raph
 
 
 LFLAGS=-lm
 all: raph
 
 
+
+
+
 raph: raph.c grain128aead_32p.c
 raph: raph.c grain128aead_32p.c
-       $(CC) $(NISTGCCFLAGS) -o $@ $^ $(LFLAGS)
+       $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)
 
 
 .PHONY: clean
 
 
 .PHONY: clean