2012-07-19 01:14:17 +00:00
|
|
|
CC=g++
|
|
|
|
CFLAGS=-c -Wall
|
2012-07-20 16:14:09 +00:00
|
|
|
LDFLAGS=-lSDL -lSDL_ttf -lboost_system -lboost_filesystem
|
|
|
|
SRCSOURCES=main.cpp Renderer.cpp Renderer_draw.cpp GuiComponent.cpp InputManager.cpp SystemData.cpp GameData.cpp components/GuiTitleScreen.cpp components/GuiList.cpp components/GuiGameList.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)
|