mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 10:28:12 +00:00
Update Makefile
This commit is contained in:
parent
a931761dad
commit
6bce28c946
1 changed files with 5 additions and 8 deletions
13
Makefile
13
Makefile
|
@ -201,26 +201,23 @@ $(LIBNAME)_LDFLAGS += $(GLIB) -lm
|
||||||
all: unicorn
|
all: unicorn
|
||||||
$(MAKE) -C samples
|
$(MAKE) -C samples
|
||||||
|
|
||||||
qemu/config-host.h-timestamp config.log:
|
qemu/config-host.h-timestamp:
|
||||||
cd qemu && \
|
cd qemu && \
|
||||||
./configure --cc="${CC}" --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" ${UNICORN_QEMU_FLAGS}
|
./configure --cc="${CC}" --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" ${UNICORN_QEMU_FLAGS}
|
||||||
printf "$(UNICORN_ARCHS)" > config.log
|
printf "$(UNICORN_ARCHS)" > config.log
|
||||||
|
|
||||||
compile_lib: qemu/config-host.h-timestamp config.log
|
|
||||||
$(MAKE) -C qemu -j 4
|
$(MAKE) -C qemu -j 4
|
||||||
$(eval UC_TARGET_OBJ += $$(wildcard qemu/util/*.o) $$(wildcard qemu/*.o) $$(wildcard qemu/qom/*.o) $$(wildcard qemu/hw/core/*.o) $$(wildcard qemu/qapi/*.o) $$(wildcard qemu/qobject/*.o))
|
$(eval UC_TARGET_OBJ += $$(wildcard qemu/util/*.o) $$(wildcard qemu/*.o) $$(wildcard qemu/qom/*.o) $$(wildcard qemu/hw/core/*.o) $$(wildcard qemu/qapi/*.o) $$(wildcard qemu/qobject/*.o))
|
||||||
|
|
||||||
unicorn: $(LIBRARY) $(ARCHIVE)
|
unicorn: $(LIBRARY) $(ARCHIVE)
|
||||||
|
|
||||||
$(LIBRARY): compile_lib uc.o list.o
|
$(LIBRARY): qemu/config-host.h-timestamp uc.o list.o
|
||||||
$(CC) $(CFLAGS) -shared $(UC_TARGET_OBJ) uc.o list.o -o $(LIBRARY) $($(LIBNAME)_LDFLAGS)
|
$(CC) $(CFLAGS) -shared $(UC_TARGET_OBJ) uc.o list.o -o $(LIBRARY) $($(LIBNAME)_LDFLAGS)
|
||||||
-ln -sf $(LIBRARY) $(LIBRARY_SYMLINK)
|
-ln -sf $(LIBRARY) $(LIBRARY_SYMLINK)
|
||||||
|
|
||||||
$(ARCHIVE): compile_lib uc.o list.o
|
$(ARCHIVE): qemu/config-host.h-timestamp uc.o list.o
|
||||||
$(AR) q $(ARCHIVE) $(UC_TARGET_OBJ) uc.o list.o
|
$(AR) q $(ARCHIVE) $(UC_TARGET_OBJ) uc.o list.o
|
||||||
$(RANLIB) $(ARCHIVE)
|
$(RANLIB) $(ARCHIVE)
|
||||||
|
|
||||||
|
|
||||||
$(PKGCFGF):
|
$(PKGCFGF):
|
||||||
$(generate-pkgcfg)
|
$(generate-pkgcfg)
|
||||||
|
|
||||||
|
@ -230,7 +227,7 @@ test: all
|
||||||
$(MAKE) -C tests/regress test
|
$(MAKE) -C tests/regress test
|
||||||
$(MAKE) -C bindings test
|
$(MAKE) -C bindings test
|
||||||
|
|
||||||
install: compile_lib $(PKGCFGF)
|
install: qemu/config-host.h-timestamp $(PKGCFGF)
|
||||||
mkdir -p $(DESTDIR)$(LIBDIR)
|
mkdir -p $(DESTDIR)$(LIBDIR)
|
||||||
ifeq ($(UNICORN_SHARED),yes)
|
ifeq ($(UNICORN_SHARED),yes)
|
||||||
ifneq ($(filter CYGWIN%,$(UNAME_S)),)
|
ifneq ($(filter CYGWIN%,$(UNAME_S)),)
|
||||||
|
@ -260,7 +257,7 @@ else
|
||||||
DIST_VERSION = $(TAG)
|
DIST_VERSION = $(TAG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bindings: compile_lib
|
bindings: qemu/config-host.h-timestamp
|
||||||
$(MAKE) -C bindings build
|
$(MAKE) -C bindings build
|
||||||
$(MAKE) -C bindings samples
|
$(MAKE) -C bindings samples
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue