Here to help you setup your new C project !
Originally designed for 42 students, it's correction proof !
make init- Will guide you through the initialization
- You will be able to customize a couple of variables
- it will finish with
make init_gitto link this fresh project with your newly created git repo
init.mk- This file will contain all your parameters for this project
- As well as a couple of advanced options
-
make fileWill call both of these rulesmake sources- Generate all the Makefile sources needed to compile what's inside your srcs/ folder
- Will allow compilation relink for whatever is your folder architecture in srcs/
make prototypes- Each function declared inside your srcs/ folder will have her prototype created and added in includes/auto/auto_*.h
-
make run- During development of your project, it will make sure to recompile what's needed before launching your program !
make run ARG="your argument"Allow you set up your first argument if you need it.
-
Compilation FlagsDuring compilation you can specify different flags:makewill compile with -Wall -Werror -Wextramake f=nwill compile without falgsmake f=fwill compile with fsanitize and -g3make f=vwill compile with -g3- when used with
make run
It will launch the program inside Valgrind to check for leaks !
- when used with
make f=hwill compile with as much flags as possible !
-
make git MSG="your commit message"
Willgit addall your modifications
After showing you thegit statusfor you to confirm
this command willgit pushall your changes for you ! -
make big n_times=1000
Will launchmake unit_testn_times
Pretty useful for testing programs which highly relies on inputs like push_swap, lem-in or Corewar -
make update
Will update the Makegenius part of your project
Feel free to open issues or to offer pull request !
I will be glad to make it perfect for you !
Thank you for using my project !