-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (23 loc) · 708 Bytes
/
Makefile
File metadata and controls
38 lines (23 loc) · 708 Bytes
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
#declare the variable
CC=g++
#this target will compile all the files
all: smartcity
CFLAGS = -c -Wall
smartcity: Main.o Point.o Square.o Event.o Utility.o UtilityDecision.o Users.o
$(CC) Main.o Point.o Square.o Event.cpp Utility.o UtilityDecision.o Users.o -o smartcity.out
Main.o: Main.cpp
$(CC) $(CFLAGS) Main.cpp -g
Point.o: Point.cpp
$(CC) $(CFLAGS) Point.cpp -g
Square.o: Square.cpp
$(CC) $(CFLAGS) Square.cpp -g
Event.o: Event.cpp
$(CC) $(CFLAGS) Event.cpp -g
Utility.o: Utility.cpp
$(CC) $(CFLAGS) Utility.cpp -g
UtilityDecision.o: UtilityDecision.cpp
$(CC) $(CFLAGS) UtilityDecision.cpp -g
Users.o: Users.cpp
$(CC) $(CFLAGS) Users.cpp -g
clean:
rm -rf *o smartcity