mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-11 20:38:41 -05:00
![drbob](/assets/img/avatar_default.png)
the rewrite of the retroshare core networking stack. This check-in commits the changes to the dht code. An interface to a second new DHT system (OpenDHT) has been added. This has a number of features that make it preferable to the KAD dht network. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@309 b45a01b8-16f6-495d-af2f-9b41ad6348cc
44 lines
836 B
Makefile
44 lines
836 B
Makefile
|
|
RS_TOP_DIR = ..
|
|
include ../make.opt
|
|
|
|
OBJ = b64.o opendhtstr.o opendht.o opendhtmgr.o
|
|
|
|
#CADKINC = /home/rmf24/prog/src/KadC
|
|
#CFLAGS += -I $(CADKINC)
|
|
#RSLIBS += -L $(CADKINC) -lKadC
|
|
|
|
|
|
all : $(OBJ) librs odhtstr_test odhtpost_test odhtmgr_test
|
|
|
|
#dhttest
|
|
|
|
dhttest: $(OBJ) dhttest.o
|
|
$(CC) $(CFLAGS) -o dhttest $(OBJ) dhttest.o $(RSLIBS)
|
|
|
|
odhtpost_test: $(OBJ) odhtpost_test.o
|
|
$(CC) $(CFLAGS) -o odhtpost_test $(OBJ) odhtpost_test.o $(RSLIBS)
|
|
|
|
odhtstr_test: $(OBJ) odhtstr_test.o
|
|
$(CC) $(CFLAGS) -o odhtstr_test $(OBJ) odhtstr_test.o $(RSLIBS)
|
|
|
|
odhtmgr_test: $(OBJ) odhtmgr_test.o
|
|
$(CC) $(CFLAGS) -o odhtmgr_test $(OBJ) odhtmgr_test.o $(RSLIBS)
|
|
|
|
librs: $(OBJ)
|
|
$(AR) r $(LIBRS) $(OBJ)
|
|
$(RANLIB) $(LIBRS)
|
|
|
|
.cc.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean:
|
|
-/bin/rm $(OBJ) dhttest.o
|
|
|
|
clobber: clean
|
|
-/bin/rm dhttest
|
|
|