Skip to content

Commit ed96dc7

Browse files
authored
Keep one copy of Makefile.common at project root. (#150)
2 parents 5b41e3e + ca52887 commit ed96dc7

File tree

55 files changed

+110
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+110
-177
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Makefile common settings used by bit-serial performance modeling
1+
# Makefile common settings for sub-modules
22
# Copyright (c) 2024 University of Virginia
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
@@ -7,7 +7,8 @@ CXX := g++
77
CXXFLAGS := -std=c++17 -Wall
88

99
# Setup libpimeval library
10-
LIBPIMEVAL_PATH ?= ../libpimeval
10+
PROJ_ROOT ?= .
11+
LIBPIMEVAL_PATH ?= $(PROJ_ROOT)/libpimeval
1112
INC_DIR := $(LIBPIMEVAL_PATH)/include
1213
LIB_DIR := $(LIBPIMEVAL_PATH)/lib
1314
CXXFLAGS += -I$(INC_DIR) -L$(LIB_DIR) -lpimeval

PIMbench/Makefile.common

Lines changed: 0 additions & 32 deletions
This file was deleted.

PIMbench/cpp-aes/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
EXEC := aes.out
1010
SRCS := $(wildcard *.cpp)

PIMbench/cpp-axpy/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
# make USE_OPENMP=1
1010
USE_OPENMP ?= 0

PIMbench/cpp-brightness/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
EXEC := brightness.out
1010
SRC := brightness.cpp

PIMbench/cpp-convolution/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
# make USE_OPENMP=1
1010
USE_OPENMP ?= 0

PIMbench/cpp-filter-by-key/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
EXEC := filter.out
1010
SRCS := $(wildcard *.cpp)

PIMbench/cpp-gemm/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
# make USE_OPENMP=1
1010
USE_OPENMP ?= 0

PIMbench/cpp-gemv/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
# make USE_OPENMP=1
1010
USE_OPENMP ?= 0

PIMbench/cpp-histogram/PIM/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# This file is licensed under the MIT License.
44
# See the LICENSE file in the root of this repository for more details.
55

6-
LIBPIMEVAL_PATH = ../../../libpimeval
7-
include ../../Makefile.common
6+
PROJ_ROOT = ../../..
7+
include ${PROJ_ROOT}/Makefile.common
88

99
EXEC := hist.out
1010
SRC := hist.cpp

0 commit comments

Comments
 (0)