Fast and efficient drawing static library.
Go to file
Thomas Touhey 38002d66cb Tried adding a Gitlab CI script 2016-04-22 00:09:52 +02:00
doc Initial commit 2016-04-21 22:27:29 +02:00
include Decomposed main.c, improved header organization 2016-04-21 23:31:00 +02:00
src Decomposed main.c, improved header organization 2016-04-21 23:31:00 +02:00
.gitignore Initial commit 2016-04-21 22:27:29 +02:00
.gitlab-ci.yml Tried adding a Gitlab CI script 2016-04-22 00:09:52 +02:00
Makefile Initial commit 2016-04-21 22:27:29 +02:00
Makefile.cfg Decomposed main.c, improved header organization 2016-04-21 23:31:00 +02:00
README.md Corrected the README for the last time 2016-04-22 00:02:23 +02:00

README.md

MonochromeLib - Static Library Implementation

The monochrome library was made by PierrotLL. This project is only a reorganization of the files to make a static library, instead of having to include the source files in the projects each time.


Using

To compile with the library, either :

  • add the monochrome.h file to one of your include directories ;
  • add the monochrome.h file with your sources and include it with the '#include "monochrome.h"' preprocessor directive ;
  • add the include dir to your include path by adding '-I "path/to/dir/include"' to your compiler's flags.

To link with your project, either :

  • add the libmonochrome.a to one of your static libraries directories ;
  • add this library to your static libraries path by adding '-L "path/to/dir"' to your linker's flags.

In either way, you will have to add '-lmonochrome' to your linker's flags.

An example of using this library will then be :

sh3eb-elf-gcc -c -o obj/main.o src/main.c -I lib/monochrome/include
sh3eb-elf-ld -o myaddin obj/main.o -T addin.ld -L lib/monochrome -lmonochrome