blob: 2b04e03decb8f8f612bf8bb8bb1ede2df8d6f8f3 [file] [log] [blame]
wdenk31f60b62001-07-05 14:47:08 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk31f60b62001-07-05 14:47:08 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk31f60b62001-07-05 14:47:08 +00006#
7
8include $(TOPDIR)/config.mk
9
10#CFLAGS += -DET_DEBUG -DDEBUG
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)libdisk.o
wdenk31f60b62001-07-05 14:47:08 +000013
Matthew McClintockdf3fc522011-05-24 05:31:19 +000014COBJS-$(CONFIG_PARTITIONS) += part.o
Mike Frysinger7bd27222009-01-29 20:02:07 -050015COBJS-$(CONFIG_MAC_PARTITION) += part_mac.o
16COBJS-$(CONFIG_DOS_PARTITION) += part_dos.o
17COBJS-$(CONFIG_ISO_PARTITION) += part_iso.o
18COBJS-$(CONFIG_AMIGA_PARTITION) += part_amiga.o
19COBJS-$(CONFIG_EFI_PARTITION) += part_efi.o
Marian Balakowiczf9328632006-09-01 19:49:50 +020020
Grant Likelyf0037c52007-09-24 09:05:30 -060021COBJS := $(COBJS-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +020022SRCS := $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS))
wdenk31f60b62001-07-05 14:47:08 +000024
25all: $(LIB)
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010028 $(call cmd_link_o_target, $(OBJS))
wdenk31f60b62001-07-05 14:47:08 +000029
30#########################################################################
31
Marian Balakowiczf9328632006-09-01 19:49:50 +020032# defines $(obj).depend target
33include $(SRCTREE)/rules.mk
wdenk31f60b62001-07-05 14:47:08 +000034
Marian Balakowiczf9328632006-09-01 19:49:50 +020035sinclude $(obj).depend
wdenk31f60b62001-07-05 14:47:08 +000036
37#########################################################################