summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/makefiles/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/common/makefiles/Makefile.common')
-rw-r--r--SD-VBS/common/makefiles/Makefile.common11
1 files changed, 5 insertions, 6 deletions
diff --git a/SD-VBS/common/makefiles/Makefile.common b/SD-VBS/common/makefiles/Makefile.common
index 7fc8824..144adb2 100644
--- a/SD-VBS/common/makefiles/Makefile.common
+++ b/SD-VBS/common/makefiles/Makefile.common
@@ -18,8 +18,7 @@ endif
18endif 18endif
19 19
20CC=gcc 20CC=gcc
21override CFLAGS += -DGCC -D$(INPUT) -pthread -DCHECK 21override CFLAGS += -DGCC -D$(INPUT) -pthread -DCHECK
22
23COMMON_DIR := $(TOP_DIR)/common/c 22COMMON_DIR := $(TOP_DIR)/common/c
24M_COMMON := $(TOP_DIR)/common/matlab 23M_COMMON := $(TOP_DIR)/common/matlab
25M_TOOLBOX=$(TOP_DIR)/common/toolbox 24M_TOOLBOX=$(TOP_DIR)/common/toolbox
@@ -29,7 +28,7 @@ PRELOAD_TIMES_DIR := $(TOP_DIR)/preload-times/$(BMARK)
29MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK) 28MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK)
30BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK) 29BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK)
31TOOL_DIR := $(TOP_DIR)/tools 30TOOL_DIR := $(TOP_DIR)/tools
32 31LIBLITMUS := /home/litmus/liblitmus
33#The options set below and specific to each benchmark. Disparity takes 2 input images, whereas Tracking can take any >1 input images =. 32#The options set below and specific to each benchmark. Disparity takes 2 input images, whereas Tracking can take any >1 input images =.
34 33
35# Variables exported from the benchmark specific Makefiles: 34# Variables exported from the benchmark specific Makefiles:
@@ -56,8 +55,8 @@ COMMON_SRC := $(wildcard $(COMMON_DIR)/*.c)
56# RULES 55# RULES
57 56
58EXE = 57EXE =
59INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) 58INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include
60COMPILE_C = $(CC) $(CFLAGS) -lm -O2 $(INCLUDES) 59COMPILE_C = $(CC) $(CFLAGS) $(INCLUDES) -O2
61#COMPILE_C = $(CC) $(CFLAGS) -DGENERATE_OUTPUT -lm -O2 $(INCLUDES) 60#COMPILE_C = $(CC) $(CFLAGS) -DGENERATE_OUTPUT -lm -O2 $(INCLUDES)
62COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES) 61COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES)
63COMPILE_PG = $(COMPILE_G) -pg 62COMPILE_PG = $(COMPILE_G) -pg
@@ -108,7 +107,7 @@ compile-preload:
108compile: $(C_SRC) 107compile: $(C_SRC)
109 @echo 108 @echo
110 @echo -e "Benchmark\t\t- $(BMARK)" 109 @echo -e "Benchmark\t\t- $(BMARK)"
111 @$(COMPILE_C) $(COMMON_SRC) $(C_SRC) -lrt -lm -w -o $(BMARK)$(EXE) 110 @$(COMPILE_C) $(COMMON_SRC) $(C_SRC) -lrt -L$(LIBLITMUS) -llitmus -lm -w -o $(BMARK)$(EXE)
112 111
113compile-prof: $(C_SRC) 112compile-prof: $(C_SRC)
114 @echo 113 @echo