X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=6a56bc4830308cc9a01698fe9a7f3f2fe68594be;hb=c66778bac36f8b1d827bd907307a084533427b33;hp=c955106bbb16b09f19d10b6ac3e9c3e49c5e6187;hpb=417339b0711d05eb6df2a9c5a9b10551f3515edd;p=aweather diff --git a/src/Makefile.am b/src/Makefile.am index c955106..6a56bc4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,18 +1,37 @@ SUBDIRS = plugins -AM_CFLAGS = -Wall --std=gnu99 -AM_CPPFLAGS = $(GIS_CFLAGS) -LIBS = $(GIS_LIBS) +AM_CFLAGS = -Wall --std=gnu99 $(GIS_CFLAGS) +AM_LDFLAGS = -Wl,--export-dynamic bin_PROGRAMS = aweather wsr88ddec aweather_SOURCES = main.c \ aweather-gui.c aweather-gui.h \ aweather-location.c aweather-location.h -aweather_CPPFLAGS = $(AM_CPPFLAGS) \ - -DPKGDATADIR="\"$(pkgdatadir)\"" -DPLUGINSDIR="\"$(pkglibdir)\"" +aweather_CPPFLAGS = \ + -DHTMLDIR="\"$(dots)$(htmldir)\"" \ + -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \ + -DPLUGINSDIR="\"$(dots)$(pkglibdir)\"" +aweather_LDADD = $(GIS_LIBS) -wsr88ddec = wsr88ddec.c -wsr88ddec_LDADD = -lbz2 +wsr88ddec = wsr88ddec.c +wsr88ddec_LDADD = $(GLIB_LIBS) -lbz2 + +if WIN32 +dots = .. + +wsr88ddec_LDFLAGS = -mwindows + +aweather_SOURCES += resource.rc +aweather_LDFLAGS = -mwindows + +bin_PROGRAMS += aweather-dbg +aweather_dbg_SOURCES = $(aweather_SOURCES) +aweather_dbg_CPPFLAGS = $(aweather_CPPFLAGS) +aweather_dbg_LDADD = $(aweather_LDADD) +endif + +.rc.o: ../data/aweather.ico + $(RC) -o $@ $< CLEANFILES = gmon.out valgrind.out MAINTAINERCLEANFILES = Makefile.in