|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Don't need xc_save_OBJS with updated Makefile.
ChangeSet 1.1527.1.3, 2005/05/24 18:50:58+01:00, cl349@xxxxxxxxxxxxxxxxxxxx
Don't need xc_save_OBJS with updated Makefile.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
Makefile | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diff -Nru a/tools/xcutils/Makefile b/tools/xcutils/Makefile
--- a/tools/xcutils/Makefile 2005-05-24 14:02:29 -04:00
+++ b/tools/xcutils/Makefile 2005-05-24 14:02:29 -04:00
@@ -30,23 +30,13 @@
PROGRAMS = xc_restore xc_save
-xc_restore_OBJS = xc_restore.o
-xc_save_OBJS = xc_save.o
-
-LDLIBS = -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil
+LDLIBS = -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil
.PHONY: all
all: build
build: $(PROGRAMS)
-define PROGRAM_template
- $(1): $$($(1)_OBJS)
- ALL_OBJS += $$($(1)_OBJS)
-endef
-
-$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
-
-$(PROGRAMS):
+$(PROGRAMS): %: %.o
$(LINK.o) $^ $(LDLIBS) -o $@
.PHONY: install
@@ -57,7 +47,7 @@
clean:
- $(RM) $(ALL_OBJS) $(PROGRAMS)
+ $(RM) *.o $(PROGRAMS)
$(RM) $(PROG_DEP)
-include $(PROG_DEP)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Don't need xc_save_OBJS with updated Makefile.,
BitKeeper Bot <=
|
|
|
|
|