ft_nm is a re-implementation of nm, GNU utility for listing ELF-file symbol tables.
It behaves almost exactly like a regular nm, with support for:
-h,-V,-a,-g,-u,-r,-pflags- reading ELF object and executable files
For more information refer to man 1 nm.
This project is made for 42 advanced core curriculum and follows general guidelines for C/C++ projects.
Project is completely dependent only on:
- C Standard Library.
- libft - 42network's C standard library.
For compilation there's GNU Makefile providing following rules:
make all- standard rule for performing all the compilation stepsmake re- rule for re-compiling whole project (including dependencies)make clean- rule for removing all the compilation artifactsmake fclean- ruke for removing all the compilation results (artifacts + binaries)
To compile the project you can simply type:
$ make all
GNU Makefile provides a simple testing rule: make test.
It's role is to test our ft_nm output with standard nm output. If output matches one-to-one then everything works fine.
If output doesn't match then probably this project isn't implemented correctly and requires solid re-evaluation.
You can test the project against the ft_nm binary itself by simply typing:
$ make test
You can also test the project against any other binary on the system by typing:
$ make test TEST_FILES={ file(s) }
To test the project against certain options type:
$ make test TEST_FLAGS={ flag(s) }
Lastly, you can freely mix those options together:
$ make test TEST_FLAGS={ flag(s) } TEST_FILES={ file(s) }
This project is licenced under the GNU LESSER GENERAL PUBLIC LICENCE.