diff options
author | leochanj <jbakita@cs.unc.edu> | 2020-10-23 00:13:06 -0400 |
---|---|---|
committer | leochanj <jbakita@cs.unc.edu> | 2020-10-23 00:13:06 -0400 |
commit | d427b910baffcc330b0b24d87c9b3216f306d0fb (patch) | |
tree | ef312bc5757860a03673316be421c1624a5bb6b7 /SD-VBS/common | |
parent | b839934c04b214c9bdab399628ee2b94a65bcd10 (diff) | |
parent | a7c3210215bd1181ae93b23c313941dfb44519fb (diff) |
merged
Diffstat (limited to 'SD-VBS/common')
-rw-r--r-- | SD-VBS/common/makefiles/Makefile.common | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/SD-VBS/common/makefiles/Makefile.common b/SD-VBS/common/makefiles/Makefile.common index 144adb2..964ece6 100644 --- a/SD-VBS/common/makefiles/Makefile.common +++ b/SD-VBS/common/makefiles/Makefile.common | |||
@@ -18,7 +18,7 @@ endif | |||
18 | endif | 18 | endif |
19 | 19 | ||
20 | CC=gcc | 20 | CC=gcc |
21 | override CFLAGS += -DGCC -D$(INPUT) -pthread -DCHECK | 21 | override CFLAGS += -DGCC -D$(INPUT) -pthread -I../../../../.. |
22 | COMMON_DIR := $(TOP_DIR)/common/c | 22 | COMMON_DIR := $(TOP_DIR)/common/c |
23 | M_COMMON := $(TOP_DIR)/common/matlab | 23 | M_COMMON := $(TOP_DIR)/common/matlab |
24 | M_TOOLBOX=$(TOP_DIR)/common/toolbox | 24 | M_TOOLBOX=$(TOP_DIR)/common/toolbox |
@@ -28,7 +28,11 @@ PRELOAD_TIMES_DIR := $(TOP_DIR)/preload-times/$(BMARK) | |||
28 | MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK) | 28 | MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK) |
29 | BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK) | 29 | BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK) |
30 | TOOL_DIR := $(TOP_DIR)/tools | 30 | TOOL_DIR := $(TOP_DIR)/tools |
31 | LIBLITMUS := /home/litmus/liblitmus | 31 | LIBLITMUS ?= /home/litmus/liblitmus |
32 | ifneq ($(shell grep "define LITMUS 1" ../../../../../extra.h),) | ||
33 | override CFLAGS += -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include | ||
34 | override LDFLAGS += -L${LIBLITMUS} -llitmus | ||
35 | endif | ||
32 | #The options set below and specific to each benchmark. Disparity takes 2 input images, whereas Tracking can take any >1 input images =. | 36 | #The options set below and specific to each benchmark. Disparity takes 2 input images, whereas Tracking can take any >1 input images =. |
33 | 37 | ||
34 | # Variables exported from the benchmark specific Makefiles: | 38 | # Variables exported from the benchmark specific Makefiles: |
@@ -55,8 +59,8 @@ COMMON_SRC := $(wildcard $(COMMON_DIR)/*.c) | |||
55 | # RULES | 59 | # RULES |
56 | 60 | ||
57 | EXE = | 61 | EXE = |
58 | INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include | 62 | INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) |
59 | COMPILE_C = $(CC) $(CFLAGS) $(INCLUDES) -O2 | 63 | COMPILE_C = $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) -O2 |
60 | #COMPILE_C = $(CC) $(CFLAGS) -DGENERATE_OUTPUT -lm -O2 $(INCLUDES) | 64 | #COMPILE_C = $(CC) $(CFLAGS) -DGENERATE_OUTPUT -lm -O2 $(INCLUDES) |
61 | COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES) | 65 | COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES) |
62 | COMPILE_PG = $(COMPILE_G) -pg | 66 | COMPILE_PG = $(COMPILE_G) -pg |
@@ -107,7 +111,7 @@ compile-preload: | |||
107 | compile: $(C_SRC) | 111 | compile: $(C_SRC) |
108 | @echo | 112 | @echo |
109 | @echo -e "Benchmark\t\t- $(BMARK)" | 113 | @echo -e "Benchmark\t\t- $(BMARK)" |
110 | @$(COMPILE_C) $(COMMON_SRC) $(C_SRC) -lrt -L$(LIBLITMUS) -llitmus -lm -w -o $(BMARK)$(EXE) | 114 | @$(COMPILE_C) $(COMMON_SRC) $(C_SRC) -lrt -lm -w -o $(BMARK)$(EXE) |
111 | 115 | ||
112 | compile-prof: $(C_SRC) | 116 | compile-prof: $(C_SRC) |
113 | @echo | 117 | @echo |