#all: filed xseg sosd vlmcd mapperd
#all: filed xseg vlmcd mapperd
-all: filed xseg mt-sosd dummy monitor
+all: filed xseg mt-sosd dummy mt-vlmcd mapperd mt-mapperd pfiled monitor vlmc-xseg st-vlmcd mt-pfiled
filed: filed.c $(BASE)/xseg/xseg.h
$(CC) $(CFLAGS) -o $@ $< $(INC) -L$(LIB) -lxseg -lsos
xseg: xseg-tool.c $(BASE)/xseg/xseg.h
- $(CC) $(CFLAGS) -o $@ $< $(INC) -L$(LIB) -lxseg
+ $(CC) $(CFLAGS) -o $@ $< $(BASE)/xtypes/xheap.c $(INC) -L$(LIB) -lxseg
+
+mt-sosd: mt-sosd.c peer.c peer.h
+ $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lrados -lpthread -DMT
+
+dummy: dummy.c peer.c peer.h
+ $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
+
+monitor: monitor.c peer.c peer.h
+ $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
-mt-sosd: mt-sosd.c mpeer.c mpeer.h
- $(CC) $(CFLAGS) -o $@ $< mpeer.c $(INC) -L$(LIB) -lxseg -lrados -lpthread
+mt-vlmcd: mt-vlmcd.c peer.c peer.h $(BASE)/xseg/protocol.h
+ $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
-dummy: dummy.c mpeer.c mpeer.h
- $(CC) $(CFLAGS) -o $@ $< mpeer.c $(INC) -L$(LIB) -lxseg -lpthread
+mt-pfiled: mt-pfiled.c peer.c peer.h $(BASE)/xseg/protocol.h
+ $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg -lpthread -DMT
-monitor: monitor.c mpeer.c mpeer.h
- $(CC) $(CFLAGS) -o $@ $< mpeer.c $(INC) -L$(LIB) -lxseg -lpthread
+st-vlmcd: mt-vlmcd.c peer.c peer.h $(BASE)/xseg/protocol.h
+ $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -lxseg
+
+mt-mapperd: mt-mapperd.c peer.c peer.h $(BASE)/xseg/protocol.h
+ $(CC) $(CFLAGS) -o $@ $< peer.c $(INC) -L$(LIB) -DST_THREADS -lxseg -lgcrypt -lst
+
+pfiled: pfiled.c common.c $(BASE)/xseg/xseg.h $(BASE)/xseg/protocol.h common.h
+ $(CC) $(CFLAGS) -o $@ $< common.c $(INC) -L$(LIB) -lxseg -lpthread
+
+vlmc-xseg: vlmc-tool.c $(BASE)/xseg/xseg.h
+ $(CC) $(CFLAGS) -o $@ $< $(INC) -L$(LIB) -lxseg
clean:
- rm -f filed xseg sosd vlmcd mapperd mt-sosd dummy monitor
+ rm -f filed xseg sosd vlmcd mapperd mt-sosd dummy monitor mt-mapperd pfiled vlmc-xseg st-vlmcd mt-vlmcd mt-pfiled