summaryrefslogtreecommitdiff
path: root/Makefile.target
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-02 20:55:59 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-02 20:55:59 +0000
commit11d9f695e710b406a487daf3fb83f82dea314063 (patch)
treee95a76901db8065abb7d7b1ed254a4dc89469e76 /Makefile.target
parent0c607d572860b692db95543c0d37f202c707b09a (diff)
downloadqemu-11d9f695e710b406a487daf3fb83f82dea314063.tar.gz
win32 cross compile fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@694 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile.target')
-rw-r--r--Makefile.target7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.target b/Makefile.target
index 1b578d0fd2..9fe3e83ed4 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -246,9 +246,12 @@ endif
ifndef CONFIG_SOFTMMU
VL_LDFLAGS+=-Wl,-T,$(SRC_PATH)/i386-vl.ld
endif
+ifndef CONFIG_WIN32
+VL_LIBS=-lutil
+endif
$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a
- $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) -lutil
+ $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(VL_LIBS)
sdl.o: sdl.c
$(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $<
@@ -309,7 +312,7 @@ clean:
install: all
ifneq ($(PROGS),)
- install -m 755 -s $(PROGS) $(prefix)/bin
+ install -m 755 -s $(PROGS) "$(bindir)"
endif
ifneq ($(wildcard .depend),)