]> git.draconx.ca Git - upkg.git/blobdiff - src/Makefile.am
upkg: Add gnulib getopt_long support and implement --help/--version.
[upkg.git] / src / Makefile.am
index 80cbd2267837730f29204db89261e6796034400b..67e4d7b0e36ef41c238383ab2f38aaea56a184da 100644 (file)
@@ -10,8 +10,9 @@ include engine/Makefile.inc
 
 bin_PROGRAMS  = upkg
 upkg_SOURCES  = upkg.c avl.c module.c exportable.c uobject.c
-upkg_CPPFLAGS = $(GLIB_CFLAGS) $(LTDLINCL)
-upkg_LDFLAGS  = -export-dynamic
-upkg_LDADD    = libupkg.la $(LIBLTDL) $(GLIB_LIBS)
+upkg_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \
+       $(GLIB_CFLAGS) $(LTDLINCL)
+upkg_LDFLAGS  = -L$(top_builddir)/lib -export-dynamic
+upkg_LDADD    = libupkg.la $(LIBLTDL) $(GLIB_LIBS) -lgnu
 
 endif