Change Makefile from ttf examples

This commit is contained in:
Crayon2000 2024-02-07 19:42:17 -05:00
parent f754f25c97
commit 187b8fbbae
3 changed files with 5 additions and 7 deletions

View file

@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
## [Unreleased][]
- Fixed compatibility issues with devkitPPC release 39.
- Fixed linking problem in examples with FreeType 2.13.2.
- Fixed linking problem in examples with FreeType 2.13.2 (pkgrel 1 and 2).
- Added `GRRLIB_LoadTTFFromFile()` to load a TTF from a file.
- Added `GRRLIB_Ellipse()` to draw an ellipse.
- Changed `GRRLIB_PrintfTTF()` and `GRRLIB_PrintfTTFW()` so they use the alpha channel from the `color` parameter.

View file

@ -34,9 +34,8 @@ LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
# any extra libraries we wish to link with the project
# the order can-be/is critical
#---------------------------------------------------------------------------------
LIBS := -lgrrlib
LIBS += `freetype-config --libs`
LIBS += -lpngu -lpng -ljpeg -lz -lfat
LIBS := -lgrrlib -lpngu
LIBS += `$(PREFIX)pkg-config freetype2 libpng libjpeg --libs` -lfat
#LIBS += -lmodplay -laesnd
LIBS += -logc -lm

View file

@ -34,9 +34,8 @@ LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
# any extra libraries we wish to link with the project
# the order can-be/is critical
#---------------------------------------------------------------------------------
LIBS := -lgrrlib
LIBS += `freetype-config --libs`
LIBS += -lpngu -lpng -ljpeg -lz -lfat
LIBS := -lgrrlib -lpngu
LIBS += `$(PREFIX)pkg-config freetype2 libpng libjpeg --libs` -lfat
LIBS += -lwiiuse
#LIBS += -lmodplay -laesnd
LIBS += -lbte -logc -lm