endif
endif
-all: $(PROGS)
+default: all
#########################################################
# cpu emulator library
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)
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