-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
35 lines (25 loc) · 873 Bytes
/
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
CC = g++
CFLAGS = -g
LDFLAGS = -lm
simulation.o :
${CC} ${CFLAGS} -c src/simulation.cpp
mobile.o :
${CC} ${CFLAGS} -c src/mobile.cpp
basestation.o :
${CC} ${CFLAGS} -c src/basestation.cpp
q_learning.o :
${CC} ${CFLAGS} -c src/q_learning.cpp
event_handler.o :
${CC} ${CFLAGS} -c src/event_handler.cpp
payloadType.o :
${CC} ${CFLAGS} -c src/payloadType.cpp
scheduler.o :
${CC} ${CFLAGS} -c src/scheduler.cpp
event.o :
${CC} ${CFLAGS} -c src/event.cpp
all : event.o event_handler.o payloadType.o scheduler.o q_learning.o basestation.o mobile.o simulation.o
${CC} ${CFLAGS} q_learning.o basestation.o mobile.o simulation.o event_handler.o payloadType.o scheduler.o event.o ${LDFLAGS} -o bin/simulation
mv event_handler.o payloadType.o scheduler.o q_learning.o basestation.o mobile.o simulation.o bin
rm -rf *.o
clean :
rm -rf *.o bin/*.o bin/simulation