projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ppc4xx: Add missing APC405 to MAKEALL
[oweals/u-boot.git]
/
fs
/
fdos
/
Makefile
diff --git
a/fs/fdos/Makefile
b/fs/fdos/Makefile
index c25e744b921e97ff3023a381487d4127432c3890..fce2032bddc1b1bc09bffb66e021a957ee702d13 100644
(file)
--- a/
fs/fdos/Makefile
+++ b/
fs/fdos/Makefile
@@
-1,4
+1,7
@@
#
#
+# (C) Copyright 2006
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+#
# (C) Copyright 2002
# Stäubli Faverges - <www.staubli.com>
# Pierre AUBERT p.aubert@staubli.com
# (C) Copyright 2002
# Stäubli Faverges - <www.staubli.com>
# Pierre AUBERT p.aubert@staubli.com
@@
-25,25
+28,27
@@
include $(TOPDIR)/config.mk
include $(TOPDIR)/config.mk
-LIB = libfdos.a
+LIB =
$(obj)
libfdos.a
AOBJS =
AOBJS =
-COBJS = fat.o vfat.o dev.o fdos.o fs.o subdir.o
-OBJS = $(AOBJS) $(COBJS)
+COBJS-$(CONFIG_CMD_FDOS) := fat.o vfat.o dev.o fdos.o fs.o subdir.o
+
+SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
#CPPFLAGS +=
all: $(LIB) $(AOBJS)
#CPPFLAGS +=
all: $(LIB) $(AOBJS)
-$(LIB): .depend $(OBJS)
- $(AR)
crv
$@ $(OBJS)
+$(LIB):
$(obj)
.depend $(OBJS)
+ $(AR)
$(ARFLAGS)
$@ $(OBJS)
#########################################################################
#########################################################################
-.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################