From 18f5959d991dae710978f3e167b982be0a0cf6bd Mon Sep 17 00:00:00 2001 From: milang Date: Wed, 28 Aug 2019 16:10:33 +0200 Subject: [PATCH] add makefile modif in readme --- README.md | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 12651bf..222b6a7 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,20 @@ FxEngine is an librairie overlay based on gint designed to provide more game-oriented commands, such as a 3D engine, which is actually in developement. That library is made for fx9860G calculators. -This project started after the [1v13d](/Milang/1v13d) project. +This project is linked the [1v13d](/Milang/1v13d) project. ## Installation ### Dependencies -A GNU/Linux distibution. - -The [gint kernel](/Lephenixnoir/gint), made by lephenixnoir. -The [fxSDK](/Lephenixnoir/fxsdk), designed for gint usage. - -The GCC toolchain for sh3eb-elf architecture. +>>> A GNU/Linux distibution. +>>> The [gint kernel](/Lephenixnoir/gint), made by lephenixnoir. +>>> The [fxSDK](/Lephenixnoir/fxsdk), designed for gint usage. +>>> The GCC toolchain for sh3eb-elf architecture. (with binutils of course) ### Install the fxengine lib In a terminal, type the following commands : - ```sh make @@ -30,7 +27,6 @@ make install # you may use sudo if the compiler's folder has restricted rights ### Remove lib Just type this : - ```sh make clear # you may use sudo if the compiler's folder has restricted rights ``` @@ -42,6 +38,16 @@ I recommend to remove and reinstall, but reinstall may work too. ## Use All the headers are in the folder +When you create a new project with the fxsdk, you have to change a line in the Makefile : +Just replace +```sh +lf-fx := $(LDFLAGS) -Tfx9860g.ld -lgint-fx -lgcc -Wl,-Map=build-fx/map +``` +by +```sh +lf-fx := $(LDFLAGS) -Tfx9860g.ld -lfxengine -lgint-fx -lgcc -Wl,-Map=build-fx/map +``` +It simply adds to linker flags the fxengine lib. ### Example : @@ -49,8 +55,6 @@ If you want to use keyboard event gestion, just do ```c #include - -make - -make install # you may use sudo if the compiler's folder has restricted rights -``` \ No newline at end of file +``` +For questions, you can look at the headers, which can be found as well in in the git folder. +I am wrinting some documentation, and you can ask some questions on planet-casio.com/Fr/ \ No newline at end of file