4 @echo "cc does not exist"
8 ifndef TIZEN_SDK_DEV_PATH
9 TIZEN_SDK_DEV_PATH=${HOME}/tizen-sdk-dev
12 ifneq ($(wildcard ../../config-host.mak),)
13 include ../../config-host.mak
18 all: qemu $(TARGET_EXE) $(TARGET_DSO)
22 cd ../../ && $(MAKE) clean
24 cd ../../ && $(MAKE) distclean
27 @echo "Generate a build information file"
28 @echo "/* Automatically generated by Makefile - do not modify! */" > build_info.h
29 @echo "static const char build_version[] = \"`cat VERSION`\";" >> build_info.h
30 @echo "static const char build_date[] = \"`date +"%F %T %Z"`\";" >> build_info.h
31 @echo "static const char pkginfo_version[] = \"`sed -n '1p' ./../../package/pkginfo.manifest | sed 's/\"//g'`\";" >> build_info.h
32 @echo "static const char pkginfo_maintainer[] = \"`sed -n '2p' ./../../package/pkginfo.manifest | sed 's/\"//g'`\";" >> build_info.h
33 @echo "static const char pkginfo_githead[] = \"`git rev-parse HEAD`\";" >> build_info.h
34 @echo "static const char latest_gittag[] = \"`git for-each-ref --count=1 --sort=-taggerdate refs/tags/ --format='Latest Git Tag : %(refname:short) (%(subject))' | sed 's/\"//g'`\";" >> build_info.h
39 distclean: clean qemu_distclean
42 mkdir -p $(EMUL_DIR)/bin
43 mkdir -p $(EMUL_DIR)/etc
44 mkdir -p $(EMUL_DIR)/data
45 mkdir -p $(EMUL_DIR)/icons
46 mkdir -p $(EMUL_DIR)/images
48 @echo "Copying emulator binary"
49 cp -pP $(SRC_PATH)/x86_64-softmmu/qemu-system-x86_64$(EXESUF) $(EMUL_DIR)/bin/emulator-x86_64$(EXESUF)
51 @echo "Copying bioses to $(EMUL_DIR)/data/bios"
52 mkdir -p $(EMUL_DIR)/data/bios
53 cp -pP ../../pc-bios/bios-256k.bin $(EMUL_DIR)/data/bios
54 cp -pP ../../pc-bios/linuxboot.bin $(EMUL_DIR)/data/bios
55 cp -pP ../../pc-bios/linuxboot_dma.bin $(EMUL_DIR)/data/bios
56 cp -pP ../../pc-bios/efi-virtio.rom $(EMUL_DIR)/data/bios
57 cp -pP ../../pc-bios/acpi-dsdt.aml $(EMUL_DIR)/data/bios
59 cp -pP scripts/emulator.sh $(EMUL_DIR)/bin
61 cp -pP scripts/emulator.cmd $(EMUL_DIR)/bin
65 cp -pP ui/resource/images/display_off_guide.png $(EMUL_DIR)/images
66 cp -pP ui/resource/images/about_bg.png $(EMUL_DIR)/images
68 cp -pP ui/resource/icons/emulator_icon.ico $(EMUL_DIR)/icons
72 # Enable vhost-net on Linux
74 cp -pP ../supplements/SDK/tizen-vhost-net $(EMUL_DIR)/etc
75 cp -pP ../supplements/SDK/45-tizen-vhost-net.rules $(EMUL_DIR)/etc
78 # Enable USB pass-through on Linux
79 ifeq ($(CONFIG_LINUX)$(CONFIG_TIZENUSB),yy)
80 cp -pP ../supplements/SDK/tizen-usb $(EMUL_DIR)/etc
81 cp -pP ../supplements/SDK/45-tizen-usb.rules $(EMUL_DIR)/etc
84 # give a title name for sdb terminal.
86 cp -pP scripts/sdbscript $(EMUL_DIR)/bin
91 cp -pP scripts/emulator-ifup-linux.sh $(EMUL_DIR)/etc/emulator-ifup.sh
92 cp -pP ../supplements/SDK/tizen-sudoers.rules $(EMUL_DIR)/etc
95 cp -pP scripts/emulator-ifup-darwin.sh $(EMUL_DIR)/etc/emulator-ifup.sh
100 @echo "Please call configure before running make!"