1# 2# (C) Copyright 2000-2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8include $(TOPDIR)/config.mk 9 10#CFLAGS += -DET_DEBUG -DDEBUG 11 12LIB = $(obj)libdisk.o 13 14COBJS-$(CONFIG_PARTITIONS) += part.o 15COBJS-$(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 20 21COBJS := $(COBJS-y) 22SRCS := $(COBJS:.o=.c) 23OBJS := $(addprefix $(obj),$(COBJS)) 24 25all: $(LIB) 26 27$(LIB): $(obj).depend $(OBJS) 28 $(call cmd_link_o_target, $(OBJS)) 29 30######################################################################### 31 32# defines $(obj).depend target 33include $(SRCTREE)/rules.mk 34 35sinclude $(obj).depend 36 37######################################################################### 38