debuggers.hg

changeset 22051:dca524642651

xl: use the regular implicit rules to build the xl .o files

Having $(XL_OBJS) makes part of a subsequent patch a little cleaner.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author Ian Campbell <ian.campbell@citrix.com>
date Mon Aug 16 15:31:04 2010 +0100 (2010-08-16)
parents f353f1ac38f6
children 3f268693fb81
files tools/libxl/Makefile
line diff
     1.1 --- a/tools/libxl/Makefile	Tue Aug 17 12:45:44 2010 +0100
     1.2 +++ b/tools/libxl/Makefile	Mon Aug 16 15:31:04 2010 +0100
     1.3 @@ -32,6 +32,8 @@ LIBXLU_OBJS = libxlu_cfg_y.o libxlu_cfg_
     1.4  
     1.5  CLIENTS = xl
     1.6  
     1.7 +XL_OBJS = xl.o xl_cmdimpl.o xl_cmdtable.o
     1.8 +
     1.9  .PHONY: all
    1.10  all: $(CLIENTS) libxenlight.so libxenlight.a libxlutil.so libxlutil.a \
    1.11  	$(AUTOSRCS) $(AUTOINCS)
    1.12 @@ -82,16 +84,7 @@ libxlutil.so.$(XLUMAJOR).$(XLUMINOR): $(
    1.13  libxlutil.a: $(LIBXLU_OBJS)
    1.14  	$(AR) rcs libxlutil.a $^
    1.15  
    1.16 -xl.o: xl.c
    1.17 -	$(CC) $(CFLAGS) -c xl.c
    1.18 -
    1.19 -xl_cmdimpl.o: xl_cmdimpl.c
    1.20 -	$(CC) $(CFLAGS) -c xl_cmdimpl.c
    1.21 -
    1.22 -xl_cmdtable.o: xl_cmdtable.c
    1.23 -	$(CC) $(CFLAGS) -c xl_cmdtable.c
    1.24 -
    1.25 -$(CLIENTS): xl.o xl_cmdimpl.o xl_cmdtable.o libxlutil.so libxenlight.so
    1.26 +$(CLIENTS): $(XL_OBJS) libxlutil.so libxenlight.so
    1.27  	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
    1.28  
    1.29  .PHONY: install