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_git
to 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 file
Will 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 Flags
During compilation you can specify different flags:make
will compile with -Wall -Werror -Wextramake f=n
will compile without falgsmake f=f
will compile with fsanitize and -g3make f=v
will compile with -g3- when used with
make run
It will launch the program inside Valgrind to check for leaks !
- when used with
make f=h
will compile with as much flags as possible !
-
make git MSG="your commit message"
Willgit add
all your modifications
After showing you thegit status
for you to confirm
this command willgit push
all your changes for you ! -
make big n_times=1000
Will launchmake unit_test
n_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 !