From: Ian Jackson Date: Wed, 12 Mar 2008 12:03:58 +0000 (+0000) Subject: Better organisation of Makefile.target faff X-Git-Tag: xen-3.3.0-rc1~230 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9fa7cda78c608ff64eadb69db5c004e09192bb0c;p=qemu-xen-4.3-testing.git Better organisation of Makefile.target faff --- diff --git a/Makefile.target b/Makefile.target index 5ac29a7d8..1be2e36ee 100644 --- a/Makefile.target +++ b/Makefile.target @@ -168,7 +168,7 @@ CFLAGS+=-I/opt/SUNWspro/prod/include/cc endif endif -all: $(PROGS) +default: all ######################################################### # cpu emulator library @@ -657,6 +657,9 @@ LDFLAGS+=-p main.o: CFLAGS+=-p endif +include hooks.mak +all: $(PROGS) + $(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) diff --git a/xen-hooks.mak b/xen-hooks.mak index a09b84c5e..86a692d2e 100644 --- a/xen-hooks.mak +++ b/xen-hooks.mak @@ -25,3 +25,7 @@ OBJS += xen_machine_pv.o OBJS += xenfb.o OBJS += xen_console.o OBJS += xen_machine_fv.o + +BAD_OBJS += monitor.o + +OBJS := $(filter-out $(BAD_OBJS), $(OBJS)) diff --git a/xen-make-target-dir b/xen-make-target-dir index 08e6a0acc..3e17574ad 100755 --- a/xen-make-target-dir +++ b/xen-make-target-dir @@ -4,9 +4,5 @@ if [ $# != 1 ]; then echo >&2 "usage: $0 "; exit 1; fi target=$1 test -d $target || mkdir $target - -perl -pe ' - BEGIN { print "# autogenerated - do not edit\n" or die $!; } - print "include hooks.mak\n" or die $! - if m/^all\s*\:/; -' Makefile.target >$target/Makefile +rm $target/Makefile +ln -s ../Makefile.target $target/Makefile