qt - Compile a kernel module using qmake project -


i have following project structure:

/     general.pro     a/         a.pro         files     b/         b.pro         files     c/         makefile         files 

general.pro template=subdirs style qmake-project. 2 other project files normal/common qmake project files (folder , b). third folder (folder c) contains kernel module following makefile: http://pastebin.com/bv39d6kk

i'm wondering if makefile can translated somehow qmake project file. if not, there way the general.pro project file there "c" folder containing makefile should ran too?

regards

i doubt, can include makefile in .pro file.

here thoughts can do:

  1. if c project, create 1 more .pro file it.
  2. if not, , don't need edit it, build without including subdirs (if it's library, using in a or b, still can build it, , create .pri file , add includes , libs etc).
  3. if need build machine or deploying, use build script.
  4. you use cmake.

update:

it turns out, there solution.

though, not make work myself, hope helps. need add following lines top-level pro file:

mytarget.commands = make -c c qmake_extra_targets += mytarget pre_targetdeps += mytarget 

where c name of sub-directory, containing makefile.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -