-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (36 loc) · 1.44 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
# Variable declaration.
CC = gcc
flags = -c -Wall
executableName = test
driver = driverMain
intermediateOutputFile = periodicSchedule.txt
staticOutputHumanReadableFile = periodicSchedule_humanReadable.txt
outputFile = outputFile.txt
# Make
all: $(driver).o driverPeriodicTask.o printInfo.o findFrame.o frameConditions.o createTaskInstances.o inputs.o driverNonPeriodicJob.o sort.o scheduler.o utilityFunctions.o
$(CC) $(driver).o driverPeriodicTask.o printInfo.o findFrame.o frameConditions.o createTaskInstances.o inputs.o driverNonPeriodicJob.o sort.o scheduler.o utilityFunctions.o -o $(executableName)
$(driver).o: $(driver).c
$(CC) $(flags) $(driver).c
driverPeriodicTask.o: driverPeriodicTask.c
$(CC) $(flags) driverPeriodicTask.c
driverNonPeriodicJob.o: driverNonPeriodicJob.c
$(CC) $(flags) driverNonPeriodicJob.c
scheduler.o: scheduler.c
$(CC) $(flags) scheduler.c
sort.o: sort.c
$(CC) $(flags) sort.c
printInfo.o: printInfo.c
$(CC) $(flags) printInfo.c
findFrame.o: findFrame.c
$(CC) $(flags) findFrame.c
frameConditions.o: frameConditions.c
$(CC) $(flags) frameConditions.c
createTaskInstances.o: createTaskInstances.c
$(CC) $(flags) createTaskInstances.c
inputs.o: inputs.c
$(CC) $(flags) inputs.c
utilityFunctions.o: utilityFunctions.c
$(CC) $(flags) utilityFunctions.c
# To remove all .o files and to clean the directory.
clean:
rm -f *.o $(executableName) $(outputFile) $(intermediateOutputFile) $(staticOutputHumanReadableFile)