summaryrefslogtreecommitdiff
path: root/disk/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'disk/Makefile')
-rw-r--r--disk/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/disk/Makefile b/disk/Makefile
index f19d18d..128db77 100644
--- a/disk/Makefile
+++ b/disk/Makefile
@@ -28,10 +28,11 @@ include $(TOPDIR)/config.mk
LIB = $(obj)libdisk.a
COBJS-y += part.o
-COBJS-y += part_mac.o
-COBJS-y += part_dos.o
-COBJS-y += part_iso.o
-COBJS-y += part_amiga.o
+COBJS-$(CONFIG_MAC_PARTITION) += part_mac.o
+COBJS-$(CONFIG_DOS_PARTITION) += part_dos.o
+COBJS-$(CONFIG_ISO_PARTITION) += part_iso.o
+COBJS-$(CONFIG_AMIGA_PARTITION) += part_amiga.o
+COBJS-$(CONFIG_EFI_PARTITION) += part_efi.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)