projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AT91: fix at91sam_wdt.c to reworked header files
[oweals/u-boot.git]
/
disk
/
Makefile
diff --git
a/disk/Makefile
b/disk/Makefile
index 1a929ce6deb3960f4650e81986423f671e869f23..17266a2eb67a663c42a8989fb693c005f1cbc475 100644
(file)
--- a/
disk/Makefile
+++ b/
disk/Makefile
@@
-25,17
+25,23
@@
include $(TOPDIR)/config.mk
#CFLAGS += -DET_DEBUG -DDEBUG
#CFLAGS += -DET_DEBUG -DDEBUG
-LIB = $(obj)libdisk.
a
+LIB = $(obj)libdisk.
o
-COBJS = part.o part_mac.o part_dos.o part_iso.o part_amiga.o
+COBJS-y += part.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)
OBJS := $(addprefix $(obj),$(COBJS))
all: $(LIB)
$(LIB): $(obj).depend $(OBJS)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
all: $(LIB)
$(LIB): $(obj).depend $(OBJS)
- $(
AR) $(ARFLAGS) $@ $(OBJS
)
+ $(
call cmd_link_o_target, $(OBJS)
)
#########################################################################
#########################################################################