Files
42test/libft/README.md

71 lines
1.4 KiB
Markdown
Raw Normal View History

2021-10-22 10:26:25 +02:00
# libft
## Setup
Create a link to the base of your libft
(the one with libft.a and all ft_ and Makefile files)
```
2021-10-22 10:33:46 +02:00
cd 42test/libft
2021-10-22 10:26:25 +02:00
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
2021-10-22 11:51:27 +00:00
ln -snf ~/42/libft/git libft
ln -snf $HOME/libft libft
2021-10-22 10:26:25 +02:00
```
2021-10-22 11:19:43 +00:00
Only for Linux
```
2021-10-22 21:28:52 +00:00
sudo apt-get install -qq -y make gcc clang valgrind build-essential
2021-10-22 11:19:43 +00:00
```
2021-10-22 11:36:56 +02:00
## Update
```
cd 42test/libft
make update
```
2021-10-22 10:26:25 +02:00
## Usage
```
2021-10-22 10:33:46 +02:00
cd 42test/libft
2021-10-22 16:07:10 +02:00
# Display various options
make help
2021-10-22 16:00:36 +02:00
# Tripouille/libftTester (Very Good)
2021-10-22 10:26:25 +02:00
make b
2021-10-22 16:07:10 +02:00
2021-10-22 16:00:36 +02:00
# jtoty/Libftest (Also Nice)
2021-10-22 10:26:25 +02:00
make c
2021-10-22 11:54:26 +00:00
2021-10-22 16:07:10 +02:00
# nemequ/µnit w/ my own Unit Testing (Alpha software not working well)
2021-10-22 11:54:26 +00:00
make a
# work on MacOS X
2021-10-22 16:00:36 +02:00
# alelievr/libft-unit-test (Not sure that is a good idea to use it)
2021-10-22 10:26:25 +02:00
make d
2021-10-22 11:54:26 +00:00
2021-10-22 16:00:36 +02:00
# launch a b c d (All you can eat)
2021-10-22 11:54:26 +00:00
make test
2021-10-22 10:26:25 +02:00
```
## External Subprojects
2021-10-22 16:00:36 +02:00
- 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)
2021-10-22 10:26:25 +02:00
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
```