ccconf - Makefile generation made easy
If you have a small C/C++ project using libedit,
~/devel/myshell> ls builtin.cc command.cc editline.h parser.c shell.cc myshell.cc builtin.h command.h main.cc parser.h shell.h myshell.h
How do you prepare the Makefile for it? CMake? Then you have to write a CMakeLists.txt file first. GNU autotools? I hope you know how to use them.
With ccconf, https://github.com/lichray/ccconf, to get a Makefile is as simple as
~/devel/myshell> ccconf -edit ==> Configuring for myshell ==> myshell depends on library: libedit.so - found ==> Writing Makefile ... done
Yes, you've done! Options start with `-` are regarded as shared libraries, and options start with `+` are passed to `pkg-config`. For example,
ccconf a.out -m +gtk+-2.0 CFLAGS+='-Wall'
Will create a Makefile which turns on 'all' the warnings when compiles the `a.out` binary, and links it with libm.so and gtk2. Although ccconf only works for a project without sub directories, it's still a great replacement to other tools since it requires minimum user input.















