一个c文件调用别的位置的.h头文件makefile怎么写?
INC=../../../../Desktop/tanjy/su/includeLIB=../../../../Desktop/tanjy/su/libLIBS=-lsu...
INC=../../../../Desktop/tanjy/su/include
LIB=../../../../Desktop/tanjy/su/lib
LIBS=-lsu -lpar -lcwp -lm
# Add source files here
EXECUTABLE := youxianchafen
# CUDA source files (compiled with cudacc)
CUFILES := youxianchafen.cu
# CUDA dependency files
CU_DEPS := \
template_kernel.cu \
# C/C++ source files (compiled with gcc / c++)
gcc -I ${INC} -L ${LIB} ${LIBS} \
CCFILES := \
s.c
################################################################################
# Rules and targets
include ../../common/common.mk
就是s.c文件要调用别处的su.h怎么写? 展开
LIB=../../../../Desktop/tanjy/su/lib
LIBS=-lsu -lpar -lcwp -lm
# Add source files here
EXECUTABLE := youxianchafen
# CUDA source files (compiled with cudacc)
CUFILES := youxianchafen.cu
# CUDA dependency files
CU_DEPS := \
template_kernel.cu \
# C/C++ source files (compiled with gcc / c++)
gcc -I ${INC} -L ${LIB} ${LIBS} \
CCFILES := \
s.c
################################################################################
# Rules and targets
include ../../common/common.mk
就是s.c文件要调用别处的su.h怎么写? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询