forked from CIS3250-F21/CIS3250-ClassProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
127 lines (86 loc) · 7.76 KB
/
Copy pathmakefile
File metadata and controls
127 lines (86 loc) · 7.76 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
CC = clang
CFLAGS = -std=c99 -Wall -pedantic
EXECS = final
O_FILES = ReadInput/ReadInput.o GlobalScaling/GlobalScaling.o ScalingInX/ScalingInX.o ScalingInY/ScalingInY.o ScalingInZ/ScalingInZ.o RotationInX/RotationInX.o RotationInY/RotationInY.o RotationInZ/RotationInZ.o XYZTranslation/XYZTranslation.o ReflectionInXPlane/ReflectionInXPlane.o ReflectionInYPlane/ReflectionInYPlane.o ReflectionInZPlane/ReflectionInZPlane.o ShearInX/ShearInX.o ShearInY/ShearInY.o ShearInZ/ShearInZ.o XYZOrthographicProjection/XYZOrthographicProjection.o OutputResults/OutputResults.o ReadInput/ReadInputTests.o GlobalScaling/GlobalScalingTests.o ScalingInX/ScalingInXTests.o ScalingInY/ScalingInYTests.o ScalingInZ/ScalingInZTests.o RotationInX/RotationInXTests.o RotationInY/RotationInYTests.o RotationInZ/RotationInZTests.o XYZTranslation/XYZTranslationTests.o ReflectionInXPlane/ReflectionInXPlaneTests.o ReflectionInYPlane/ReflectionInYPlaneTests.o ReflectionInZPlane/ReflectionInZPlaneTests.o ShearInX/ShearInXTests.o ShearInY/ShearInYTests.o ShearInZ/ShearInZTests.o XYZOrthographicProjection/XYZOrthographicProjectionTests.o OutputResults/OutputResultsTests.o
H_FILES = main.h functionIncludes.h testIncludes.h
all: $(EXECS)
clean:
rm $(EXECS) **/*.o
%: %.o
%: %.c
%.o: %.c $(H_FILES)
$(CC) -c $(CFLAGS) $< -o $@
final: main.o $(O_FILES) $(H_FILES)
$(CC) $(CFLAGS) main.o $(O_FILES) -o final -lm
main.o: main.c $(H_FILES)
$(CC) $(CFLAGS) -c main.c -o main.o
#Group O Files
ReadInput/ReadInput.o: ReadInput/ReadInput.c ReadInput/ReadInput.h main.h
$(CC) $(CFLAGS) -c ReadInput/ReadInput.c -o ReadInput/ReadInput.o
GlobalScaling/GlobalScaling.o: GlobalScaling/GlobalScaling.c GlobalScaling/GlobalScaling.h main.h
$(CC) $(CFLAGS) -c GlobalScaling/GlobalScaling.c -o GlobalScaling/GlobalScaling.o
ScalingInX/ScalingInX.o: ScalingInX/ScalingInX.c ScalingInX/ScalingInX.h main.h
$(CC) $(CFLAGS) -c ScalingInX/ScalingInX.c -o ScalingInX/ScalingInX.o
ScalingInY/ScalingInY.o: ScalingInY/ScalingInY.c ScalingInY/ScalingInY.h main.h
$(CC) $(CFLAGS) -c ScalingInY/ScalingInY.c -o ScalingInY/ScalingInY.o
ScalingInZ/ScalingInZ.o: ScalingInZ/ScalingInZ.c ScalingInZ/ScalingInZ.h main.h
$(CC) $(CFLAGS) -c ScalingInZ/ScalingInZ.c -o ScalingInZ/ScalingInZ.o
RotationInX/RotationInX.o: RotationInX/RotationInX.c RotationInX/RotationInX.h main.h
$(CC) $(CFLAGS) -c RotationInX/RotationInX.c -o RotationInX/RotationInX.o
RotationInY/RotationInY.o: RotationInY/RotationInY.c RotationInY/RotationInY.h main.h
$(CC) $(CFLAGS) -c RotationInY/RotationInY.c -o RotationInY/RotationInY.o
RotationInZ/RotationInZ.o: RotationInZ/RotationInZ.c RotationInZ/RotationInZ.h main.h
$(CC) $(CFLAGS) -c RotationInZ/RotationInZ.c -o RotationInZ/RotationInZ.o
XYZTranslation/XYZTranslation.o: XYZTranslation/XYZTranslation.c XYZTranslation/XYZTranslation.h main.h
$(CC) $(CFLAGS) -c XYZTranslation/XYZTranslation.c -o XYZTranslation/XYZTranslation.o
ReflectionInXPlane/ReflectionInXPlane.o: ReflectionInXPlane/ReflectionInXPlane.c ReflectionInXPlane/ReflectionInXPlane.h main.h
$(CC) $(CFLAGS) -c ReflectionInXPlane/ReflectionInXPlane.c -o ReflectionInXPlane/ReflectionInXPlane.o
YPlaneReflection/YPlaneReflection.o: YPlaneReflection/YPlaneReflection.c YPlaneReflection/YPlaneReflection.h main.h
$(CC) $(CFLAGS) -c YPlaneReflection/YPlaneReflection.c -o YPlaneReflection/YPlaneReflection.o
ReflectionInZPlane/ReflectionInZPlane.o: ReflectionInZPlane/ReflectionInZPlane.c ReflectionInZPlane/ReflectionInZPlane.h main.h
$(CC) $(CFLAGS) -c ReflectionInZPlane/ReflectionInZPlane.c -o ReflectionInZPlane/ReflectionInZPlane.o
ShearInX/ShearInX.o: ShearInX/ShearInX.c ShearInX/ShearInX.h main.h
$(CC) $(CFLAGS) -c ShearInX/ShearInX.c -o ShearInX/ShearInX.o
ShearInY/ShearInY.o: ShearInY/ShearInY.c ShearInY/ShearInY.h main.h
$(CC) $(CFLAGS) -c ShearInY/ShearInY.c -o ShearInY/ShearInY.o
ShearInZ/ShearInZ.o: ShearInZ/ShearInZ.c ShearInZ/ShearInZ.h main.h
$(CC) $(CFLAGS) -c ShearInZ/ShearInZ.c -o ShearInZ/ShearInZ.o
XYZOrthographicProjection/XYZOrthographicProjection.o: XYZOrthographicProjection/XYZOrthographicProjection.c XYZOrthographicProjection/XYZOrthographicProjection.h main.h
$(CC) $(CFLAGS) -c XYZOrthographicProjection/XYZOrthographicProjection.c -o XYZOrthographicProjection/XYZOrthographicProjection.o
OutputResults/OutputResults.o: OutputResults/OutputResults.c OutputResults/OutputResults.h main.h
$(CC) $(CFLAGS) -c OutputResults/OutputResults.c -o OutputResults/OutputResults.o
#Group Test O Files
ReadInput/ReadInputTests.o: ReadInput/ReadInputTests.c ReadInput/ReadInputTests.h main.h
$(CC) $(CFLAGS) -c ReadInput/ReadInputTests.c -o ReadInput/ReadInputTests.o
GlobalScaling/GlobalScalingTests.o: GlobalScaling/GlobalScalingTests.c GlobalScaling/GlobalScalingTests.h main.h
$(CC) $(CFLAGS) -c GlobalScaling/GlobalScalingTests.c -o GlobalScaling/GlobalScalingTests.o
ScalingInX/ScalingInXTests.o: ScalingInX/ScalingInXTests.c ScalingInX/ScalingInXTests.h main.h
$(CC) $(CFLAGS) -c ScalingInX/ScalingInXTests.c -o ScalingInX/ScalingInXTests.o
ScalingInY/ScalingInYTests.o: ScalingInY/ScalingInYTests.c ScalingInY/ScalingInYTests.h main.h
$(CC) $(CFLAGS) -c ScalingInY/ScalingInYTests.c -o ScalingInY/ScalingInYTests.o
ScalingInZ/ScalingInZTests.o: ScalingInZ/ScalingInZTests.c ScalingInZ/ScalingInZTests.h main.h
$(CC) $(CFLAGS) -c ScalingInZ/ScalingInZTests.c -o ScalingInZ/ScalingInZTests.o
RotationInX/RotationInXTests.o: RotationInX/RotationInXTests.c RotationInX/RotationInXTests.h main.h
$(CC) $(CFLAGS) -c RotationInX/RotationInXTests.c -o RotationInX/RotationInXTests.o
RotationInY/RotationInYTests.o: RotationInY/RotationInYTests.c RotationInY/RotationInYTests.h main.h
$(CC) $(CFLAGS) -c RotationInY/RotationInYTests.c -o RotationInY/RotationInYTests.o
RotationInZ/RotationInZTests.o: RotationInZ/RotationInZTests.c RotationInZ/RotationInZTests.h main.h
$(CC) $(CFLAGS) -c RotationInZ/RotationInZTests.c -o RotationInZ/RotationInZTests.o
XYZTranslation/XYZTranslationTests.o: XYZTranslation/XYZTranslationTests.c XYZTranslation/XYZTranslationTests.h main.h
$(CC) $(CFLAGS) -c XYZTranslation/XYZTranslationTests.c -o XYZTranslation/XYZTranslationTests.o
ReflectionInXPlane/ReflectionInXPlaneTests.o: ReflectionInXPlane/ReflectionInXPlaneTests.c ReflectionInXPlane/ReflectionInXPlaneTests.h main.h
$(CC) $(CFLAGS) -c ReflectionInXPlane/ReflectionInXPlaneTests.c -o ReflectionInXPlane/ReflectionInXPlaneTests.o
YPlaneReflection/YPlaneReflectionTests.o: YPlaneReflection/YPlaneReflectionTests.c YPlaneReflection/YPlaneReflectionTests.h main.h
$(CC) $(CFLAGS) -c YPlaneReflection/YPlaneReflectionTests.c -o YPlaneReflection/YPlaneReflectionTests.o
ReflectionInZPlane/ReflectionInZPlaneTests.o: ReflectionInZPlane/ReflectionInZPlaneTests.c ReflectionInZPlane/ReflectionInZPlaneTests.h main.h
$(CC) $(CFLAGS) -c ReflectionInZPlane/ReflectionInZPlaneTests.c -o ReflectionInZPlane/ReflectionInZPlaneTests.o
ShearInX/ShearInXTests.o: ShearInX/ShearInXTests.c ShearInX/ShearInXTests.h main.h
$(CC) $(CFLAGS) -c ShearInX/ShearInXTests.c -o ShearInX/ShearInXTests.o
ShearInY/ShearInYTests.o: ShearInY/ShearInYTests.c ShearInY/ShearInYTests.h main.h
$(CC) $(CFLAGS) -c ShearInY/ShearInYTests.c -o ShearInY/ShearInYTests.o
ShearInZ/ShearInZTests.o: ShearInZ/ShearInZTests.c ShearInZ/ShearInZTests.h main.h
$(CC) $(CFLAGS) -c ShearInZ/ShearInZTests.c -o ShearInZ/ShearInZTests.o
XYZOrthographicProjection/XYZOrthographicProjectionTests.o: XYZOrthographicProjection/XYZOrthographicProjectionTests.c XYZOrthographicProjection/XYZOrthographicProjectionTests.h main.h
$(CC) $(CFLAGS) -c XYZOrthographicProjection/XYZOrthographicProjectionTests.c -o XYZOrthographicProjection/XYZOrthographicProjectionTests.o
OutputResults/OutputResultsTests.o: OutputResults/OutputResultsTests.c OutputResults/OutputResultsTests.h main.h
$(CC) $(CFLAGS) -c OutputResults/OutputResultsTests.c -o OutputResults/OutputResultsTests.o