https://github.com/kuripa/libft
42 school first project: Your very first own library.
https://github.com/kuripa/libft
42school c libft makefile
Last synced: 11 months ago
JSON representation
42 school first project: Your very first own library.
- Host: GitHub
- URL: https://github.com/kuripa/libft
- Owner: kuripa
- Created: 2024-11-11T18:34:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-08T11:01:57.000Z (about 1 year ago)
- Last Synced: 2025-04-01T15:03:28.140Z (11 months ago)
- Topics: 42school, c, libft, makefile
- Language: C++
- Homepage:
- Size: 1.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Libft


Libft is a comprehensive set of C utility functions. It is designed to provide enhanced functionality and common utility methods for C language programming. The library encompasses various functions to facilitate efficient, concise, and accessible programming.
## Prerequisites
Ensure you have the following tools installed:
1. **GCC**: GNU Compiler Collection.
2. **CMake**: Cross-platform make system tool.
3. **GoogleTest**: Testing framework for C++ (handed via CMake).
## Installation
Clone the repository:
```sh
git clone https://github.com/your-username/libft.git
cd libft
```
## Usage
The `Makefile` provides various commands to manage the build process:
- **Make all**: Build the library `libft.a`.
```sh
make
```
- **Make clean**: Remove object files.
```sh
make clean
```
- **Make fclean**: Remove object files and the library `libft.a`.
```sh
make fclean
```
- **Make re**: Clean, then rebuild the library.
```sh
make re
```
## Running Tests
Automated tests are facilitated through GoogleTest:
1. **Build the library and set up tests:**
```sh
make test
```
2. **Run the tests:**
```sh
make test
```