2012-07-19 01:14:17 +00:00
|
|
|
CC=g++
|
2012-09-10 18:10:59 +00:00
|
|
|
CFLAGS=-c -Wall -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include -D_RPI_
|
2012-10-13 18:29:53 +00:00
|
|
|
LDFLAGS=-L/opt/vc/lib -lbcm_host -lEGL -lGLESv2 -lfreetype -lSDL -lboost_system -lboost_filesystem -lfreeimage -lSDL_mixer
|
2012-10-17 17:15:58 +00:00
|
|
|
SRCSOURCES=main.cpp Renderer.cpp Renderer_init.cpp Font.cpp Renderer_draw_gl.cpp GuiComponent.cpp InputManager.cpp SystemData.cpp GameData.cpp FolderData.cpp XMLReader.cpp MathExp.cpp components/GuiGameList.cpp components/GuiInputConfig.cpp components/GuiImage.cpp components/GuiMenu.cpp components/GuiTheme.cpp components/GuiFastSelect.cpp components/GuiBox.cpp components/GuiAnimation.cpp AudioManager.cpp Sound.cpp pugiXML/pugixml.cpp
|
2012-07-19 01:14:17 +00:00
|
|
|
SOURCES=$(addprefix src/,$(SRCSOURCES))
|
|
|
|
OBJECTS=$(SOURCES:.cpp=.o)
|
|
|
|
EXECUTABLE=emulationstation
|
|
|
|
|
|
|
|
all: $(SOURCES) $(EXECUTABLE)
|
|
|
|
|
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
|
|
|
$(CC) $(OBJECTS) $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
clean:
|
2012-07-19 16:13:27 +00:00
|
|
|
rm -rf src/*o src/components/*o $(EXECUTABLE)
|
2012-08-10 19:28:34 +00:00
|
|
|
|