git.openpandora.org
/
pandora-x-loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding support for saving build objects in a separated directory.
[pandora-x-loader.git]
/
disk
/
Makefile
diff --git
a/disk/Makefile
b/disk/Makefile
index
7da4624
..
512b1cb
100644
(file)
--- a/
disk/Makefile
+++ b/
disk/Makefile
@@
-25,20
+25,23
@@
include $(TOPDIR)/config.mk
#CFLAGS += -DET_DEBUG -DDEBUG
#CFLAGS += -DET_DEBUG -DDEBUG
-LIB = libdisk.a
+LIB =
$(obj)
libdisk.a
-OBJS = part.o
+COBJS = part.o
+
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
all: $(LIB)
all: $(LIB)
-$(LIB): $(
START)
$(OBJS)
+$(LIB): $(
obj).depend
$(OBJS)
$(AR) crv $@ $(OBJS)
#########################################################################
$(AR) crv $@ $(OBJS)
#########################################################################
-.depend: Makefile $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude
$(obj)
.depend
#########################################################################
#########################################################################