Changed source to build with external SWE-GLib

This commit is contained in:
2013-09-06 11:34:24 +02:00
parent ec9ad449b7
commit 8b661ed04d
5 changed files with 7 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
bin_PROGRAMS = astrognome
astrognome_SOURCES = astrognome.c
astrognome_LDADD = $(LIBSWE_GLIB_LIBS) $(GTK_LIBS)
astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS)
astrognome_LDFLAGS = -rdynamic
astrognome_CFLAGS = $(CFLAGS) $(GTK_CFLAGS) -Wall
astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) -Wall

View File

@@ -1,9 +1,8 @@
#include <glib.h>
#include <gtk/gtk.h>
#include "../swe-glib/src/swe-glib.h"
#include <swe-glib.h>
#define EPHEDIR "/home/polesz/Projektek/c/astrognome/swe/data"
#define UI_FILE "/home/polesz/Projektek/c/astrognome/src/astrognome.ui"
GtkBuilder *builder;
@@ -487,7 +486,7 @@ main(int argc, char *argv[])
GError *err = NULL;
GtkWidget *window_main;
gswe_init(EPHEDIR);
gswe_init();
gtk_init(&argc, &argv);
builder = gtk_builder_new();