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

Private GIT Repository
fd01cf4f0567fbb96851694b41bf56d2f43aeee4
[Cipher_code.git] / Arduino / With_Duc / Makefile
1 CXX=g++
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 `pkg-config --cflags --libs glib-2.0`
7 else
8 ifeq ($(uname_m),armv6l)
9 CFLAGS=-O3   -march=armv6 -mfpu=vfp -mfloat-abi=hard -lrt `pkg-config --cflags --libs glib-2.0`
10 else
11 CFLAGS=-O3 `pkg-config --cflags --libs glib-2.0`
12 endif
13 endif
14
15 %.o: %.c 
16         $(C) -c -o $@ $< $(CFLAGS)
17
18 version_linux.o: version_linux.c 
19         $(C) -c -o $@ $< $(CFLAGS)
20 version_linux: version_linux.o 
21         $(C)  -o $@ $^ $(CFLAGS)
22
23
24
25
26 clean:
27         rm -rf *.o version_linux