]> Pileus Git - aweather/blob - src/plugins/Makefile.am
Remove gnulib, it's a huge pain
[aweather] / src / plugins / Makefile.am
1 AM_CFLAGS   = -Wall --std=gnu99 $(GRITS_CFLAGS)
2 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/lib
3 AM_LDFLAGS  = -shared -module -avoid-version -Wl,--as-needed
4 LIBS        = $(GRITS_LIBS)
5
6 pluginsdir  = $(pkglibdir)
7
8 plugins_LTLIBRARIES = alert.la
9
10 alert_la_SOURCES = \
11         alert.c      alert.h \
12         alert-info.c alert-info.h
13 alert_la_CPPFLAGS = \
14         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\""
15 alert_la_LIBADD  = $(GRITS_LIBS)
16
17 if HAVE_RSL
18 plugins_LTLIBRARIES += radar.la
19 radar_la_SOURCES = \
20         radar.c      radar.h \
21         level2.c     level2.h \
22         radar-info.c radar-info.h \
23         ../aweather-location.c \
24         ../aweather-location.h
25 radar_la_CPPFLAGS = \
26         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
27         -I$(top_srcdir)/src
28 radar_la_LIBADD  = $(RSL_LIBS) $(GRITS_LIBS)
29 endif
30
31 if WIN32
32 AM_LDFLAGS += -no-undefined
33 dots = ..
34 endif
35
36 test:
37         ( cd ../; make test )
38
39 MAINTAINERCLEANFILES = Makefile.in