htmie

Optical properties of water droplets
git clone git://git.meso-star.fr/htmie.git
Log | Files | Refs | README | LICENSE

commit 22995410ff96dd4ab5af134cd13f8c5671e8a743
parent 52db5f02da9d49f3845710d9b608697870cc380b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 30 Oct 2023 15:54:19 +0100

Update test compilation and link edition

Make sure that the pkg-config directive for the local library appears as
the first compiler flag to be used and the first library to be linked,
to ensure that headers and libraries are searched for first in the local
path. This is because the compiler and linker look for directories in
the left-to-right order in which the -I and -L options appear.  So, to
force inclusion of local headers and link editing with the local version
of the library, the -I./src and -L./ directives must appear first when
compiling and linking.

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

diff --git a/Makefile b/Makefile @@ -172,11 +172,11 @@ clean_test: rm -rf $(TEST_DUMMY_VARS) $(TEST_DUMMY_NETCDF) $(TEST_DEP): config.mk htmie-local.pc - @$(CC) $(CFLAGS_EXE) $(RSYS_CFLAGS) $(HTMIE_CFLAGS) \ + @$(CC) $(CFLAGS_EXE) $(HTMIE_CFLAGS) $(RSYS_CFLAGS) \ -MM -MT "$(@:.d=.o) $@" $(@:.d=.c) -MF $@ $(TEST_OBJ): config.mk htmie-local.pc - $(CC) $(CFLAGS_EXE) $(RSYS_CFLAGS) $(HTMIE_CFLAGS) -c $(@:.o=.c) -o $@ + $(CC) $(CFLAGS_EXE) $(HTMIE_CFLAGS) $(RSYS_CFLAGS) -c $(@:.o=.c) -o $@ test_htmie test_htmie_load: config.mk htmie-local.pc $(LIBNAME) - $(CC) $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(RSYS_LIBS) $(HTMIE_LIBS) -lm + $(CC) $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(HTMIE_LIBS) $(RSYS_LIBS) -lm