mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
26 lines
1 KiB
Makefile
26 lines
1 KiB
Makefile
CXX=g++
|
|
CXXFLAGS=-Wall -g -O2
|
|
LDFLAGS=
|
|
|
|
SRC_SOURCES=AudioManager.cpp InputConfig.cpp Log.cpp FolderData.cpp Font.cpp GameData.cpp GuiComponent.cpp InputManager.cpp main.cpp MathExp.cpp Renderer.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/GuiInputConfig.cpp components/GuiMenu.cpp components/GuiTheme.cpp pugiXML/pugixml.cpp
|
|
SOURCES=$(addprefix src/,$(SRC_SOURCES))
|
|
OBJECTS=$(SOURCES:.cpp=.o)
|
|
DEPS=$(SOURCES:.cpp=.d)
|
|
EXECUTABLE=emulationstation
|
|
|
|
all: $(EXECUTABLE)
|
|
|
|
$(EXECUTABLE): $(DEPS) $(OBJECTS)
|
|
$(CXX) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
|
|
|
|
include $(wildcard src/*.d src/components/*.d src/pugiXML/*.d)
|
|
|
|
%.d: %.cpp
|
|
$(SHELL) -ec '$(CXX) -M $(CPPFLAGS) $< | tr -d "\\\\\n" | sed -e "s|$(*F).o|$(*D)/& $@|" -e "s|: \(.*\)|: \$$\(wildcard \1\)|" > $@'
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
rm -f src/*.[do] src/components/*.[do] src/pugiXML/*.[do] $(EXECUTABLE)
|
|
|