-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
32 lines (23 loc) · 745 Bytes
/
makefile
File metadata and controls
32 lines (23 loc) · 745 Bytes
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
FLAGS = -g -Wall -Wextra
vpath %.c src/
vpath %.h head/
main: source destination medium
source: source.c utils.o fifo.o
@echo "Construction de source..."
@gcc src/source.c obj/utils.o obj/fifo.o $(FLAGS) -o "source"
@echo "Source construite!"
destination: destination.c utils.o fifo.o
@echo "Construction de destination..."
@gcc src/destination.c obj/utils.o obj/fifo.o $(FLAGS) -o "destination"
@echo "Destination construite!"
%.o: %.c %.h
@mkdir -p obj/
@gcc $(FLAGS) -c $< -o ./obj/$@
medium:
@if [ -x ./getMedium.sh ]; then \
./getMedium.sh; \
else \
echo "Vous n'avez pas les permissions pour executer getMedium.sh"; \
fi
clean:
rm -rf doc/* obj/* destination "source" medium.py *.o