X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=9c05599e13ff77923af0019896f9c4e9ac155ae2;hb=a9b6cd4bb2b4b9a424fa63843a3fbcef05429c88;hp=c969493d750816406a4201c5a6d5800f1c29b0a6;hpb=807100ae8d20f0a22ab3bcf72c88c0c4a03ec112;p=aweather diff --git a/src/Makefile.am b/src/Makefile.am index c969493..9c05599 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,11 +1,46 @@ -AM_CPPFLAGS = $(RSL_CFLAGS) $(GTK_CFLAGS) $(CURL_CFLAGS) -AM_CFLAGS = -O3 -Wall -Werror --std=gnu99 +SUBDIRS = plugins -bin_PROGRAMS = aweather +AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS) +AM_LDFLAGS = -Wl,--export-dynamic -aweather_SOURCES = aweather.c opengl.c radar.c ridge.c example.c -aweather_LDADD = $(RSL_LIBS) $(GTK_LIBS) $(CURL_LIBS) +bin_PROGRAMS = aweather wsr88ddec +aweather_SOURCES = main.c \ + aweather-gui.c aweather-gui.h \ + aweather-location.c aweather-location.h +aweather_CPPFLAGS = \ + -DHTMLDIR="\"$(dots)$(htmldir)\"" \ + -DPKGDATADIR="\"$(dots)$(pkgdatadir)\"" \ + -DPLUGINSDIR="\"$(dots)$(pkglibdir)\"" +aweather_LDADD = $(GRITS_LIBS) + +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 test: all - LD_LIBRARY_PATH=/usr/local/trmm/GVBOX/lib/ \ - ./aweather + .libs/aweather -o -d 7 + +gdb: all + gdb .libs/aweather + +ddd: all + ddd .libs/aweather