From eb6a98a9b3924ab9f93e232fb4e0de0690917f5c Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Wed, 2 Oct 2024 09:15:32 +0200 Subject: [PATCH] Slight Makefile tweaks, README edits and site update --- CHANGELOG.md | 17 +++++++++-------- build.mk | 8 ++++---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8613048..01c01616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,14 +21,14 @@ Changes expected for the next bug-fix release, expected around 1 November 2024. - #64: `NOVAS_TAI_TO_TT` definition had wrong decimal in last place, thus was 3 ms off from what it should have been. (thanks to kiranshila) - - #68: `readeph_dummy()` dummy implenetation in `readeph0.c` called non existing error handler function. + - #68: `readeph_dummy()` dummy implementation in `readeph0.c` called non existing error handler function. ### Changed - - #59: For major planets (and Sun and Moon) `rad_vel()`, `rad_vel2()`, `place()`, and `novas_sky_pos()` will include - gravitational corrections to radial velocity for light originating at the surface, and observed near Earth or else - at a large distance away. The corrections can be skipped for `rad_vel()` / `rad_vel2()` by setting `d_src_sun` - negative. + - #59: For observing major planets (and Sun and Moon) `rad_vel()`, `rad_vel2()`, `place()`, and `novas_sky_pos()` + will include gravitational corrections to radial velocity for light originating at the surface, and observed near + Earth or else at a large distance away. These corrections, along with those for the Solar potential at the source, + may be skipped for `rad_vel()` / `rad_vel2()` by setting `d_src_sun` negative. - #55: Use relativistic formulae to add/difference velocities (i.e. change velocity reference frame). @@ -36,7 +36,7 @@ Changes expected for the next bug-fix release, expected around 1 November 2024. can still be used as a self-contained, standalone, NOVAS C replacement for legacy applications if need be. - #62: Improve debug mode error tracing when NAN values are returned, so the trace indicates NAN rather than a bogus - integer before. + integer return value before. - #66: Various tweaks for C/C++ best practices (by kiranshila) @@ -262,7 +262,8 @@ Bug fix release with minor changes. ### Fixed - `cirs_to_itrs()`, `itrs_to_cirs()`, `tod_to_itrs()`, and `itrs_to_tod()` all had a unit conversion bug in using the - `ut1_to_tt` argument [s] when converting TT-based Julian date to UT1-based JD [day] internally. + `ut1_to_tt` argument [s] when converting TT-based Julian date to UT1-based JD [day] internally. + (thanks to hannorein) - Fixed errors in `example.c` [by hannorein]. @@ -274,7 +275,7 @@ Bug fix release with minor changes. ### Changed - Changed definition of `NOVAS_AU` to the IAU definition of exactly 1.495978707e+11 m. The old definition is also - available as `DE405_AU`. + available as `DE405_AU`. (thanks to hannorein) - Various corrections and changes to documentation. diff --git a/build.mk b/build.mk index fabef555..24988d25 100644 --- a/build.mk +++ b/build.mk @@ -7,7 +7,7 @@ # Regular object files -$(OBJ)/%.o: %.c dep/%.d $(OBJ) Makefile +$(OBJ)/%.o: $(SRC)/%.c dep/%.d $(OBJ) Makefile $(CC) -o $@ -c $(CPPFLAGS) $(CFLAGS) $< # Share library recipe @@ -15,12 +15,12 @@ $(LIB)/%.so.$(SO_VERSION) : | $(LIB) Makefile $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $^ -shared -fPIC -Wl,-soname,$(subst $(LIB)/,,$@) $(LDFLAGS) # Unversioned shared libs (for linking against) -$(LIB)/lib%.so: +$(LIB)/lib%.so: | $(LIB) @rm -f $@ ln -sr $< $@ # Static library recipe -$(LIB)/%.a: +$(LIB)/%.a: | $(LIB) Makefile ar -rc $@ $^ ranlib $@ @@ -61,7 +61,7 @@ dox: README.md Doxyfile | apidoc $(SRC) $(INC) # Automatic dependence on included header files. .PRECIOUS: dep/%.d -dep/%.d: %.c dep +dep/%.d: $(SRC)/%.c dep @echo " > $@" \ && $(CC) $(CPPFLAGS) -MM -MG $< > $@.$$$$ \ && sed 's|\w*\.o[ :]*| $(OBJ)/&|g' < $@.$$$$ > $@; \