-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (25 loc) · 962 Bytes
/
makefile
File metadata and controls
37 lines (25 loc) · 962 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
33
34
35
36
37
CC=gcc
CFLAGS=-g -Wall -pedantic
all: chatter simpleserver simpleclient test hashmaptest linkedlisttest
arraylist.o: arraylist.c arraylist.h
gcc -c arraylist.c
linkedlist.o: linkedlist.c linkedlist.h
gcc -c linkedlist.c
hashmap.o: hashmap.c hashmap.h
gcc -c hashmap.c
gui.o: gui.c chatter.h
gcc -c gui.c
chatter: chatter.c chatter.h gui.o arraylist.o linkedlist.o hashmap.o
gcc $(CFLAGS) -o chatter chatter.c gui.o arraylist.o linkedlist.o hashmap.o -lncurses -lpthread
simpleclient: simpleclient.c
$(CC) $(CFLAGS) -o simpleclient simpleclient.c
simpleserver: simpleserver.c
$(CC) $(CFLAGS) -o simpleserver simpleserver.c -lpthread
test: test.c
$(CC) $(CFLAGS) -o test test.c
hashmaptest: hashmaptest.c hashmap.o
gcc -g -o hashmaptest hashmaptest.c hashmap.o
linkedlisttest: linkedlisttest.c linkedlist.o
gcc -g -o linkedlisttest linkedlisttest.c linkedlist.o
clean:
rm *.o chatter simpleserver simpleclient test hashmaptest linkedlisttest