]> Pileus Git - aweather/blob - src/plugins/Makefile.am
docs: fix a few typos
[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_GPSD
25 plugins_LTLIBRARIES += gps.la
26 gps_la_SOURCES = \
27         gps-plugin.c      gps-plugin.h
28 gps_la_CPPFLAGS = \
29         -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" \
30         -I$(top_srcdir)/src
31 gps_la_LIBADD  = $(GPSD_LIBS) $(GRITS_LIBS)
32 endif
33
34 if HAVE_RSL
35 plugins_LTLIBRARIES += radar.la
36 radar_la_SOURCES = \
37         radar.c      radar.h \
38         level2.c     level2.h \
39         radar-info.c radar-info.h \
40         ../aweather-location.c \
41         ../aweather-location.h
42 radar_la_CPPFLAGS = \
43         -DPKGDATADIR="\"$(DOTS)$(pkgdatadir)\"" \
44         -I$(top_srcdir)/src
45 radar_la_LIBADD  = $(RSL_LIBS) $(GRITS_LIBS)
46 endif
47
48 test:
49         ( cd ../; make test )
50
51 MAINTAINERCLEANFILES = Makefile.in