在linux的codeblocks下,使用cdp2mak工具生成makefile文件,怎么做?
我是新手,还请前辈们多多指点!
我在网上找了下cdp2mak的说明,我对Linux的命令不熟,不知“-C cb/src” CodeBlocks.cbp是何意,还请前辈指点迷津!
Example:
generate makefile for CodeBlocks core:
$ cbp2mak -C cb/src CodeBlocks.cbp
generate makefile for CodeBlocks contrib:
$ cbp2mak -C cb/src ContribPlugins.workspace
build:
$ make -C cb/src -f CodeBlocks.cbp.mak
$ make -C cb/src -f ContribPlugins.workspace.mak
You might want to adjust some hardcoded paths in the makefile template
or specify _WX=/path/to/wx and _CB=... at the make commanline.
Todo:
- add support for virtual targets (currently it builds all targets