summaryrefslogtreecommitdiff
path: root/Makefile
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
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')
-rw-r--r--Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index f2be1f6f8a..fc9d74f9c6 100644
--- a/Makefile
+++ b/Makefile
@@ -16,14 +16,11 @@ all: dyngen$(EXESUF) $(TOOLS) qemu-doc.html qemu.1
make -C $$d $@ || exit 1 ; \
done
-qemu-mkcow: qemu-mkcow.o
- $(HOST_CC) -o $@ $^ $(LIBS)
+qemu-mkcow: qemu-mkcow.c
+ $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ $(LIBS)
-dyngen$(EXESUF): dyngen.o
- $(HOST_CC) -o $@ $^ $(LIBS)
-
-%.o: %.c
- $(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
+dyngen$(EXESUF): dyngen.c
+ $(HOST_CC) $(CFLAGS) $(DEFINES) -o $@ $^
clean:
# avoid old build problems by removing potentially incorrect old files
@@ -41,13 +38,17 @@ distclean: clean
done
install: all
- mkdir -p $(prefix)/bin
- install -m 755 -s $(TOOLS) $(prefix)/bin
- mkdir -p $(sharedir)
+ mkdir -p "$(bindir)"
+ifndef CONFIG_WIN32
+ install -m 755 -s $(TOOLS) "$(bindir)"
+endif
+ mkdir -p "$(sharedir)"
install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \
- pc-bios/linux_boot.bin $(sharedir)
- mkdir -p $(mandir)/man1
- install qemu.1 qemu-mkcow.1 $(mandir)/man1
+ pc-bios/linux_boot.bin "$(sharedir)"
+ifndef CONFIG_WIN32
+ mkdir -p "$(mandir)/man1"
+ install qemu.1 qemu-mkcow.1 "$(mandir)/man1"
+endif
for d in $(TARGET_DIRS); do \
make -C $$d $@ || exit 1 ; \
done