Well i debugged the compile process a little, and concluded that i have wrong makefile, which does not include gpucommon.h/cpp and bitcoinminercuda.h/cpp, and does not convert them to objects.
However, after adding them to makefile,
HEADERS=(...) cuda/bitcoinminercuda.h cuda/cudashared.h gpucommon/gpucommon.h
all: bitcoind
OBJS= \
(...)
obj/gpucommon.o \
obj/bitcoinminercuda.o
, make complains that it "cannot find rules to make object. Stop."
EDIT:
make: *** No rule to make target `obj/gpucommon.o', needed by `bitcoin'. Stop.
.
I know, I'm not a C++ programmer.