-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 1008 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SRC_FILES = src/player.cpp src/helper.cpp src/tile.cpp
OBJ_FILES = $(SRC_FILES:.cpp=.o)
compile: render.o $(OBJ_FILES)
g++ render.o $(OBJ_FILES) -lsfml-graphics -lsfml-window -lsfml-system
run:
./a.out
render.o:render.cpp script.cpp Include/player.hpp Include/tile.hpp Include/helper.hpp Include/values.hpp
g++ -c render.cpp -o render.o
src/player.o:src/player.cpp Include/player.hpp Include/values.hpp
g++ -c src/player.cpp -o src/player.o
src/helper.o:src/helper.cpp Include/tile.hpp Include/player.hpp Include/helper.hpp Include/values.hpp
g++ -c src/helper.cpp -o src/helper.o
src/tile.o:src/tile.cpp Include/tile.hpp Include/values.hpp
g++ -c src/tile.cpp -o src/tile.o
setup:
sudo apt update
sudo apt install libsfml-dev
image: utils/image_merger.o
@read -p "This will modify textues? (y/n) " ans; \
if [ "$$ans" != "y" ]; then \
echo "Aborted."; \
exit 1; \
fi
g++ utils/image_merger.o -lsfml-graphics -lsfml-window -lsfml-system
./a.out
rm a.out