-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
70 lines (52 loc) · 1.41 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
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
#Compiler
cc = g++
#Flags
cflags = -c
#Files in the project
#Lists implementations with ADTList
lists = ADTList.o FSArray.o DSArray.o SLNode.o SLList.o DLNode.o DLList.o
#Stacks implementations with ADTStack
stacks = ADTStack.o SLStack.o
#Queues implementations with ADTQueue
queues = ADTQueue.o SLQueue.o
#Other files in the project
files = Object.o $(lists) $(stacks) $(queues) Main.o
#Classes
classes = Object.o $(lists) $(stacks) $(queues)
#Remove all the *.o files
clean: Test
rm $(files)
#Creates executable file
Test: Main.o
$(cc) $(files) -o Test
#Compiling Main funcion with Nombre class
Main.o: $(classes)
$(cc) $(cflags) Main.cpp
#ADTQueue ans its implementatios
ADTQueue.o: Object.o
$(cc) $(cflags) ADTQueue.cpp
SLQueue.o: ADTQueue.o SLNode.o Object.o
$(cc) $(cflags) SLQueue.cpp
#ADTStack and its implementations
ADTStack.o: Object.o
$(cc) $(cflags) ADTStack.cpp
SLStack.o: ADTStack.o Object.o
$(cc) $(cflags) SLStack.cpp
#ADTList and its implementations
ADTList.o: Object.o
$(cc) $(cflags) ADTList.cpp
SLList.o: ADTList.o SLNode.o Object.o
$(cc) $(cflags) SLList.cpp
SLNode.o: Object.o
$(cc) $(cflags) SLNode.cpp
DLList.o: ADTList.o DLNode.o Object.o
$(cc) $(cflags) DLList.cpp
DLNode.o: Object.o
$(cc) $(cflags) DLNode.cpp
FSArray.o: ADTList.o Object.o
$(cc) $(cflags) FSArray.cpp
DSArray.o: ADTList.o Object.o
$(cc) $(cflags) DSArray.cpp
#Object class
Object.o:
$(cc) $(cflags) Object.cpp