[go: up one dir, main page]

Menu

[r73]: / server / Makefile  Maximize  Restore  History

Download this file

27 lines (17 with data), 503 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 += -lserver -lrouting -lcrypto -lrpc -ludt -lclient -ldl
OBJS = conf.o log.o kb.o fs.o index.o server.o serv_file.o serv_spe.o
all: libserver.so libserver.a sector
%.o: %.cpp server.h
$(C++) -fPIC $(CCFLAGS) $< -c
libserver.so: $(OBJS)
$(C++) -shared -o $@ $^
libserver.a: $(OBJS)
ar -rcs $@ $^
sector: sector.cpp
$(C++) sector.cpp -o sector $(CCFLAGS) $(LDFLAGS)
clean:
rm -f *.o *.so *.a sector
install:
mv libserver.so libserver.a ../lib