-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (21 loc) · 715 Bytes
/
makefile
File metadata and controls
31 lines (21 loc) · 715 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
CFLAGS = -Wall -g -std=c99 -D _POSIX_C_SOURCE=200809L -Werror
all: main.o keyboard.o sender.o receiver.o screen.o list.o listmanager.o shutdownmanager.o
gcc $(CFLAGS) main.o keyboard.o sender.o receiver.o screen.o list.o listmanager.o shutdownmanager.o -lpthread -o s-talk
main.o: main.c
gcc $(CFLAGS) -c main.c
keyboard.o: keyboard.c
gcc $(CFLAGS) -c keyboard.c
sender.o: sender.c
gcc $(CFLAGS) -c sender.c
receiver.o: receiver.c
gcc $(CFLAGS) -c receiver.c
screen.o: screen.c
gcc $(CFLAGS) -c screen.c
list.o: list.c
gcc $(CFLAGS) -c list.c
listmanager.o: listmanager.c
gcc $(CFLAGS) -c listmanager.c
shutdownmanager.o: shutdownmanager.c
gcc $(CFLAGS) -c shutdownmanager.c
clean:
rm s-talk *.o