]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commitdiff
Better organisation of Makefile.target faff
authorIan Jackson <iwj@mariner.uk.xensource.com>
Wed, 12 Mar 2008 12:03:58 +0000 (12:03 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 12 May 2008 11:20:10 +0000 (12:20 +0100)
Makefile.target
xen-hooks.mak
xen-make-target-dir

index 5ac29a7d8261749ad34a23588de4d014cb83ef51..1be2e36ee299d29d860c896b2cd866dc5fd3ec8c 100644 (file)
@@ -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)
 
index a09b84c5efe35cec7f069beb453349401ff657f1..86a692d2e09e271015d1fbbf4ba45f324b9b7e10 100644 (file)
@@ -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))
index 08e6a0accb7011ade85aab4bff2a0952c23fd5ef..3e17574ad4f5ce197f086e5e8c7691d9b14e2421 100755 (executable)
@@ -4,9 +4,5 @@ if [ $# != 1 ]; then echo >&2 "usage: $0 <target-dir>"; 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