-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
41 lines (27 loc) · 1.17 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
ALLFILES = cubeMain.o cube.o cubeface.o extractLeft.o extractRight.o extractTop.o extractBottom.o extractFront.o extractBack.o fileHandler.o
CFLAGS = -g -Wall -c
HFILES = cubeface.h color.h extract.h extractLeft.h extractRight.h extractBack.h extractFront.h extractTop.h extractBottom.h fileHandler.h
main: ${ALLFILES}
g++ ${ALLFILES} -o main
cubeMain.o: cubeMain.cpp cube.h ${HFILES}
g++ ${CFLAGS} cubeMain.cpp
cube.o: cube.cpp cube.h ${HFILES}
g++ ${CFLAGS} cube.cpp
cubeface.o: cubeface.cpp ${HFILES}
g++ ${CFLAGS} cubeface.cpp
extractLeft.o: extractLeft.cpp extractLeft.h ${HFILES}
g++ ${CFLAGS} extractLeft.cpp
extractRight.o: extractRight.cpp extractRight.h ${HFILES}
g++ ${CFLAGS} extractRight.cpp
extractTop.o: extractTop.cpp extractRight.h ${HFILES}
g++ ${CFLAGS} extractTop.cpp
extractBottom.o: extractBottom.cpp extractBottom.h ${HFILES}
g++ ${CFLAGS} extractBottom.cpp
extractFront.o: extractFront.cpp extractFront.h ${HFILES}
g++ ${CFLAGS} extractFront.cpp
extractBack.o: extractBack.cpp extractBack.h ${HFILES}
g++ ${CFLAGS} extractBack.cpp
fileHandler.o: fileHandler.cpp fileHandler.h
g++ ${CFLAGS} fileHandler.cpp
clean:
rm -r ${ALLFILES} main *.txt