]> Pileus Git - aweather/blob - src/Makefile.am
Fix default browser
[aweather] / src / Makefile.am
1 SUBDIRS = plugins
2
3 AM_CFLAGS   = -Wall --std=gnu99 $(GIS_CFLAGS)
4 AM_LDFLAGS  = -Wl,--export-dynamic
5
6 bin_PROGRAMS = aweather wsr88ddec
7 aweather_SOURCES  = main.c \
8         aweather-gui.c      aweather-gui.h \
9         aweather-location.c aweather-location.h
10 aweather_CPPFLAGS = \
11         -DBROWSER="\"$(browser)\"" \
12         -DHTMLDIR="\"$(dots)$(htmldir)\"" \
13         -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \
14         -DPLUGINSDIR="\"$(dots)$(pkglibdir)\""
15 aweather_LDADD    = $(GIS_LIBS)
16
17 wsr88ddec         = wsr88ddec.c
18 wsr88ddec_LDADD   = $(GLIB_LIBS) -lbz2
19
20 if WIN32
21 AM_LDFLAGS       += -mwindows 
22 aweather_SOURCES += resource.rc
23 dots              = ..
24 browser           = "open"
25 else
26 browser           = "xdg-open"
27 endif
28
29 .rc.o: ../data/aweather.ico
30         $(RC) -o $@ $<
31
32 CLEANFILES = gmon.out valgrind.out
33 MAINTAINERCLEANFILES = Makefile.in
34
35 test: all
36         .libs/aweather -o -d 7
37
38 gdb: all
39         gdb .libs/aweather
40
41 ddd: all
42         ddd .libs/aweather