]> Pileus Git - aweather/blob - src/plugins/Makefile.am
Fix linker flags
[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 =
9
10 if HAVE_RSL
11 plugins_LTLIBRARIES += radar.la
12 radar_la_SOURCES = \
13         radar.c      radar.h \
14         level2.c     level2.h \
15         radar-info.c radar-info.h \
16         ../aweather-location.c \
17         ../aweather-location.h
18 radar_la_CPPFLAGS = \
19         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
20         -I$(top_srcdir)/src -I$(top_srcdir)/lib
21 radar_la_LIBADD  = $(RSL_LIBS) $(GRITS_LIBS) \
22                    $(addprefix $(top_srcdir)/lib/,$(gl_LTLIBOBJS))
23 endif
24
25 if WIN32
26 dots = ..
27 endif
28
29 test:
30         ( cd ../; make test )
31
32 MAINTAINERCLEANFILES = Makefile.in