From d85382e55c19510223800d572b1628aca5b5f188 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Couturier?= Date: Wed, 16 Jun 2021 14:45:01 +0200 Subject: [PATCH 1/1] add --- CipherImg/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 CipherImg/Makefile diff --git a/CipherImg/Makefile b/CipherImg/Makefile new file mode 100644 index 0000000..3b5eac3 --- /dev/null +++ b/CipherImg/Makefile @@ -0,0 +1,28 @@ +CXX=g++ -fpermissive +C=gcc + +uname_m := $(shell uname -m) +ifeq ($(uname_m),armv7l) +CFLAGS=-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt `pk +g-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 + + + +%.o: %.c + $(C) -c -o $@ $< $(CFLAGS) + + +test_sub_perm: test_sub_perm.o + $(CXX) -o $@ $^ $(CFLAGS) + + +clean: + rm -rf *.o -- 2.39.5