Makefile.kmk revision 6a99216810d8b67d82b7b9a644193713ae8a7617
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# Sub-Makefile for the VBox Disassembler.
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# Copyright (C) 2006-2007 Sun Microsystems, Inc.
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# available from http://www.virtualbox.org. This file is free software;
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# you can redistribute it and/or modify it under the terms of the GNU
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# General Public License (GPL) as published by the Free Software
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
5e987626337653efdfa06b33e4a294045e0c486dvboxsync# additional information or have any questions.
5e987626337653efdfa06b33e4a294045e0c486dvboxsyncDEPTH ?= ../../../..
5e987626337653efdfa06b33e4a294045e0c486dvboxsyncSUB_DEPTH = ..
include $(KBUILD_PATH)/subheader.kmk
# Tests that only contains invalid/undefined instructions.
$(VBOX_DISAS_TESTS_BIN:.asm=-16.bin)\
$(VBOX_DISAS_TESTS_BIN:.asm=-32.bin)\
$(VBOX_DISAS_TESTS_BIN:.asm=-64.bin))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-16.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-16.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-32.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-32.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BIN:.asm=-64.bin)): $(PATH_SUB_CURRENT)/$$(patsubst %-64.bin,%.asm,$$(notdir $$(@))) | $$(call DIRDEP,$$(@D))
$(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.asm)\
$(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.asm)\
$(VBOX_DISAS_TESTS_BUILD:.asm=-64-disas.asm))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.asm)): $$(subst -disas.asm,.bin,$$@) $$(INSTARGET_tstDisasm-2) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.asm)): $$(subst -disas.asm,.bin,$$@) $$(INSTARGET_tstDisasm-2) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-64-disas.asm)): $$(subst -disas.asm,.bin,$$@) $$(INSTARGET_tstDisasm-2) | $$(call DIRDEP,$$(@D))
$(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.bin)\
$(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.bin)\
$(VBOX_DISAS_TESTS_BUILD:.asm=-64-disas.bin))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-16-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-32-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_BUILD:.asm=-64-disas.bin)): $$(subst .bin,.asm,$$@) | $$(call DIRDEP,$$(@D))
VBOX_DISAS_TESTS += $(foreach test, $(VBOX_DISAS_TESTS_BUILD:.asm=), $(test)-16.tst $(test)-32.tst $(test)-64.tst)
$(VBOX_DISAS_TESTS_BUILD:.asm=-16.tst)\
$(VBOX_DISAS_TESTS_BUILD:.asm=-32.tst)\
VBOX_DISAS_TESTS += $(foreach test, $(VBOX_DISAS_TESTS_INVALID:.asm=), $(test)-16.tst $(test)-32.tst $(test)-64.tst)
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_INVALID:.asm=-16.tst)): $$(patsubst %.tst,%.bin,$$@) $$(INSTARGET_tstDisasm-2) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_INVALID:.asm=-32.tst)): $$(patsubst %.tst,%.bin,$$@) $$(INSTARGET_tstDisasm-2) | $$(call DIRDEP,$$(@D))
$(addprefix $(VBOX_DISAS_TEST_PATH)/, $(VBOX_DISAS_TESTS_INVALID:.asm=-64.tst)): $$(patsubst %.tst,%.bin,$$@) $$(INSTARGET_tstDisasm-2) | $$(call DIRDEP,$$(@D))
include $(KBUILD_PATH)/subfooter.kmk