]> Pileus Git - aweather/blobdiff - src/plugins/Makefile.am
Center level2 objects via GritsObject instead of manually
[aweather] / src / plugins / Makefile.am
index 5dca79d9fe3b5e14a67be7ad3e4794f6353bb012..83a4e8257e11ba3541db923d1ea6c37697e1b60b 100644 (file)
@@ -1,7 +1,6 @@
-AM_CFLAGS   = -Wall --std=gnu99  -I../
-AM_CPPFLAGS = $(GIS_CFLAGS)
+AM_CFLAGS   = -Wall --std=gnu99 $(GRITS_CFLAGS)
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
 AM_LDFLAGS  = -module -avoid-version -no-undefined
-LIBS        = $(GIS_LIBS)
 
 pluginsdir  = $(pkglibdir)
 
@@ -13,8 +12,11 @@ radar_la_SOURCES = \
        radar.c  radar.h \
        level2.c level2.h \
        ../aweather-colormap.c \
-       ../aweather-location.c
-radar_la_LDFLAGS = $(AM_LDFLAGS) $(RSL_LIBS)
+       ../aweather-colormap.h \
+       ../aweather-location.c \
+       ../aweather-location.h
+radar_la_LIBADD  = $(RSL_LIBS) $(GRITS_LIBS) \
+                  $(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS))
 endif
 
 test: