diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-03-31 19:34:56 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-03-31 19:34:56 +0100 |
commit | 9ac650d825b140cbd1c2eac378ccdd7b3c52c86e (patch) | |
tree | 65dff2e3ba741c62e96e3240585e9e65c717373c /tools/xentrace | |
parent | 61d0fe74c6d60cd184afdf4f4566f421c90816ce (diff) | |
download | xen-9ac650d825b140cbd1c2eac378ccdd7b3c52c86e.tar.gz xen-9ac650d825b140cbd1c2eac378ccdd7b3c52c86e.tar.bz2 xen-9ac650d825b140cbd1c2eac378ccdd7b3c52c86e.zip |
tools: remove pattern matched linking rules
Most subdirs only build a single tool to start with and those which
build multiple tools often have different linkage requirements.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/xentrace')
-rw-r--r-- | tools/xentrace/Makefile | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/tools/xentrace/Makefile b/tools/xentrace/Makefile index 1ae9023845..0c7d3f5266 100644 --- a/tools/xentrace/Makefile +++ b/tools/xentrace/Makefile @@ -6,27 +6,12 @@ CFLAGS += -Werror CFLAGS += $(CFLAGS_libxenctrl) LDLIBS += $(LDLIBS_libxenctrl) -HDRS = $(wildcard *.h) -OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) - BIN = xentrace xentrace_setsize -LIBBIN = +LIBBIN = xenctx SCRIPTS = xentrace_format MAN1 = $(wildcard *.1) MAN8 = $(wildcard *.8) -ifeq ($(XEN_TARGET_ARCH),x86_32) -LIBBIN += xenctx -endif - -ifeq ($(XEN_TARGET_ARCH),x86_64) -LIBBIN += xenctx -endif - -ifeq ($(XEN_TARGET_ARCH),ia64) -LIBBIN += xenctx -endif - .PHONY: all all: build @@ -49,9 +34,13 @@ install: build clean: $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN) $(DEPS) -%: %.o $(HDRS) Makefile +xentrace: xentrace.o $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) -xentrace_%: %.o $(HDRS) Makefile + +xenctx: xenctx.o + $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) + +xentrace_setsize: setsize.o $(CC) $(LDFLAGS) -o $@ $< $(LDLIBS) -include $(DEPS) |