Fix the use of $(CFLAGS) and $(LDFLAGS) in makefiles.
- When using
-c
,$(CFLAGS)
should be used, not$(LDFLAGS)
. - When
$(LDFLAGS)
is used,$(CFLAGS)
should normally be used too, because some C compiler flags may be needed for linking too. Note that this is the convention chosen by GNU Automake.
Note: flags related to OpenMP are not modified by these changes, but their use in the various makefiles is not consistent.