forked from benkant/chord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
39 lines (27 loc) · 833 Bytes
/
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
##############################################################################
# Chord implementation
##############################################################################
CC=gcc -ansi -Wall -pedantic
LN=-lm
all: finger.o hash.o key.o node.o ring.o util.o app_driver.o
$(CC) finger.o hash.o key.o ring.o app_driver.o util.o $(LN) -o chord
finger.o:
$(CC) -c finger.c
hash.o:
$(CC) -c hash.c
key.o:
$(CC) -c key.c
node.o:
$(CC) -c node.c
ring.o:
$(CC) -c ring.c
util.o:
$(CC) -c util.c
app_driver.o:
$(CC) -c app_driver.c
debug:
$(CC) -g finger.c hash.c key.c node.c ring.c app_driver.c util.c -DDEBUG_ON=1 $(LN) -o chord_debug
archive:
zip chord.zip README finger.c finger.h hash.c hash.h key.c key.h node.c node.h ring.c ring.h util.c app_driver.c
clean:
rm -rf *.o chord chord.zip chord_debug* core