-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 707 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 707 Bytes
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
CPP=g++
BUILD_DIR=./build
BINARY=$(BUILD_DIR)/CNN
SRC=src/CNN.cpp src/SAXHandler.cpp
INCLUDES=./include
LIBS=-lpthread -lxerces-c
OPENCV_INCLUDES_AND_LIBS=`pkg-config --cflags --libs opencv`
RM=rm -rf
FIND=find -name
PIPE=xargs
MKDIR=mkdir
all: clean create-build-dir debug
debug:
$(CPP) -DDEBUG -o $(BINARY) $(SRC) -I$(INCLUDES) $(OPENCV_INCLUDES_AND_LIBS) $(LIBS)
nodebug:
$(CPP) -o $(BINARY) $(SRC) -I$(INCLUDES) $(OPENCV_INCLUDES_AND_LIBS) $(LIBS)
clean:
$(FIND) "*~" | $(PIPE) $(RM)
$(RM) $(BUILD_DIR)
create-build-dir:
$(MKDIR) $(BUILD_DIR)
run: run-sequential
run-sequential:
$(BINARY) ./xml/cnn-config.xml features.dat 0
run-parallel:
$(BINARY) ./xml/cnn-config.xml features.dat 1 10