Files
42test/libft/README.md

77 lines
1.5 KiB
Markdown
Raw Normal View History

2021-10-22 10:26:25 +02:00
# libft
## Setup
2021-10-24 00:48:53 +02:00
Clone [42test](https://vogsphere.baco.net/baco/42test)
2021-10-22 10:26:25 +02:00
Create a link to the base of your libft
(the one with libft.a and all ft_ and Makefile files)
2021-10-24 00:48:53 +02:00
2021-10-22 10:26:25 +02:00
```
2021-10-23 10:37:02 +02:00
cd libft
2021-10-22 10:33:46 +02:00
2021-10-23 10:37:02 +02:00
make setup
2021-10-22 10:26:25 +02:00
2021-10-23 10:37:02 +02:00
# You can also specify the path to your libft manually
ln -snvf $HOME/libft libft
2021-10-22 10:26:25 +02:00
```
2021-10-22 11:19:43 +00:00
Only for Linux
```
2021-10-23 10:37:02 +02:00
sudo apt-get install -qq -y make gcc clang valgrind libbsd-dev libncurses-dev build-essential
2021-10-22 11:19:43 +00:00
```
2021-10-22 11:36:56 +02:00
## Update
```
2021-10-23 10:37:02 +02:00
cd libft
2021-10-22 11:36:56 +02:00
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-23 22:29:53 +02:00
# Tripouille/libftTester (straight to the point)
2021-10-22 10:26:25 +02:00
make b
2021-10-22 16:07:10 +02:00
2021-10-23 22:29:53 +02:00
# jtoty/Libftest (cool layout)
2021-10-22 10:26:25 +02:00
make c
2021-10-22 11:54:26 +00:00
2021-10-23 22:29:53 +02:00
# nemequ/µnit w/ my own Unit Testing (beta software not complete)
2021-10-22 11:54:26 +00:00
make a
2021-10-23 22:29:53 +02:00
# works on MacOS X (and Linux if libbsd-dev installed and so: in libft/Makefile)
# alelievr/libft-unit-test (mind the protect == NULL)
2021-10-22 10:26:25 +02:00
make d
2021-10-22 11:54:26 +00:00
2021-10-24 17:43:39 +02:00
# test bonuses
make bonus
2021-10-23 22:29:53 +02:00
# launch a b c d e (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)
2021-10-23 22:29:53 +02:00
- d: [alelievr/libft-unit-test (tests)](https://github.com/alelievr/libft-unit-test)
- e: [alelievr/libft-unit-test (bench)](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
```