X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=7203aa093473542658c0580caed79f3aed9f5444;hb=9b913c654b2895815dc1f0ac9d526111a835aed7;hp=9b8803785585c36284ce8c85f3be4e7d05f398f0;hpb=62239c1f2419f1fb7d6adc263b1e11dcefddc737;p=aweather diff --git a/src/Makefile.am b/src/Makefile.am index 9b88037..7203aa0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,8 @@ SUBDIRS = plugins AM_CFLAGS = -Wall --std=gnu99 $(GRITS_CFLAGS) -AM_LDFLAGS = -Wl,--export-dynamic +AM_LDFLAGS = -Wl,--export-dynamic \ + -Wl,--as-needed -Wl,--no-undefined bin_PROGRAMS = aweather wsr88ddec aweather_SOURCES = main.c \ @@ -23,6 +24,8 @@ wsr88ddec_LDFLAGS = -mwindows aweather_SOURCES += resource.rc aweather_LDFLAGS = -mwindows +aweather_CPPFLAGS += -I$(top_srcdir)/lib +aweather_LDADD += $(top_srcdir)/lib/libgnu.la bin_PROGRAMS += aweather-dbg aweather_dbg_SOURCES = $(aweather_SOURCES)