forked from shaswata56/Taos-Adventure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (24 loc) · 751 Bytes
/
Makefile
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
LIBS=-lsfml-graphics -lsfml-audio -lsfml-network -lsfml-window -lsfml-system
all:
@echo "Compiling Sources..."
g++ -c "Source/Taos-Adventure.cpp" -o Taos-Adventure.o
@echo "Linking Libraries..."
g++ -o Taos-Adventure Taos-Adventure.o $(LIBS)
@echo "Cleaning up..."
rm Taos-Adventure.o
gdb:
@echo "** Building with debugging flag"
g++ -c -g "Source/Taos-Adventure.cpp" -o Taos-Adventure.o
g++ -o Taos-Adventure Taos-Adventure.o $(LIBS)
rm Taos-Adventure.o
clean:
@echo "** Removing object files and executable..."
rm -f Taos-Adventure
install:
@echo '** Installing...'
sudo cp Taos-Adventure /usr/bin
sudo cp -r Resource /usr/bin
uninstall:
@echo '** Uninstalling...'
sudo rm /usr/bin/Taos-Adventure
sudo rm -rf /usr/bin/Resource