ia64/xen-unstable

changeset 5120:311782d9e952

bitkeeper revision 1.1527.1.2 (4293468ayy5XU1yxu0QwnCQ83S5pbA)

No more dependency of GNU Make 'eval' function, which is not present in
older versions.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue May 24 15:21:46 2005 +0000 (2005-05-24)
parents 17e2e8a32c9e
children 734ebf0aa35f
files tools/xcutils/Makefile
line diff
     1.1 --- a/tools/xcutils/Makefile	Tue May 24 14:20:04 2005 +0000
     1.2 +++ b/tools/xcutils/Makefile	Tue May 24 15:21:46 2005 +0000
     1.3 @@ -30,21 +30,14 @@ PROG_DEP = .*.d
     1.4  
     1.5  PROGRAMS		= xc_restore
     1.6  
     1.7 -xc_restore_OBJS		= xc_restore.o
     1.8 -
     1.9 -LDLIBS			= -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil
    1.10 +LDLIBS			= -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil
    1.11  
    1.12  .PHONY: all
    1.13  all: build
    1.14  build: $(PROGRAMS)
    1.15  
    1.16 -define PROGRAM_template
    1.17 -$(1): $$($(1)_OBJS)
    1.18 -	$$(LINK.o) $$^ $$(LDLIBS) -o $$@
    1.19 -ALL_OBJS	+= $$($(1)_OBJS)
    1.20 -endef
    1.21 -
    1.22 -$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
    1.23 +$(PROGRAMS): %: %.o
    1.24 +	$(LINK.o) $^ $(LDLIBS) -o $@
    1.25  
    1.26  .PHONY: install
    1.27  install: build
    1.28 @@ -54,7 +47,7 @@ install: build
    1.29  
    1.30  
    1.31  clean:
    1.32 -	$(RM) $(ALL_OBJS) $(PROGRAMS)
    1.33 +	$(RM) *.o $(PROGRAMS)
    1.34  	$(RM) $(PROG_DEP)
    1.35  
    1.36  -include $(PROG_DEP)