diff --git a/genius/GNUmakefile b/genius/GNUmakefile index f2fc8468..f119cd8f 100644 --- a/genius/GNUmakefile +++ b/genius/GNUmakefile @@ -34,7 +34,7 @@ endif $(call delete,obj/*) $(call delete,out/*) -install: +install: all ifeq ($(platform),macos) cp -R out/$(name).app /Applications/$(name).app else ifneq ($(filter $(platform),linux bsd),) diff --git a/higan/GNUmakefile b/higan/GNUmakefile index b74420df..a2e21e18 100644 --- a/higan/GNUmakefile +++ b/higan/GNUmakefile @@ -34,16 +34,13 @@ else $(error "unsupported platform") endif -objects := libco emulator audio video resource +objects := libco emulator obj/libco.o: ../libco/libco.c obj/emulator.o: emulator/emulator.cpp -obj/audio.o: audio/audio.cpp -obj/video.o: video/video.cpp -obj/resource.o: resource/resource.cpp ifeq ($(target),higan) - cores := fc sfc ms md pce gb gba ws + cores := fc sfc ms md pce msx gb gba ws ngp endif ifeq ($(target),bsnes) @@ -70,6 +67,10 @@ ifneq ($(filter $(cores),pce),) include pce/GNUmakefile endif +ifneq ($(filter $(cores),msx),) + include msx/GNUmakefile +endif + ifneq ($(filter $(cores),gb),) include gb/GNUmakefile endif @@ -82,6 +83,10 @@ ifneq ($(filter $(cores),ws),) include ws/GNUmakefile endif +ifneq ($(filter $(cores),ngp),) + include ngp/GNUmakefile +endif + include processor/GNUmakefile flags += $(foreach c,$(call strupper,$(cores)),-DCORE_$c) diff --git a/higan/audio/audio.cpp b/higan/emulator/audio/audio.cpp similarity index 97% rename from higan/audio/audio.cpp rename to higan/emulator/audio/audio.cpp index dd3ba81e..c6fb080a 100644 --- a/higan/audio/audio.cpp +++ b/higan/emulator/audio/audio.cpp @@ -1,5 +1,3 @@ -#include - namespace Emulator { #include "stream.cpp" diff --git a/higan/audio/audio.hpp b/higan/emulator/audio/audio.hpp similarity index 100% rename from higan/audio/audio.hpp rename to higan/emulator/audio/audio.hpp diff --git a/higan/audio/stream.cpp b/higan/emulator/audio/stream.cpp similarity index 100% rename from higan/audio/stream.cpp rename to higan/emulator/audio/stream.cpp diff --git a/higan/emulator/emulator.cpp b/higan/emulator/emulator.cpp index 6c80656d..5bc72fcb 100644 --- a/higan/emulator/emulator.cpp +++ b/higan/emulator/emulator.cpp @@ -1,5 +1,9 @@ #include +#include +#include +#include + namespace Emulator { Platform* platform = nullptr; diff --git a/higan/emulator/emulator.hpp b/higan/emulator/emulator.hpp index 6f9416fe..bbdeddef 100644 --- a/higan/emulator/emulator.hpp +++ b/higan/emulator/emulator.hpp @@ -20,15 +20,15 @@ #include using namespace nall; -#include "types.hpp" #include -#include