2012-09-10 18:48:00 +00:00
|
|
|
CC=g++
|
2012-09-16 19:18:11 +00:00
|
|
|
CFLAGS=-c -Wall -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include -D_DESKTOP_ -g
|
2012-09-10 18:48:00 +00:00
|
|
|
LDFLAGS=-lGL -lfreetype -lSDL -lboost_system -lboost_filesystem -lfreeimage
|
2012-10-01 03:29:55 +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 pugiXML/pugixml.cpp
|
2012-09-10 18:48:00 +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:
|
|
|
|
rm -rf src/*o src/components/*o $(EXECUTABLE)
|