Merge tag 'v1.2.0' into tizen-arm
[sdk/emulator/qemu.git] / Makefile.target
old mode 100644 (file)
new mode 100755 (executable)
index 7892a8d..b4b0acd
@@ -141,6 +141,15 @@ QEMU_CFLAGS += $(VNC_PNG_CFLAGS)
 obj-$(CONFIG_XEN) += xen-all.o xen-mapcache.o
 obj-$(CONFIG_NO_XEN) += xen-stub.o
 
+# HAX support
+obj-$(CONFIG_HAX) += hax-all.o hax-windows.o
+obj-$(CONFIG_NO_HAX) += hax-stub.o
+ifdef CONFIG_DARWIN
+obj-$(CONFIG_HAX) += \
+        hax-all.o       \
+        hax-darwin.o
+endif
+
 # Hardware support
 ifeq ($(TARGET_ARCH), sparc64)
 obj-y += hw/sparc64/
@@ -156,6 +165,135 @@ endif # CONFIG_SOFTMMU
 
 nested-vars += obj-y
 
+# Makefile for TIZEN-maru
+ifdef CONFIG_MARU
+include $(SRC_PATH)/tizen/src/Makefile.tizen
+endif
+##
+
+ifdef CONFIG_BUILD_YAGL
+
+# YaGL
+QEMU_CFLAGS += -I$(SRC_PATH)/hw/yagl_inc
+
+$(call set-vpath, $(SRC_PATH)/hw/yagl_apis/egl: \
+                  $(SRC_PATH)/hw/yagl_apis/gles: \
+                  $(SRC_PATH)/hw/yagl_apis/gles1: \
+                  $(SRC_PATH)/hw/yagl_apis/gles2: \
+                  $(SRC_PATH)/hw/yagl_drivers/egl_glx: \
+                  $(SRC_PATH)/hw/yagl_drivers/gles_ogl: \
+                  $(SRC_PATH)/hw/yagl_drivers/gles1_ogl: \
+                  $(SRC_PATH)/hw/yagl_drivers/gles2_ogl)
+
+obj-y += yagl_device.o
+obj-y += yagl_log.o
+obj-y += yagl_process.o
+obj-y += yagl_thread.o
+obj-y += yagl_server.o
+obj-y += yagl_ref.o
+obj-y += yagl_mem.o
+obj-y += yagl_mem_egl.o
+obj-y += yagl_mem_gl.o
+obj-y += yagl_mem_transfer.o
+obj-y += yagl_event.o
+obj-y += yagl_handle_gen.o
+obj-y += yagl_dyn_lib.o
+obj-y += yagl_api.o
+obj-y += yagl_vector.o
+obj-y += yagl_avl.o
+obj-y += yagl_range_list.o
+obj-y += yagl_egl_driver.o
+obj-y += yagl_gles_driver.o
+obj-y += yagl_gles1_driver.o
+obj-y += yagl_gles2_driver.o
+obj-y += yagl_egl_interface.o
+obj-y += yagl_client_interface.o
+obj-y += yagl_client_context.o
+obj-y += yagl_resource.o
+obj-y += yagl_resource_list.o
+obj-y += yagl_object.o
+obj-y += yagl_namespace.o
+obj-y += yagl_sharegroup.o
+obj-y += yagl_stats.o
+obj-y += yagl_compiled_transfer.o
+obj-y += yagl_egl_native_config.o
+obj-y += yagl_egl_surface_attribs.o
+# EGL api
+obj-y += yagl_egl_api.o
+obj-y += yagl_egl_api_ps.o
+obj-y += yagl_egl_api_ts.o
+obj-y += yagl_egl_calls.o
+obj-y += yagl_egl_display.o
+obj-y += yagl_egl_config.o
+obj-y += yagl_egl_surface.o
+obj-y += yagl_egl_context.o
+obj-y += yagl_egl_validate.o
+obj-y += yagl_host_egl_calls.o
+# GLES common api
+obj-y += yagl_gles_context.o
+obj-y += yagl_gles_array.o
+obj-y += yagl_gles_buffer.o
+obj-y += yagl_gles_texture.o
+obj-y += yagl_gles_framebuffer.o
+obj-y += yagl_gles_renderbuffer.o
+obj-y += yagl_gles_texture_unit.o
+obj-y += yagl_gles_validate.o
+obj-y += yagl_host_gles_calls.o
+# GLESv1_CM api
+obj-y += yagl_gles1_calls.o
+obj-y += yagl_host_gles1_calls.o
+# GLESv2 api
+obj-y += yagl_gles2_api.o
+obj-y += yagl_gles2_api_ps.o
+obj-y += yagl_gles2_api_ts.o
+obj-y += yagl_gles2_calls.o
+obj-y += yagl_gles2_context.o
+obj-y += yagl_gles2_shader.o
+obj-y += yagl_gles2_program.o
+obj-y += yagl_gles2_validate.o
+obj-y += yagl_host_gles2_calls.o
+# EGL GLX driver
+obj-y += yagl_egl_glx.o
+# GLES OpenGL common driver
+obj-y += yagl_gles_ogl.o
+# GLESv1_CM OpenGL driver
+obj-y += yagl_gles1_ogl.o
+# GLESv2 OpenGL driver
+obj-y += yagl_gles2_ogl.o
+
+endif
+
+ifdef CONFIG_BUILD_GLES
+
+gles2.o: gles2.c gles2.h
+gles2_egl.o: gles2_egl.c gles2.h
+gles2_es11.o: gles2_es11.c gles2.h
+gles2_es20.o: gles2_es20.c gles2.h
+gles2_kernel_calls.o: gles2_kernel_calls.c gles2.h gles2_calls.h
+gles2_egl_calls.o: gles2_egl_calls.c gles2.h gles2_calls.h
+gles2_es11_calls.o: gles2_es11_calls.c gles2.h gles2_calls.h
+gles2_es20_calls.o: gles2_es20_calls.c gles2.h gles2_calls.h
+obj-y += gles2.o gles2_egl.o gles2_es11.o gles2_es20.o
+obj-y += gles2_kernel_calls.o  gles2_egl_calls.o gles2_es11_calls.o
+obj-y += gles2_es20_calls.o
+
+ifdef QEMU_PROGW
+GLESLIBS_LINK_LIST:=$(wildcard $(CONFIG_GLES_LIBDIR)/*.dll)
+else
+GLESLIBS_LINK_LIST:=$(wildcard $(CONFIG_GLES_LIBDIR)/lib*)
+endif
+
+$(GLESLIBS_LINK_LIST):
+
+GLESLIBS_RUNTIME_LIST:=$(addprefix ./,$(notdir $(GLESLIBS_LINK_LIST)))
+
+$(GLESLIBS_RUNTIME_LIST): $(GLESLIBS_LINK_LIST)
+       @cp -dpu -t ./ $(GLESLIBS_LINK_LIST)
+
+$(QEMU_PROG): $(GLESLIBS_RUNTIME_LIST)
+
+endif # CONFIG_BUILD_GLES
+
 # This resolves all nested paths, so it must come last
 include $(SRC_PATH)/Makefile.objs
 
@@ -206,6 +344,9 @@ ifneq ($(PROGS),)
 ifneq ($(STRIP),)
        $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS))
 endif
+ifneq ($(GLESLIBS_RUNTIME_LIST),)
+       $(INSTALL) -m 644 $(GLESLIBS_RUNTIME_LIST) "$(DESTDIR)$(bindir)"
+endif
 endif
 ifdef CONFIG_TRACE_SYSTEMTAP
        $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset"