]> Pileus Git - aweather/blob - src/plugins/Makefile.am
7cc1b810611d7d3a8bfe8053fcb10679c94eb8e6
[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
4 LIBS        = $(GRITS_LIBS)
5
6 if SYS_WIN
7 AM_LDFLAGS += -no-undefined
8 endif
9 if !SYS_MAC
10 AM_LDFLAGS += -Wl,--as-needed
11 endif
12
13 pluginsdir  = $(pkglibdir)
14
15 plugins_LTLIBRARIES = alert.la
16
17 alert_la_SOURCES = \
18         alert.c      alert.h \
19         alert-info.c alert-info.h
20 alert_la_CPPFLAGS = \
21         -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\""
22 alert_la_LIBADD  = $(GRITS_LIBS)
23
24 if HAVE_RSL
25 plugins_LTLIBRARIES += radar.la
26 radar_la_SOURCES = \
27         radar.c      radar.h \
28         level2.c     level2.h \
29         radar-info.c radar-info.h \
30         ../aweather-location.c \
31         ../aweather-location.h
32 radar_la_CPPFLAGS = \
33         -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" \
34         -I$(top_srcdir)/src
35 radar_la_LIBADD  = $(RSL_LIBS) $(GRITS_LIBS)
36 endif
37
38 test:
39         ( cd ../; make test )
40
41 MAINTAINERCLEANFILES = Makefile.in