wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2006 |
wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | #CFLAGS += -DET_DEBUG -DDEBUG |
| 11 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 12 | LIB = $(obj)libdisk.o |
wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 13 | |
Matthew McClintock | 6252b4f | 2011-05-24 05:31:19 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_PARTITIONS) += part.o |
Mike Frysinger | 0ea0aa8 | 2009-01-29 20:02:07 -0500 | [diff] [blame] | 15 | COBJS-$(CONFIG_MAC_PARTITION) += part_mac.o |
| 16 | COBJS-$(CONFIG_DOS_PARTITION) += part_dos.o |
| 17 | COBJS-$(CONFIG_ISO_PARTITION) += part_iso.o |
| 18 | COBJS-$(CONFIG_AMIGA_PARTITION) += part_amiga.o |
| 19 | COBJS-$(CONFIG_EFI_PARTITION) += part_efi.o |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 20 | |
Grant Likely | 1179ad1 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 21 | COBJS := $(COBJS-y) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 22 | SRCS := $(COBJS:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(COBJS)) |
wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 24 | |
| 25 | all: $(LIB) |
| 26 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 27 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 28 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 29 | |
| 30 | ######################################################################### |
| 31 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 32 | # defines $(obj).depend target |
| 33 | include $(SRCTREE)/rules.mk |
wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 34 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 35 | sinclude $(obj).depend |
wdenk | 31f60b6 | 2001-07-05 14:47:08 +0000 | [diff] [blame] | 36 | |
| 37 | ######################################################################### |