Imported Debian patch 0.4.9-1
[debian/efibootmgr] / src / efibootmgr / module.mk
1 efibootmgr_SRCDIR := src/efibootmgr
2 efibootmgr_OBJECTS := efibootmgr.o
3 efibootmgr_TARGETS := efibootmgr
4 efibootmgr_FULLTARGET :=  \
5         $(patsubst %, $(efibootmgr_SRCDIR)/%, $(efibootmgr_TARGETS))
6 efibootmgr_FULLOBJECT :=  \
7         $(patsubst %, $(efibootmgr_SRCDIR)/%, $(efibootmgr_OBJECT))
8
9 efibootmgr_LIBS    := crc32.o disk.o efi.o efichar.o gpt.o scsi_ioctls.o \
10                       unparse_path.o efivars_procfs.o efivars_sysfs.o
11 efibootmgr_LIBDIR  := src/lib
12 efibootmgr_FULLLIB := \
13         $(patsubst %,$(efibootmgr_LIBDIR)/%,$(efibootmgr_LIBS))
14 LIBS = -lpci
15
16 ALLDEPS += $(efibootmgr_FULLTARGET)
17 CLEANLIST += $(efibootmgr_FULLTARGET)
18 CLEANLIST += $(efibootmgr_FULLOBJECT)
19 bindir_TARGETS += $(efibootmgr_FULLTARGET)
20
21 $(efibootmgr_FULLTARGET): \
22         $(efibootmgr_FULLOBJECT) \
23         $(efibootmgr_FULLLIB) \
24         $(LIBS)