]> Pileus Git - aweather/blob - src/plugins/Makefile.am
55166a05e72d011c627a2d4eec59f7ac4f7a4721
[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         -I$(top_srcdir)/lib
16 alert_la_LIBADD  = $(GRITS_LIBS) \
17                    $(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS))
18
19 if HAVE_RSL
20 plugins_LTLIBRARIES += radar.la
21 radar_la_SOURCES = \
22         radar.c      radar.h \
23         level2.c     level2.h \
24         radar-info.c radar-info.h \
25         ../aweather-location.c \
26         ../aweather-location.h
27 radar_la_CPPFLAGS = \
28         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
29         -I$(top_srcdir)/src -I$(top_srcdir)/lib
30 radar_la_LIBADD  = $(RSL_LIBS) $(GRITS_LIBS) \
31                    $(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS))
32 endif
33
34 if WIN32
35 AM_LDFLAGS += -no-undefined
36 dots = ..
37 endif
38
39 test:
40         ( cd ../; make test )
41
42 MAINTAINERCLEANFILES = Makefile.in