forked from leopoldabgn/unbounded_int_C
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
85 lines (76 loc) · 1.5 KB
/
Copy pathMakefile
File metadata and controls
85 lines (76 loc) · 1.5 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Instuction: Run make. That's it.
CC=gcc
CFLAGS=-Wall -g -pedantic
all: message clean calc_unbounded_int test_unbounded
$(VERBOSE).SILENT:
message:
printf "\tWelcome to the Project C.\n"
sleep 1
printf "\t by Léopold & Paris\n"
sleep 0.25
printf "[LOG]: Starting compiling"
sleep 0.25
printf "."
sleep 0.25
printf "."
sleep 0.25
printf "."
sleep 0.25
printf "Ready!\n"
calc_unbounded_int: calc_unbounded_int.o unbounded_int.o
sleep 0.25
printf "[LOG]: Creating calc_unbounded"
sleep 0.25
printf "."
sleep 0.25
printf "."
sleep 0.25
printf "."
$(CC) $(CFLAGS) -o $@ $^ -lm
sleep 0.25
printf "Ok!\n"
calc_unbounded_int.o: calc_unbounded_int.c unbounded_int.h
$(CC) $(CFLAGS) -o $@ -c $< -lm
test_unbounded: test_unbounded.o unbounded_int.o
sleep 0.25
printf "[LOG]: Creating test_unbounded"
sleep 0.25
printf "."
sleep 0.25
printf "."
sleep 0.25
printf "."
$(CC) $(CFLAGS) -o $@ $^ -lm
sleep 0.25
printf "Ok!\n"
test_unbounded.o: test_unbounded.c unbounded_int.h
$(CC) $(CFLAGS) -o $@ -c $< -lm
unbounded_int.o: unbounded_int.c unbounded_int.h
$(CC) $(CFLAGS) -o $@ -c $< -lm
run_tests:
sleep 1
./test_unbounded
printf "\n\n\n"
run_calc:
printf "\t[LOG]: Running calculator"
sleep 0.25
printf "."
sleep 0.25
printf "."
sleep 0.25
printf ".\n"
./calc_unbounded_int
clean:
sleep 0.25
printf "[LOG]: Cleaning files"
sleep 0.25
printf "."
sleep 0.25
printf "."
sleep 0.25
printf "."
rm -f *.o
rm -f test_unbounded
rm -f calc_unbounded_int
sleep 0.25
printf 'OK!\n'