Skip to content

Commit 13e58db

Browse files
committed
Fixing general Makefile and moving OpenCV to edge detector Makefile
1 parent 3f0b3e4 commit 13e58db

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

modules/Makefile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
ifndef USER_DEF_SYSTEMC_DIR
21
SYSTEMC?=$(HOME)/systemc-2.3.3
3-
endif # USER_DEF_SYSTEMC_DIR
42
TARGET?=test
53

64
# Compiler
@@ -19,15 +17,6 @@ BINDIR=./
1917
INCDIR=-I. -I./include -I$(SYSTEMC)/include -Ibasic_protocol -I$(SYSTEMC)/include/tlm_core/tlm_2
2018
LIBDIR=-L. -L$(SYSTEMC)/lib-linux64
2119

22-
ifdef INCLUDE_OPENCV
23-
# Target
24-
LIBS+=-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
25-
26-
# Source directories
27-
INCDIR+=-I/usr/local/include/opencv4
28-
LIBDIR+=-L/usr/local/lib
29-
endif # INCLUDE_OPENCV
30-
3120
SOURCES := $(wildcard $(SRCDIR)/*.cpp)
3221
INCLUDES := $(wildcard $(INCDIR)/*.hpp)
3322
OBJECTS := $(SOURCES:$(SRCDIR)/%.cpp=$(OBJDIR)/%.o)

modules/edge-detector/Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Adding stb lib for image handling
2-
INCDIR_STB=lib/stb
3-
INCLUDES_STB := $(wildcard $(INCDIR_STB)/*.h)
4-
51
# Include common Makefile
62
include ../Makefile
73

8-
# Include stb lib for compilation
9-
INCLUDES += INCLUDES_STB
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+
endif # INCLUDE_OPENCV
1012

1113
# Defining preprocessor directive for debug
1214
ifdef IPS_DEBUG_EN

0 commit comments

Comments
 (0)