X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/d85382e55c19510223800d572b1628aca5b5f188..248cb37c4fc6ec91a0dc94ee5a94d2df675bfce9:/CipherImg/Makefile?ds=inline diff --git a/CipherImg/Makefile b/CipherImg/Makefile index 3b5eac3..0545936 100644 --- a/CipherImg/Makefile +++ b/CipherImg/Makefile @@ -3,15 +3,13 @@ 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` + 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 + 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 @@ -19,6 +17,8 @@ endif %.o: %.c $(C) -c -o $@ $< $(CFLAGS) +%.o: %.cpp + $(CXX) -c -o $@ $< $(CFLAGS) test_sub_perm: test_sub_perm.o $(CXX) -o $@ $^ $(CFLAGS)