Initial Commit
This commit is contained in:
45
libft/README.md
Normal file
45
libft/README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# libft
|
||||
|
||||
## Setup
|
||||
|
||||
Create a link to the base of your libft
|
||||
(the one with libft.a and all ft_ and Makefile files)
|
||||
|
||||
```
|
||||
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 ../libft libft
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
make test
|
||||
|
||||
# or
|
||||
make a
|
||||
make b
|
||||
make c
|
||||
make d
|
||||
```
|
||||
|
||||
## External Subprojects
|
||||
|
||||
- [jtoty/Libftest](https://github.com/jtoty/Libftest)
|
||||
- [alelievr/libft-unit-test](https://github.com/alelievr/libft-unit-test)
|
||||
- [Tripouille/libftTester](https://github.com/Tripouille/libftTester)
|
||||
- [nemequ/µnit](https://nemequ.github.io/munit/)
|
||||
|
||||
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
|
||||
|
||||
grep -q '/libft$' libftTester/Makefile || sed -i '' -r 's/^(PARENT_DIR.*)/\1\/libft/' libftTester/Makefile
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user