-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (32 loc) · 847 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
36
37
38
39
40
41
42
CC := gcc
CCFLAGS := -lm
TARGETS := main.c policy.c workload.c fort.c gen_csv.c
help:
@echo make all : To execute all commands and generate output
@echo make build : To build all the files
@echo make exec : To execute the files after build
@echo make plot : To generate the plots for performace comparision
@echo make check : To run the checker file
@echo make clean : To remove the build files
all:
@make check
@make build
@make exec
@make plot
@make clean
build:
@echo "Building ..."
@$(CC) -o policies $(TARGETS) $(CCFLAGS)
@echo "Build Complete"
exec:
@echo "Executing the build files ... "
@ ./policies
plot:
@echo "Creating Plots ..."
@python3 plot.py
@echo "Plots sucessfully created"
check:
@$(CC) -o checker checker.c policy.c $(CCFLAGS)
@./checker
clean:
@rm -rf policies checker