-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
56 lines (47 loc) · 1.12 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
GCC := gcc
ARGS := -O3 -lm -g
SRC := src/
REAL_TIME_NDI := $(SRC)RealTime-NDI/
OPEN_MP := $(SRC)OpenMP/
CUDA := $(SRC)cuda/
LLF := $(SRC)llf/
UTILS := $(SRC)utils/
SCRIPTS := scripts/
.PHONY: default
default : all
.PHONY : clean
clean :
rm -rf bin/
rm -f tmp/*
$(MAKE) -C $(LLF) clean
$(MAKE) -C $(CUDA) clean
$(MAKE) -C $(OPEN_MP) clean
$(MAKE) -C $(REAL_TIME_NDI) clean
.PHONY : bin
bin :
mkdir -p bin
.PHONY : openmp
openmp : testimage bin
$(MAKE) -C $(OPEN_MP)
.PHONY : cuda
cuda : testimage bin
$(MAKE) -C $(CUDA)
.PHONY : realtime-ndi
realtime-ndi : realtime-ndi-cuda realtime-ndi-openmp realtime-ndi-llf
.PHONY : realtime-ndi-cuda
realtime-ndi-cuda : bin
$(MAKE) -C $(REAL_TIME_NDI) cuda
.PHONY : realtime-ndi-openmp
realtime-ndi-openmp : bin
$(MAKE) -C $(REAL_TIME_NDI) openmp
.PHONY : realtime-ndi-llf
realtime-ndi-llf : bin
$(MAKE) -C $(REAL_TIME_NDI) llf
.PHONY : llf
llf : testimage bin
$(MAKE) -C $(LLF)
.PHONY : testimage
testimage :
python3 $(SCRIPTS)staticImageConvertI2C.py imgTest/flower.png $(UTILS)test/testimage.h
all : clean bin openmp cuda llf realtime-ndi
@echo "Compiled everything successfully"