diff --git a/Makefile b/Makefile index f64e41ea6..ba8801a38 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ CPPFLAGS=-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/freetype2 -I/usr/include/SDL -D_RPI_ LIBS=-L/opt/vc/lib -lbcm_host -lEGL -lGLESv2 -lfreetype -lSDL -lboost_system -lboost_filesystem -lfreeimage -lSDL_mixer +ADDITIONAL_SRC_SOURCES=Renderer_init_rpi.cpp include Makefile.common diff --git a/Makefile.common b/Makefile.common index 15ec7a98c..d5cac48d7 100644 --- a/Makefile.common +++ b/Makefile.common @@ -3,6 +3,8 @@ CXXFLAGS=-Wall -g -O2 LDFLAGS= SRC_SOURCES=platform.cpp AudioManager.cpp Window.cpp InputConfig.cpp Log.cpp FolderData.cpp Font.cpp GameData.cpp Gui.cpp InputManager.cpp main.cpp MathExp.cpp Renderer_draw_gl.cpp Renderer_init.cpp Sound.cpp SystemData.cpp XMLReader.cpp components/GuiAnimation.cpp components/GuiBox.cpp components/GuiFastSelect.cpp components/GuiGameList.cpp components/GuiImage.cpp components/GuiMenu.cpp components/GuiTheme.cpp components/GuiInputConfig.cpp components/GuiDetectDevice.cpp pugiXML/pugixml.cpp +SRC_SOURCES+=$(ADDITIONAL_SRC_SOURCES) + SOURCES=$(addprefix src/,$(SRC_SOURCES)) OBJECTS=$(SOURCES:.cpp=.o) DEPS=$(SOURCES:.cpp=.d) diff --git a/Makefile.x86 b/Makefile.x86 index 1217a1f00..183a4a18c 100644 --- a/Makefile.x86 +++ b/Makefile.x86 @@ -1,4 +1,5 @@ CPPFLAGS=-I/usr/include/freetype2 -I/usr/include/SDL -D_DESKTOP_ LIBS=-lGL -lfreetype -lSDL -lboost_system -lboost_filesystem -lfreeimage -lSDL_mixer +ADDITIONAL_SRC_SOURCES=Renderer_init_sdlgl.cpp include Makefile.common