A simple commandline C program to set up a C programming project. This is for programmers that prefer to do development using the terminal.
Sample output:
New C Project
├─ bin
├─ src
│ └─ sourcefile.c
└─ Makefile
An installation of MinGW is required to build, compile, and install this program in windows.
Note:
For those who are new to using MinGW, after installing it, please
read this to set it properly.
To build, compile, and install cps in debug build, just run the following command:
$>make
...
$>make install
To build, compile, and install cps in release build, run the following command:
$> make release
...
$> make install
Installation note:
In linux, to use the program installed in this directory ~/local/bin
, add the following to the .bashrc
file.
export PATH=$PATH:~/local/bin
In windows, to use this program installed in similar directory (expecting that you installed the required MinGW), add the following to the ```Path``` environment variable.
C:\MinGW\msys\1.0\home\<your-user-name>\local\bin
To set up a C project:
$>cps <project name> -f <file name> -e <executable name>
Options:
- -e, --exe-name = Sets the filename of the executable name to be created.
- -f, --filename = Sets the filename of the C source file created inside the
src/
directory.
Note:
- If executable name is omitted, it will use project name as the executable file name.
- If file name is omitted, it will use "main" as the C source file name.
This program uses GNU General Public License Version 2.0.
See COPYING
for more details.