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

Private GIT Repository
new
[Cipher_code.git] / CipherImg / Makefile
1 CXX=g++  -fpermissive
2 C=gcc
3
4 uname_m := $(shell uname -m)
5 ifeq ($(uname_m),armv7l)
6         CFLAGS=-O3  -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -lrt `pk
7 g-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 -
11 -libs glib-2.0`
12         else
13                 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
14         endif
15 endif
16
17
18
19 %.o: %.c 
20         $(C) -c -o $@ $< $(CFLAGS)
21
22
23 test_sub_perm: test_sub_perm.o
24         $(CXX)  -o $@ $^ $(CFLAGS)
25
26
27 clean:
28         rm -rf *.o