diff options
Diffstat (limited to 'SD-VBS/common/makefiles')
| -rw-r--r-- | SD-VBS/common/makefiles/Makefile.common | 11 |
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 | |||
| 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 -DCHECK |
| 22 | |||
| 23 | COMMON_DIR := $(TOP_DIR)/common/c | 22 | COMMON_DIR := $(TOP_DIR)/common/c |
| 24 | M_COMMON := $(TOP_DIR)/common/matlab | 23 | M_COMMON := $(TOP_DIR)/common/matlab |
| 25 | M_TOOLBOX=$(TOP_DIR)/common/toolbox | 24 | M_TOOLBOX=$(TOP_DIR)/common/toolbox |
| @@ -29,7 +28,7 @@ PRELOAD_TIMES_DIR := $(TOP_DIR)/preload-times/$(BMARK) | |||
| 29 | MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK) | 28 | MTIMING_DIR := $(TOP_DIR)/cycles/$(BMARK) |
| 30 | BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK) | 29 | BMARK_DIR := $(TOP_DIR)/benchmarks/$(BMARK) |
| 31 | TOOL_DIR := $(TOP_DIR)/tools | 30 | TOOL_DIR := $(TOP_DIR)/tools |
| 32 | 31 | LIBLITMUS := /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 | ||
| 58 | EXE = | 57 | EXE = |
| 59 | INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) | 58 | INCLUDES = -I$(COMMON_DIR) -I$(C_DIR) -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include |
| 60 | COMPILE_C = $(CC) $(CFLAGS) -lm -O2 $(INCLUDES) | 59 | COMPILE_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) |
| 62 | COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES) | 61 | COMPILE_G = $(CC) $(CFLAGS) -g -lm $(INCLUDES) |
| 63 | COMPILE_PG = $(COMPILE_G) -pg | 62 | COMPILE_PG = $(COMPILE_G) -pg |
| @@ -108,7 +107,7 @@ compile-preload: | |||
| 108 | compile: $(C_SRC) | 107 | compile: $(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 | ||
| 113 | compile-prof: $(C_SRC) | 112 | compile-prof: $(C_SRC) |
| 114 | @echo | 113 | @echo |
