diff options
author | Mattias Andrée <maandree@kth.se> | 2019-10-10 16:56:51 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-10-10 16:56:51 +0200 |
commit | cc2c47bc3b31d8ef989014345b960a3d2659e2a9 (patch) | |
tree | befa0ace01fd63ce785e56f70193fb0e0aa3a63f | |
parent | Add install and uninstall to makefile (diff) | |
download | radharc-cc2c47bc3b31d8ef989014345b960a3d2659e2a9.tar.gz radharc-cc2c47bc3b31d8ef989014345b960a3d2659e2a9.tar.bz2 radharc-cc2c47bc3b31d8ef989014345b960a3d2659e2a9.tar.xz |
Update config.mk
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | config.mk | 4 | ||||
-rw-r--r-- | radharc.c | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -2,5 +2,5 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -CFLAGS = -std=c99 -Wall -g -LDFLAGS = -lcoopgamma -lred -lm +CFLAGS = -std=c99 -Wall -O2 +LDFLAGS = -lcoopgamma -lred -lm -s @@ -304,14 +304,12 @@ get_temperature(double *tp) if (choosen_temperature < 0) { if (libred_solar_elevation(latitude, longitude, tp)) return -1; - printf("elevation: %g\n", *tp); if (*tp < low_elev) *tp = low_elev; if (*tp > high_elev) *tp = high_elev; *tp = (*tp - low_elev) / (high_elev - low_elev); *tp = low_temp + *tp * (high_temp - low_temp); - printf("temperature: %g\n", *tp); } else { *tp = choosen_temperature; } |