Skip to content

A commandline utility to create a simple C programming project setup.

License

Notifications You must be signed in to change notification settings

Radoq10288/C-Project-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Project Setup (cps)



License: GPL v2

About

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


Requirement

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.

How to build and install

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



How to use

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.


License

This program uses GNU General Public License Version 2.0.
See COPYING for more details.


About

A commandline utility to create a simple C programming project setup.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published