1 .PHONY: default all clean
3 include $(XSEG_HOME)/base.mk
7 #all: filed xseg sosd vlmcd mapperd
8 #all: filed xseg vlmcd mapperd
9 all: filed xseg mt-sosd dummy mt-vlmcd mapperd mt-mapperd pfiled monitor vlmc-xseg st-vlmcd mt-pfiled
12 filed: filed.c $(BASE)/xseg/xseg.h
13 $(CC) $(CFLAGS) -o $@ $< $(INC) -L$(LIB) -lxseg -lpthread
15 vlmcd: vlmcd.c common.c $(BASE)/xseg/xseg.h $(BASE)/xseg/protocol.h common.h
16 $(CC) $(CFLAGS) -o $@ $< common.c $(INC) -L$(LIB) -lxseg
18 mapperd: mapperd.c common.c $(BASE)/xseg/xseg.h $(BASE)/xseg/protocol.h common.h
19 $(CC) $(CFLAGS) -o $@ $< common.c $(INC) -L$(LIB) -lxseg
21 sosd: sosd.c $(BASE)/xseg/xseg.h $(BASE)/util_libs/user/sos/sos.h
22 $(CC) $(CFLAGS) -o $@ $< $(INC) -L$(LIB) -lxseg -lsos
24 xseg: xseg-tool.c $(BASE)/xseg/xseg.h
25 $(CC) $(CFLAGS) -o $@ $< $(BASE)/xtypes/xheap.c $(INC) -L$(LIB) -lxseg
27 mt-sosd: mt-sosd.c peer.c peer.h
28 $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lrados -lpthread -DMT
30 dummy: dummy.c peer.c peer.h
31 $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
33 monitor: monitor.c peer.c peer.h
34 $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
36 mt-vlmcd: mt-vlmcd.c peer.c peer.h $(BASE)/xseg/protocol.h
37 $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
39 mt-pfiled: mt-pfiled.c peer.c peer.h $(BASE)/xseg/protocol.h
40 $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
42 st-vlmcd: mt-vlmcd.c peer.c peer.h $(BASE)/xseg/protocol.h
43 $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg
45 mt-mapperd: mt-mapperd.c peer.c peer.h $(BASE)/xseg/protocol.h
46 $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -DST_THREADS -lxseg -lst -lcrypto
48 pfiled: pfiled.c common.c $(BASE)/xseg/xseg.h $(BASE)/xseg/protocol.h common.h
49 $(CC) $(CFLAGS) -o $@ $< common.c $(INC) -L$(LIB) -lxseg -lpthread
51 vlmc-xseg: vlmc-tool.c $(BASE)/xseg/xseg.h
52 $(CC) $(CFLAGS) -o $@ $< $(INC) -L$(LIB) -lxseg
55 rm -f filed xseg sosd vlmcd mapperd mt-sosd dummy monitor mt-mapperd \
56 pfiled vlmc-xseg st-vlmcd mt-vlmcd mt-pfiled