efibootmgr_LIBDIR := src/lib
efibootmgr_FULLLIB := \
$(patsubst %,$(efibootmgr_LIBDIR)/%,$(efibootmgr_LIBS))
-LIBS = -lpci
+LIBS = -lpci -lz
ALLDEPS += $(efibootmgr_FULLTARGET)
CLEANLIST += $(efibootmgr_FULLTARGET)
$(efibootmgr_FULLTARGET): \
$(efibootmgr_FULLOBJECT) \
- $(efibootmgr_FULLLIB) \
- $(LIBS)
+ $(efibootmgr_FULLLIB)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(efibootmgr_SRCDIR)/efibootmgr.c $^ $(LIBS) -o $@