This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
Minesweeper/Makefile

28 lines
632 B
Makefile
Raw Permalink Normal View History

2024-05-08 12:50:29 -05:00
# Variables
LIBS:= -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf
TARGET:= minesweeper
# Instructions
build: compile link run
compile:
g++ -c -I include source/engine/vectors.cpp -o bin/vectors.o
g++ -c -I include source/engine/engine.cpp -o bin/engine.o
g++ -c -I include source/game/tilemap.cpp -o bin/tilemap.o
g++ -c -I include source/game/navbar.cpp -o bin/navbar.o
g++ -c -I include source/game/message.cpp -o bin/message.o
g++ -c -I include source/main.cpp -o bin/main.o
link:
g++ bin/*.o -L lib $(LIBS) -o build/$(TARGET)
cpydat:
cp data -r build
run:
./build/$(TARGET)
# Complimentary
clean:
rm build/*
rm bin/*