-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
35 lines (28 loc) · 1.03 KB
/
common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
################################################################################
#
# Copyright 2017-2018 NVIDIA Corporation. All rights reserved.
#
# Please refer to the NVIDIA end user license agreement (EULA) associated
# with this source code for terms and conditions that govern your use of
# this software. Any use, reproduction, disclosure, or distribution of
# this software and related documentation outside the terms of the EULA
# is strictly prohibited.
#
################################################################################
# Common definitions
GCC ?= g++
CCFLAGS := -std=c++11
# Debug build flags
ifeq ($(dbg),1)
CCFLAGS += -g
endif
CUDA_PATH ?= /usr/local/cuda
# Link applications against stub libraries provided in the SDKs.
LDFLAGS := -L$(CUDA_PATH)/lib64/stubs
LDFLAGS += -L../../../Lib/linux/stubs/$(shell uname -p)
LDFLAGS += -ldl -lcuda
NVCC ?= $(CUDA_PATH)/bin/nvcc
# Common includes and paths
INCLUDES := -I$(CUDA_PATH)/include
INCLUDES += -I../AppDec
INCLUDES += -I../include