configdir = $(datadir)/aweather/
dist_config_DATA = defaults.ini
-colordir = $(datadir)/aweather/
-dist_color_DATA = colors/
+colordir = $(datadir)/aweather/colors/
+dist_color_DATA = colors/*
if WIN32
noinst_DATA = aweather.ico
aweather_SOURCES += resource.rc
aweather_LDFLAGS = -mwindows
+aweather_CPPFLAGS += -I$(top_srcdir)/lib
+aweather_LDADD += $(top_srcdir)/lib/libgnu.la
bin_PROGRAMS += aweather-dbg
aweather_dbg_SOURCES = $(aweather_SOURCES)
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#define _XOPEN_SOURCE
+#include <sys/time.h>
#include <config.h>
#include <gtk/gtk.h>
#include <gtk/gtkgl.h>
#include <glib/gstdio.h>
-#include <time.h>
#include <grits.h>
../aweather-location.c \
../aweather-location.h
radar_la_CPPFLAGS = \
- -DPKGDATADIR="\"$(dots)$(pkgdatadir)\""
+ -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
+ -I$(top_srcdir)/src -I$(top_srcdir)/lib
radar_la_LIBADD = $(RSL_LIBS) $(GRITS_LIBS) \
$(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS))
endif
+if WIN32
+dots = ..
+endif
+
test:
( cd ../; make test )
fgets(cm->name, sizeof(cm->name), file);
fscanf(file, "%f\n", &cm->scale);
fscanf(file, "%f\n", &cm->shift);
- while (fscanf(file, "%hhd %hhd %hhd %hhd\n",
- &color[0], &color[1], &color[2], &color[3]) == 4)
+ int r, g, b, a;
+ while (fscanf(file, "%d %d %d %d\n", &r, &g, &b, &a) == 4) {
+ color[0] = r;
+ color[1] = g;
+ color[2] = b;
+ color[3] = a;
g_array_append_val(array, color);
+ }
cm->len = (gint )array->len;
cm->data = (void*)array->data;
g_array_free(array, FALSE);