-bin_PROGRAMS = aweather wsr88ddec
-aweather_SOURCES = main.c \
- aweather-gui.c aweather-gui.h \
- aweather-location.c aweather-location.h
-aweather_CPPFLAGS = $(AM_CPPFLAGS) -DDATADIR="\"$(datadir)\""
-aweather_LDADD = $(AM_LDADD) gis/libgis.la
+# Library
+BUILT_SOURCES = gis-marshal.c gis-marshal.h
+lib_LTLIBRARIES = libgis.la
+gis_includedir = $(includedir)/gis
+gis_include_HEADERS = \
+ gis.h \
+ gis-viewer.h \
+ gis-prefs.h \
+ gis-opengl.h \
+ gis-plugin.h \
+ gis-util.h \
+ gis-data.h \
+ gis-tile.h \
+ gis-wms.h \
+ gpqueue.h \
+ roam.h
+libgis_la_SOURCES = \
+ gis-viewer.c gis-viewer.h \
+ gis-prefs.c gis-prefs.h \
+ gis-opengl.c gis-opengl.h \
+ gis-plugin.c gis-plugin.h \
+ gis-marshal.c gis-marshal.h \
+ gis-util.c gis-util.h \
+ gis-data.c gis-data.h \
+ gis-tile.c gis-tile.h \
+ gis-wms.c gis-wms.h \
+ gis-object.c gis-object.h \
+ roam.c roam.h \
+ gpqueue.c gpqueue.h
+libgis_la_CPPFLAGS = $(AM_CPPFLAGS) \
+ -DPKGDATADIR="\"$(datadir)/gis\"" -DPLUGINSDIR="\"$(libdir)/gis\""
+libgis_la_LIBADD = $(AM_LDADD)
+libgis_la_LDFLAGS = -no-undefined