-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·58 lines (39 loc) · 1.94 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
52
53
54
55
56
#
# Link
#
CFLAGS = -Wall -g
all: bin/audioserver bin/audioguest
bin/lecteur: obj/lecteur.o obj/audio.o
gcc $(CFLAGS) -o bin/lecteur obj/lecteur.o obj/audio.o
bin/audioserver: obj/audioserver.o obj/audio.o obj/socketlib.o
gcc $(CFLAGS) -o bin/audioserver obj/audioserver.o obj/audio.o obj/socketlib.o
bin/audioguest: obj/audioguest.o obj/audio.o obj/socketlib.o obj/ui.o obj/volume.o obj/visualiser.o obj/equaliser.o
gcc $(CFLAGS) -o bin/audioguest obj/audioguest.o obj/audio.o obj/socketlib.o obj/ui.o obj/volume.o obj/visualiser.o obj/equaliser.o obj/smplutils.o -lncurses -lfftw3 -lm
#
# objets of tp lists
#
obj/audio.o: src/audio.c
gcc $(CFLAGS) -I./include -c src/audio.c -o obj/audio.o
obj/lecteur.o: src/lecteur.c
gcc $(CFLAGS) -I./include -c src/lecteur.c -o obj/lecteur.o
obj/audioserver.o: src/audioserver.c include/audioserver.h include/guestutils.h
gcc $(CFLAGS) -I./include -c src/audioserver.c -o obj/audioserver.o
obj/audioguest.o: src/audioguest.c include/audioguest.h include/guestutils.h
gcc $(CFLAGS) -I./include -c src/audioguest.c -o obj/audioguest.o -lncurses -lfftw3 -lm
obj/socketlib.o: src/socketlib.c include/socketlib.h include/guestutils.h
gcc $(CFLAGS) -I./include -c src/socketlib.c -o obj/socketlib.o
obj/volume.o: src/volume.c include/volume.h include/guestutils.h
gcc $(CFLAGS) -I./include -c src/volume.c -o obj/volume.o
obj/ui.o: src/ui.c include/ui.h include/guestutils.h
gcc $(CFLAGS) -I./include -c src/ui.c -o obj/ui.o
obj/visualiser.o: src/visualiser.c include/visualiser.h obj/smplutils.o include/guestutils.h
gcc $(CFLAGS) -I./include -c src/visualiser.c -o obj/visualiser.o
obj/equaliser.o: src/equaliser.c include/equaliser.h obj/smplutils.o include/guestutils.h
gcc $(CFLAGS) -I./include -c src/equaliser.c -o obj/equaliser.o
obj/smplutils.o: src/smplutils.c include/smplutils.h include/guestutils.h
gcc $(CFLAGS) -I./include -c src/smplutils.c -o obj/smplutils.o
#
# remove files
#
clean :
rm obj/*.o bin/*