3 #CFLAGS = -std=c99 -Wall -Wextra -Wshadow -O3 #-fsanitize=address,undefined -O2
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`
9 ifeq ($(uname_m),armv6l)
10 CFLAGS=-O3 -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
12 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
21 init: CFLAGS += -DINIT
27 grain128a: grain128a.c