Fast and efficient drawing static library.
Go to file
Thomas Touhey d1d121ce58 Added a link to the wiki in README 2016-04-26 12:32:50 +02:00
include Renamed project in headers 2016-04-22 07:06:40 +02:00
src Adapted syscall to SH4 2016-04-25 15:08:15 +02:00
.draft.gitlab-ci.yml Disabled tests while runner isn't configured 2016-04-22 22:20:59 +02:00
.gitignore Initial commit 2016-04-21 22:27:29 +02:00
CHANGELOG.md Added changelog and contributing guide 2016-04-26 12:31:45 +02:00
CONTRIBUTING.md Added changelog and contributing guide 2016-04-26 12:31:45 +02:00
LICENSE.md Added license and slightly modified README 2016-04-22 22:19:32 +02:00
Makefile Corrected thanks to #1 2016-04-26 12:05:45 +02:00
Makefile.cfg Renamed project in headers 2016-04-22 07:06:40 +02:00
README.md Added a link to the wiki in README 2016-04-26 12:32:50 +02:00

README.md

libmonochrome - The MonochromeLib static 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.

The original docs have been converted to markdown and are available in the libmonochrome wiki.

Building

Building the library is achieved by the Makefile :

  • make: make the library ;
  • make clean: clean the object files ;
  • make fclean: clean the object files and the final library ;
  • make re: cleans the object files and the final library, then makes the project.

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