This is the template i used whenever a C project started at my school (EPITECH).
You can find :
- A clear and conscise base of a C project.
- My entire library of C functions that are forbidden or inexistant (they carried me so much during my first year).
- Explanations of every library functions in
INCLUDE/my.h
file.
I created a customized Makefile with simple + extra rules :
all
-----> compile project.
_________ .__.__ __ .__ ________
\_ ___ \ ____ _____ ______ |__| | _____ _/ |_|__| ____ ____ \_____ \ ____ ____ ____
/ \ \/ / _ \ / \\____ \| | | \__ \\ __\ |/ _ \ / \ | \ \ / _ \ / \_/ __ \
\ \___| <_> | Y Y \ |_> > | |__/ __ \| | | | <_> | | \ | ` | <_> | | \ ___/
\______ /\____/|__|_| / __/|__|____|____ /__| |__|\____/|___| / /_______ /\____/|___| /\___ >
\/ \/|__| \/ \/ \/ \/ \/
clean
---> removal of OBJ(ect) files.
__________ __ __ _________ .__ .___
\______ \_______ ____ |__| ____ _____/ |_ \_ ___ \| | ____ _____ ____ ____ __| _/
| ___/\_ __ \/ _ \ | |/ __ \_/ ___\ __\ / \ \/| | _/ __ \\__ \ / \_/ __ \ / __ |
| | | | \| <_> | | \ ___/\ \___| | \ \___| |_\ ___/ / __ \| | \ ___// /_/ |
|____| |__| \____/\__| |\___ >\___ >__| \______ /____/\___ >____ /___| /\___ >____ |
\______| \/ \/ \/ \/ \/ \/ \/ \/
fclean
--> clean project from any unwanted files.
__________ .__.__ .___ ___________ .___
\______ \__ __|__| | __| _/ \_ _____/___________ ______ ____ __| _/
| __ _/ | \ | | / __ | | __|_\_ __ \__ \ / ___// __ \ / __ |
| |__\ \ | / | |__/ /_/ | | \| | \// __ \_\___ \\ ___// /_/ |
|______ /____/|__|____/\____ | /_______ /|__| |____ /____ >\___ >____ |
\/ \/ \/ \/ \/ \/ \/
re
------> cleaning project to recompile.
__________ .__.__ .___ __________ __ .___
\______ \__ __|__| | __| _/ \______ \ ____ ____ ____ ____ ____ ____ _____/ |_ ____ __| _/
| __ _/ | \ | | / __ | | _// __ \_/ ___\/ _ \ / \ / \_/ __ \_/ ___\ __\/ __ \ / __ |
| |__\ \ | / | |__/ /_/ | | | \ ___/\ \__| <_> | | \ | \ ___/\ \___| | \ ___// /_/ |
|______ /____/|__|____/\____ | |____|_ /\___ >\___ >____/|___| /___| /\___ >\___ >__| \___ >____ |
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
cs
------> fclean trigger into EPITECH coding style checker.
_________ .___.__ _________ __ .__
\_ ___ \ ____ __| _/|__| ____ ____ / _____// |_ ___.__.| | ____
/ \ \/ / _ \ / __ | | |/ \ / ___\ ______ \_____ \\ __< | || | _/ __ \
\ \___( <_> ) /_/ | | | | \/ /_/ > /_____/ / \| | \___ || |_\ ___/
\______ /\____/\____ | |__|___| /\___ / /_______ /|__| / ____||____/\___ >
\/ \/ \//_____/ \/ \/ \/
commit
--> push changed files with writtable message.
_________ .__ _________ .__ __ .___
\_ ___ \| |__ _____ ____ ____ ____ ______ \_ ___ \ ____ _____ _____ |__|/ |_ ____ __| _/
/ \ \/| | \\__ \ / \ / ___\_/ __ \ / ___/ / \ \/ / _ \ / \ / \| \ __\/ __ \ / __ |
\ \___| Y \/ __ \| | \/ /_/ > ___/ \___ \ \ \___| <_> | Y Y \ Y Y \ || | \ ___// /_/ |
\______ /___| |____ /___| /\___ / \___ >____ > \______ /\____/|__|_| /__|_| /__||__| \___ >____ |
\/ \/ \/ \//_____/ \/ \/ \/ \/ \/ \/ \/
.PHONY
--> functional test of every Makefile rules (exceptcs
andcommit
rules).