Files
42test/libft/README.md
2021-10-22 21:28:52 +00:00

71 lines
1.4 KiB
Markdown

# libft
## Setup
Create a link to the base of your libft
(the one with libft.a and all ft_ and Makefile files)
```
cd 42test/libft
ln -snf $(find ~ -mindepth 2 -maxdepth 4 -name libft.h -exec dirname "{}" \; 2>/dev/null | head -n1) libft
# You can also specify the path to your libft
ln -snf ~/Projects/libft/git libft
ln -snf ~/42/libft/git libft
ln -snf $HOME/libft libft
```
Only for Linux
```
sudo apt-get install -qq -y make gcc clang valgrind build-essential
```
## Update
```
cd 42test/libft
make update
```
## Usage
```
cd 42test/libft
# Display various options
make help
# Tripouille/libftTester (Very Good)
make b
# jtoty/Libftest (Also Nice)
make c
# nemequ/µnit w/ my own Unit Testing (Alpha software not working well)
make a
# work on MacOS X
# alelievr/libft-unit-test (Not sure that is a good idea to use it)
make d
# launch a b c d (All you can eat)
make test
```
## External Subprojects
- a: [nemequ/µnit](https://nemequ.github.io/munit/)
- b: [Tripouille/libftTester](https://github.com/Tripouille/libftTester)
- c: [jtoty/Libftest](https://github.com/jtoty/Libftest)
- d: [alelievr/libft-unit-test](https://github.com/alelievr/libft-unit-test)
Create subprojects
```
git submodule add https://github.com/jtoty/Libftest.git
git submodule add https://github.com/alelievr/libft-unit-test.git
git submodule add https://github.com/Tripouille/libftTester.git
git submodule add https://github.com/nemequ/munit.git
```