Use talloc for device handler destruction
[petitboot] / rules.mk
index f8d64c61752b3d0c505740c33dea4e8d5850a50f..475d096df097cdbab9d45682a76ff012f2c4b310 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -4,7 +4,8 @@ VPATH = $(srcdir)
 CFLAGS += -I$(top_srcdir) -I$(top_srcdir)/lib -I$(builddir)
 
 # we need paths to be overridable at build-time
-DEFS += '-DPREFIX="$(prefix)"' '-DPKG_SHARE_DIR="$(pkgdatadir)"'
+DEFS += '-DPREFIX="$(prefix)"' '-DPKG_SHARE_DIR="$(pkgdatadir)"' \
+       '-DLOCAL_STATE_DIR="$(localstatedir)"'
 
 #uis = ui/twin/pb-twin
 uis = ui/test/pb-test
@@ -43,6 +44,7 @@ ui/test/pb-test: $(pb_test_objs)
 
 pb_discover_objs = discover/pb-discover.o discover/udev.o discover/log.o \
                   discover/waiter.o discover/discover-server.o \
+                  discover/device-handler.o discover/paths.o \
                   $(talloc_objs) $(server_objs) $(list_objs)
 
 discover/pb-discover: $(pb_discover_objs)