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