2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
RS_TOP_DIR = ..
|
2008-02-03 01:17:33 -05:00
|
|
|
##### Define any flags that are needed for this section #######
|
|
|
|
###############################################################
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2008-02-03 01:17:33 -05:00
|
|
|
###############################################################
|
|
|
|
include $(RS_TOP_DIR)/scripts/config.mk
|
|
|
|
###############################################################
|
2008-01-25 02:22:15 -05:00
|
|
|
|
2008-02-03 01:17:33 -05:00
|
|
|
RSOBJ = b64.o opendhtstr.o opendht.o opendhtmgr.o
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2008-03-20 22:02:58 -04:00
|
|
|
TESTOBJ = odhtstr_test.o odhtpost_test.o odhtmgr_test.o \
|
2008-03-23 18:27:43 -04:00
|
|
|
dht_bootstrap.o dht_check_peers.o
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2008-03-20 22:02:58 -04:00
|
|
|
TESTS = odhtstr_test odhtpost_test odhtmgr_test \
|
2008-03-23 18:27:43 -04:00
|
|
|
dht_bootstrap dht_check_peers
|
2008-01-25 02:22:15 -05:00
|
|
|
|
2008-02-03 01:17:33 -05:00
|
|
|
all: librs tests
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2008-02-03 01:17:33 -05:00
|
|
|
#dhttest is OLD
|
2007-11-14 22:18:48 -05:00
|
|
|
dhttest: $(OBJ) dhttest.o
|
2008-03-03 09:41:15 -05:00
|
|
|
$(CC) $(CFLAGS) -o dhttest $(OBJ) dhttest.o $(LIBS)
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2008-03-23 18:27:43 -04:00
|
|
|
dht_check_peers: $(OBJ) dht_check_peers.o
|
|
|
|
$(CC) $(CFLAGS) -o dht_check_peers $(OBJ) dht_check_peers.o $(LIBS)
|
|
|
|
|
2008-01-25 02:22:15 -05:00
|
|
|
odhtpost_test: $(OBJ) odhtpost_test.o
|
2008-03-03 09:41:15 -05:00
|
|
|
$(CC) $(CFLAGS) -o odhtpost_test $(OBJ) odhtpost_test.o $(LIBS)
|
2008-01-25 02:22:15 -05:00
|
|
|
|
|
|
|
odhtstr_test: $(OBJ) odhtstr_test.o
|
2008-03-03 09:41:15 -05:00
|
|
|
$(CC) $(CFLAGS) -o odhtstr_test $(OBJ) odhtstr_test.o $(LIBS)
|
2008-01-25 02:22:15 -05:00
|
|
|
|
|
|
|
odhtmgr_test: $(OBJ) odhtmgr_test.o
|
2008-03-03 09:41:15 -05:00
|
|
|
$(CC) $(CFLAGS) -o odhtmgr_test $(OBJ) odhtmgr_test.o $(LIBS)
|
2008-01-25 02:22:15 -05:00
|
|
|
|
2008-03-20 22:02:58 -04:00
|
|
|
dht_bootstrap: dht_bootstrap.o
|
|
|
|
$(CC) $(CFLAGS) -o dht_bootstrap dht_bootstrap.o $(LIBS)
|
|
|
|
|
2008-02-03 01:17:33 -05:00
|
|
|
# Extra Rule...
|
2008-01-25 02:22:15 -05:00
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2008-02-03 01:17:33 -05:00
|
|
|
###############################################################
|
|
|
|
include $(RS_TOP_DIR)/scripts/rules.mk
|
|
|
|
###############################################################
|
2007-11-14 22:18:48 -05:00
|
|
|
|