File tree Expand file tree Collapse file tree 5 files changed +19
-32
lines changed
Expand file tree Collapse file tree 5 files changed +19
-32
lines changed Original file line number Diff line number Diff line change 1- SYSTEMC? =$(HOME ) /systemc-2.3.3
1+ SYSTEMC? =$(SYSTEMC_HOME )
22TARGET? =test
33
44# Compiler
55CC =g++
66CFLAGS =-Wall -I. -O3 -g -Wextra -Wunused-function
77
8+ ifdef USE_CPP17
9+ CFLAGS+=-std =c++17
10+ endif
11+
812# Target
913LD =g++
1014LFLAGS =-Wall -I. -lm -g
1115LIBS =-lsystemc -lm
1216
17+ ifdef INCLUDE_OPENCV
18+ # Target
19+ LIBS+ =-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
20+
21+ # Source directories
22+ INCDIR+ =-I$(OPENCV_H_DIR )
23+ LIBDIR+ =-L$(OPENCV_SO_DIR )
24+ else
25+ ifdef INCLUDE_OPENCV_PKG
26+ CFLAGS += $(shell pkg-config --cflags opencv4)
27+ LFLAGS += $(shell pkg-config --libs opencv4)
28+ endif # INCLUDE_OPENCV_PKG
29+ endif # INCLUDE_OPENCV
30+
1331# Source directories
1432SRCDIR =src
1533OBJDIR =obj
Original file line number Diff line number Diff line change 11# Include common Makefile
22include ../Makefile
33
4- ifdef INCLUDE_OPENCV
5- # Target
6- LIBS+ =-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
7-
8- # Source directories
9- INCDIR+ =-I/usr/local/include/opencv4
10- LIBDIR+ =-L/usr/local/lib
11- else
12- CFLAGS += $(shell pkg-config --cflags opencv4)
13- LFLAGS += $(shell pkg-config --libs opencv4)
14- endif # INCLUDE_OPENCV
15-
164# Defining preprocessor directive for debug
175ifdef IPS_DEBUG_EN
186 CFLAGS += -DIPS_DEBUG_EN
Original file line number Diff line number Diff line change 11# Include common Makefile
22include ../Makefile
33
4- # Include OpenCV for compilation
5- CFLAGS += $(shell pkg-config --cflags opencv4)
6- LFLAGS += $(shell pkg-config --libs opencv4)
7-
84# Defining preprocessor directive for debug
95ifdef IPS_DEBUG_EN
106 CFLAGS += -DIPS_DEBUG_EN
Original file line number Diff line number Diff line change 11# Include common Makefile
22include ../Makefile
33
4- CFLAGS+=-std =c++17
5-
6- ifdef INCLUDE_OPENCV
7- # Target
8- LIBS+ =-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
9-
10- # Source directories
11- INCDIR+ =-I$(OPENCV_H_DIR )
12- LIBDIR+ =-L$(OPENCV_SO_DIR )
13- else
14- CFLAGS += $(shell pkg-config --cflags opencv4)
15- LFLAGS += $(shell pkg-config --libs opencv4)
16- endif # INCLUDE_OPENCV
17-
184# Defining preprocessor directive for debug
195ifdef IPS_DEBUG_EN
206 CFLAGS += -DIPS_DEBUG_EN
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ include ../Makefile
88# Include stb lib for compilation
99INCLUDES += INCLUDES_STB
1010
11-
1211# Defining preprocessor directive for using PV model
1312ifdef IMG_UNIFICATE_PV_EN
1413 CFLAGS += -DIMG_UNIFICATE_PV_EN
You can’t perform that action at this time.
0 commit comments