-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
44 lines (34 loc) · 1.25 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
42
43
44
bin/testListArray: testListArray.cpp ListArray.h List.h
mkdir -p bin
g++ -o bin/testListArray testListArray.cpp ListArray.h
Point2D.o: Point2D.h Point2D.cpp
g++ -c Point2D.cpp
Shape.o: Shape.h Shape.cpp
g++ -c Shape.cpp
bin/testPoint2D: testPoint2D.cpp Point2D.o
g++ -c testPoint2D.cpp
mkdir -p bin
g++ -o bin/testPoint2D testPoint2D.o Point2D.o
Circle.o: Circle.h Circle.cpp Point2D.o Shape.o
g++ -c Circle.cpp
bin/testCircle: testCircle.cpp Circle.o Shape.o Point2D.o
g++ -c testCircle.cpp
mkdir -p bin
g++ -o bin/testCircle testCircle.o Circle.o Shape.o Point2D.o
Rectangle.o: Rectangle.h Rectangle.cpp Point2D.o Shape.o
g++ -c Rectangle.cpp
bin/testRectangle: testRectangle.cpp Rectangle.o Shape.o Point2D.o
g++ -c testRectangle.cpp
mkdir -p bin
g++ -o bin/testRectangle testRectangle.o Rectangle.o Shape.o Point2D.o
Square.o: Square.h Square.cpp Rectangle.o Point2D.o Shape.o
g++ -c Square.cpp
bin/testSquare:
g++ -c testSquare.cpp
mkdir -p bin
g++ -o bin/testSquare testSquare.o Square.o Rectangle.o Shape.o Point2D.o
bin/testDrawing: testDrawing.cpp Drawing.o Square.o Rectangle.o Circle.o Shape.o Point2D.o
mkdir -p bin
g++ -o bin/testDrawing testDrawing.cpp Drawing.o Square.o Rectangle.o Circle.o Shape.o Point2D.o
clean:
rm -r *.o *.gch bin