loader_aw

Load OBJ/MTL file formats
git clone git://git.meso-star.fr/loader_aw.git
Log | Files | Refs | README | LICENSE

commit 1ff993081e433d70b3e496988c2e6114e88fac38
parent 439650de505f7d97e8ad5762df0429972be25315
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 30 Jun 2023 15:37:24 +0200

Add missing pkg-config flags when compiling tests

The PCFLAGS macro was not used, although it should have been. Therefore,
private dependencies were not properly handled when AW was compiled as a
static library. Until now, this error went unnoticed since AW has no
private dependencies.

Diffstat:
MMakefile | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -118,8 +118,9 @@ TEST_SRC =\ TEST_OBJ = $(TEST_SRC:.c=.o) TEST_DEP = $(TEST_SRC:.c=.d) -AW_CFLAGS = $$(PKG_CONFIG_PATH=./:$${PKG_CONFIG_PATH} $(PKG_CONFIG) --cflags aw-local.pc) -AW_LIBS = $$(PKG_CONFIG_PATH=./:$${PKG_CONFIG_PATH} $(PKG_CONFIG) --libs aw-local.pc) +PKG_CONFIG_LOCAL = PKG_CONFIG_PATH="./:$${PKG_CONFIG_PATH}" $(PKG_CONFIG) +AW_CFLAGS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --cflags aw-local.pc) +AW_LIBS = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs aw-local.pc) build_tests: build_library $(TEST_DEP) .test @$(MAKE) -fMakefile -f.test $$(for i in $(TEST_DEP); do echo -f"$${i}"; done) test_bin