-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (14 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
N-Puzzle: obj/main.o obj/NPuzzle.o obj/SearchAlgorithm.o obj/Configuration.o obj/Board.o
g++ -std=c++11 -o N-Puzzle obj/main.o obj/NPuzzle.o obj/SearchAlgorithm.o obj/Configuration.o obj/Board.o -Wall
obj/main.o: src/main.cpp src/Board.cpp src/Configuration.cpp src/SearchAlgorithm.cpp src/NPuzzle.cpp src/headers/Board.h src/headers/Configuration.h src/headers/SearchAlgorithm.h src/headers/NPuzzle.h
g++ -std=c++11 -o obj/main.o -c src/main.cpp -Wall
obj/NPuzzle.o: src/NPuzzle.cpp src/Board.cpp src/Configuration.cpp src/SearchAlgorithm.cpp src/headers/Board.h src/headers/Configuration.h src/headers/SearchAlgorithm.h
g++ -std=c++11 -o obj/NPuzzle.o -c src/NPuzzle.cpp -Wall
obj/SearchAlgorithm.o: src/SearchAlgorithm.cpp src/Configuration.cpp src/headers/HeapComparator.h
g++ -std=c++11 -o obj/SearchAlgorithm.o -c src/SearchAlgorithm.cpp -Wall
obj/Configuration.o: src/Configuration.cpp src/Board.cpp src/headers/Configuration.h src/headers/Board.h
g++ -std=c++11 -o obj/Configuration.o -c src/Configuration.cpp -Wall
obj/Board.o: src/Board.cpp src/headers/Board.h
g++ -std=c++11 -o obj/Board.o -c src/Board.cpp -Wall
clean:
rm -f N-Puzzle src/*~ obj/*.o src/*\#