[go: up one dir, main page]

Menu

[r1]: / client / Makefile  Maximize  Restore  History

Download this file

27 lines (17 with data), 447 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 += -lclient -lrouting -lcrypto -lrpc -ludt -llog -lsql -lmeta -lstore
OBJS = fsclient.o
all: libclient.so libclient.a test
%.o: %.cpp %.h
$(C++) -fPIC $(CCFLAGS) $< -c
libclient.so: $(OBJS)
$(C++) -shared -o $@ $^
libclient.a: $(OBJS)
ar -rcs $@ $^
test: test.cpp
$(C++) test.cpp -o test $(CCFLAGS) $(LDFLAGS)
clean:
rm -f *.o *.so *.a test
install:
mv libclient.so libclient.a ../lib