star-aerosol

Describe the radiative properties of aerosols
git clone git://git.meso-star.fr/star-aerosol.git
Log | Files | Refs | README | LICENSE

commit 034df73eb4a283de4af0730bc3c91dacf2cd9b60
parent 7a06de86a55a523fbe9d770364491793b99bf181
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 30 Oct 2023 11:38:45 +0100

Updated test compilation

Make sure that the pkg-config directive for the local library appears as
the first compiler flag to be used to ensure that headers are searched
for first in the local path. This is because the compiler look for
directories in the left-to-right order in which the -I option appear.
So, to force inclusion of local headers the -I./src directive must
appear first when compiling.

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

diff --git a/Makefile b/Makefile @@ -136,11 +136,11 @@ clean_test: $(SHELL) make.sh clean_test $(TEST_SRC) $(TEST_DEP): config.mk sars-local.pc - @$(CC) $(CFLAGS_EXE) $(RSYS_CFLAGS) $(SARS_CFLAGS) \ + @$(CC) $(CFLAGS_EXE) $(SARS_CFLAGS) $(RSYS_CFLAGS) \ -MM -MT "$(@:.d=.o) $@" $(@:.d=.c) -MF $@ $(TEST_OBJ): config.mk sars-local.pc - $(CC) $(CFLAGS_EXE) $(RSYS_CFLAGS) $(SARS_CFLAGS) -c $(@:.o=.c) -o $@ + $(CC) $(CFLAGS_EXE) $(SARS_CFLAGS) $(RSYS_CFLAGS) -c $(@:.o=.c) -o $@ test_sars: config.mk sars-local.pc $(LIBNAME) $(CC) $(CFLAGS_EXE) -o $@ src/$@.o $(LDFLAGS_EXE) $(SARS_LIBS) $(RSYS_LIBS)