Generate project files into OSD subdir to facilitate building multiple OSDs

This commit is contained in:
Vas Crabb 2015-03-28 15:38:12 +11:00
parent 78eedb8aba
commit eca145893d
2 changed files with 4 additions and 4 deletions

View file

@ -340,9 +340,9 @@ GENIE=3rdparty/genie/bin/$(OS)/genie
SILENT?=@
ifeq ($(TARGET),$(SUBTARGET))
SUBDIR = $(TARGET)
SUBDIR = $(OSD)/$(TARGET)
else
SUBDIR = $(TARGET)$(SUBTARGET)
SUBDIR = $(OSD)/$(TARGET)$(SUBTARGET)
endif
all: $(GENIE) $(TARGETOS)_$(ARCHITECTURE)

View file

@ -583,9 +583,9 @@ end
local subdir
if (_OPTIONS["target"] == _OPTIONS["subtarget"]) then
subdir = _OPTIONS["target"]
subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"]
else
subdir = _OPTIONS["target"] .. _OPTIONS["subtarget"]
subdir = _OPTIONS["osd"] .. "/" .. _OPTIONS["target"] .. _OPTIONS["subtarget"]
end
if not toolchain(MAME_BUILD_DIR, subdir) then