-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile2
16 lines (16 loc) · 838 Bytes
/
Makefile2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
run: Main.o Section.o Lane.o Intersection.o Vehicle.o TrafficSignal.o
g++ Main.o Section.o Lane.o Intersection.o Vehicle.o TrafficSignal.o -o run
Main.o: Main.cpp Section.h Section.cpp Lane.h Lane.cpp TrafficSignal.h TrafficSignal.cpp Intersection.h Intersection.cpp Vehicle.h Vehicle.cpp Random.h
g++ -std=gnu++11 Main.cpp Section.cpp Lane.cpp TrafficSignal.cpp Intersection.cpp Vehicle.cpp
Section.o: Section.cpp Section.h
g++ Section.cpp
Lane.o: Lane.cpp Lane.h Section.h Intersection.h TrafficSignal.h
g++ Lane.cpp
Intersection.o: Intersection.cpp Intersection.h Section.h
g++ Intersection.cpp
Vehicle.o: Vehicle.cpp Vehicle.h Lane.h TrafficSignal.h
g++ Vehicle.cpp
TrafficSignal.o: TrafficSignal.cpp TrafficSignal.h
g++ TrafficSignal.cpp
clean:
/bin/rm -f Main.o Section.o Lane.o Intersection.o Vehicle.o TrafficSignal.o run