Commit 1fedbf5a authored by kolusask's avatar kolusask
Browse files

Cleanup Makefile

parent da1b624b
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -3,8 +3,6 @@ SANITIZER_FLAGS += -fsanitize=address

TNLFLAGS := -I ~/.local/include
GTESTFLAGS := -lgtest -lgtest_main -lpthread
LD := g++ -std=c++17
LDFLAGS := -Wall -pedantic -Wextra -g $(SANITIZER_FLAGS) $(TNLFLAGS)
CUDAFLAGS := -lcuda -lcudart

all: pre-build unit_test test
@@ -14,12 +12,11 @@ pre-build:
	@echo 'Using CUDA'
CPP := nvcc -std=c++17
CPPFLAGS := -x cu -DHAVE_CUDA -Wno-deprecated-gpu-targets --expt-relaxed-constexpr --expt-extended-lambda $(CUDAFLAGS) $(TNLFLAGS) -g -G
LDFLAGS += -DHAVE_CUDA $(CUDAFLAGS)
else
pre-build:
	@echo 'CUDA not used'
CPP := $(LD)
CPPFLAGS := $(LDFLAGS)
CPP := g++ -std=c++17
CPPFLAGS := -Wall -pedantic -Wextra -g $(SANITIZER_FLAGS) $(TNLFLAGS)
endif

HEADERS := CuckooHash/CuckooHashMap.h\