-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (26 loc) · 1.22 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
CFLAGS= -Wall -O3
CFFFLAGS= -Wall -lm -lpthread -lrt -march=armv7-a -mtune=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -ffast-math -pipe -O3
L_CL_FLAGS= -Wall -lm -lpthread -lrt -march=armv7-a -mtune=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -ffast-math -pipe -O3
L_SW_FLAGS= -Wall -lssl -lcrypto -lm -lpthread -lrt -march=armv7-a -mtune=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -ffast-math -pipe -O3
COMPILER=gcc
all: visionon
visionon: vovu.o kiss_fft.o vision.o log.o cdata.o comms.o cio.o timer.o
$(COMPILER) $(+) -o $(@) $(L_SW_FLAGS)
vovu.o: vovu.c vovu.h vision.h log.h kiss_fft.h cdata.h vcomms.h cio.h timer.h
$(COMPILER) -c $(<) -o $(@) $(L_SW_FLAGS)
timer.o: timer.c timer.h
$(COMPILER) -c $(<) -o $(@) $(CFFFLAGS)
kiss_fft.o: kiss_fft.c kiss_fft.h
$(COMPILER) -c $(<) -o $(@) $(CCFLAGS)
vision.o: vision.c vision.h vovu.h kiss_fft.h log.h
$(COMPILER) -c $(<) -o $(@) $(L_CL_CFLAGS)
log.o: log.c log.h vovu.h
$(COMPILER) -c $(<) -o $(@) $(CFLAGS)
cdata.o: cdata.c cdata.h vovu.h log.h
$(COMPILER) -c $(<) -o $(@) $(L_SW_FLAGS)
comms.o: vcomms.c vcomms.h vovu.h log.h
$(COMPILER) -c $(<) -o $(@) $(L_SW_FLAGS)
cio.o: cio.c cio.h vovu.h log.h
$(COMPILER) -c $(<) -o $(@) $(L_SW_FLAGS)
clean:
rm *.o;rm ./visionon