This commit is contained in:
2025-05-06 15:08:30 +01:00
commit e2e27c3677
23 changed files with 863 additions and 0 deletions

20
makefile Normal file
View File

@@ -0,0 +1,20 @@
CXX = g++
LDFLAGS = `sdl2-config --libs` -l SDL2_ttf -l SDL2_mixer
CXXFLAGS = `sdl2-config --cflags` -pedantic -O2 -std=c++17 -lX11 -lstdc++fs -I include
SRC = $(wildcard src/*.cpp)
OBJ = $(addprefix build/, $(notdir $(SRC:.cpp=.o)))
TARGET = build/x86_64/main.x86_64
all: clean dirs $(TARGET)
dirs:
@mkdir -p build/x86_64
$(TARGET): $(OBJ)
$(CXX) -o $@ $^ $(LDFLAGS)
build/%.o: src/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS)
clean:
@rm -f $(OBJ) $(TARGET)