[go: up one dir, main page]

Menu

[r91]: / routing / Makefile  Maximize  Restore  History

Download this file

27 lines (17 with data), 463 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
include ../Makefile.common
CCFLAGS +=
LDFLAGS += -lrouting -lcrypto -lrpc -ludt
OBJS = routing.o chord.o center.o
all: librouting.so librouting.a testchord
%.o: %.cpp %.h
$(C++) -fPIC $(CCFLAGS) $< -c
librouting.so: $(OBJS)
$(C++) -shared -o $@ $^
librouting.a: $(OBJS)
ar -rcs $@ $^
testchord: testchord.cpp
$(C++) testchord.cpp -o testchord $(CCFLAGS) $(LDFLAGS)
clean:
rm -f *.o *.so *.a testchord
install:
mv librouting.so librouting.a ../lib