ES-DE/Makefile

19 lines
347 B
Makefile

CC=g++
CFLAGS=-c -Wall
LDFLAGS=-lSDL
SRCSOURCES=main.cpp Renderer.cpp GuiComponent.cpp
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 $(EXECUTABLE)