-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
20 lines (20 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
default: clean utils.o cpu_logger cpu_logger_html cpu_logger_avg
utils.o:
gcc -c -O3 -Os -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result utils.c -o utils.o
-diet -Os gcc -c -O3 -Os -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result utils.c -o utils.o
cpu_logger:
-gcc -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result -O3 -Os cpu_logger.c utils.o -o cpu_logger
-diet -Os gcc -static -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result -O3 -Os utils.o cpu_logger.c -o cpu_logger
-elftrunc cpu_logger cpu_logger
cpu_logger_html:
-gcc -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result -O3 -Os html.c utils.o -o cpu_logger_html
-diet -Os gcc -static -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result -O3 -Os utils.o html.c -o cpu_logger_html
-elftrunc cpu_logger_html cpu_logger_html
cpu_logger_avg:
-gcc -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result -O3 -Os avg.c utils.o -o cpu_logger_avg
-diet -Os gcc -static -fcompare-debug-second -Wno-deprecated-declarations -Wno-unused-result -O3 -Os utils.o avg.c -o cpu_logger_avg
-elftrunc cpu_logger_avg cpu_logger_avg
clean:
-rm cpu_logger cpu_logger_html cpu_logger_avg utils.o
install: default
cp cpu_logger cpu_logger_html cpu_logger_avg /bin