2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
RS_TOP_DIR = ..
|
|
|
|
include ../make.opt
|
|
|
|
|
2008-01-25 02:22:15 -05:00
|
|
|
OBJ = b64.o opendhtstr.o opendht.o opendhtmgr.o
|
|
|
|
|
2007-11-14 22:18:48 -05:00
|
|
|
#CADKINC = /home/rmf24/prog/src/KadC
|
|
|
|
#CFLAGS += -I $(CADKINC)
|
|
|
|
#RSLIBS += -L $(CADKINC) -lKadC
|
|
|
|
|
|
|
|
|
2008-01-25 02:22:15 -05:00
|
|
|
all : $(OBJ) librs odhtstr_test odhtpost_test odhtmgr_test
|
|
|
|
|
|
|
|
#dhttest
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
dhttest: $(OBJ) dhttest.o
|
|
|
|
$(CC) $(CFLAGS) -o dhttest $(OBJ) dhttest.o $(RSLIBS)
|
|
|
|
|
2008-01-25 02:22:15 -05:00
|
|
|
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)
|
|
|
|
|
2007-11-14 22:18:48 -05:00
|
|
|
librs: $(OBJ)
|
|
|
|
$(AR) r $(LIBRS) $(OBJ)
|
|
|
|
$(RANLIB) $(LIBRS)
|
|
|
|
|
|
|
|
.cc.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2008-01-25 02:22:15 -05:00
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
2007-11-14 22:18:48 -05:00
|
|
|
clean:
|
|
|
|
-/bin/rm $(OBJ) dhttest.o
|
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
-/bin/rm dhttest
|
|
|
|
|