2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
RS_TOP_DIR = ..
|
|
|
|
include ../make.opt
|
|
|
|
|
|
|
|
# All the executables that should be generated.
|
2008-01-25 01:36:40 -05:00
|
|
|
EXECS = dht_test conn_test # test_p3items
|
2007-12-11 20:29:14 -05:00
|
|
|
|
2008-01-25 01:36:40 -05:00
|
|
|
BASE_OBJ = pqi_base.o pqidebug.o pqisecurity.o pqinetwork.o
|
2007-12-11 20:29:14 -05:00
|
|
|
LOOP_OBJ = pqiloopback.o
|
2008-01-25 01:36:40 -05:00
|
|
|
STREAM_OBJ = pqistreamer.o pqiarchive.o pqibin.o
|
|
|
|
MGR_OBJ = pqimonitor.o p3dhtmgr.o p3connmgr.o p3cfgmgr.o p3authmgr.o
|
|
|
|
GRP_OBJ = pqiperson.o pqihandler.o pqiservice.o pqipersongrp.o
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
ifdef PQI_USE_XPGP
|
2008-01-25 01:36:40 -05:00
|
|
|
SSL_OBJ = authxpgp.o
|
|
|
|
#xpgpcert.o
|
2007-11-14 22:18:48 -05:00
|
|
|
# Disabled for release... EXECS += p3supernode
|
|
|
|
else
|
|
|
|
SSL_OBJ = sslcert.o
|
|
|
|
endif
|
|
|
|
|
2008-01-25 01:36:40 -05:00
|
|
|
SSL_OBJ += pqissl.o pqissllistener.o pqisslpersongrp.o
|
|
|
|
UDP_OBJ = pqissludp.o
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2008-01-25 01:36:40 -05:00
|
|
|
# Old code - no longer used!
|
|
|
|
#OLD_OBJ = pqipacket.o p3loopback.o pqi.o
|
|
|
|
#TUNN_OBJ = pqitunnel.o pqitunneltst.o
|
|
|
|
#DISC_OBJ = discItem.o p3disc.o
|
|
|
|
#UDP_OBJ = pqistunner.o pqiudpproxy.o pqissludp.o pqitunnelproxyudp.o
|
|
|
|
#PRXY_OBJ = pqiproxy.o pqitunnelproxy.o
|
|
|
|
#CHAN_OBJ = p3channel.o pqichannel.o
|
|
|
|
#SN_OBJ = pqisupernode.o
|
2007-11-14 22:18:48 -05:00
|
|
|
|
2007-12-11 20:29:14 -05:00
|
|
|
OBJ = $(BASE_OBJ) $(LOOP_OBJ) \
|
2008-01-25 01:36:40 -05:00
|
|
|
$(STREAM_OBJ) \
|
|
|
|
$(MGR_OBJ) \
|
|
|
|
$(SSL_OBJ) \
|
|
|
|
$(UDP_OBJ) \
|
|
|
|
$(GRP_OBJ)
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
# Linux only parts.
|
|
|
|
ifeq ($(OS),Linux)
|
2007-12-11 20:29:14 -05:00
|
|
|
# OBJ += $(SN_OBJ)
|
2007-11-14 22:18:48 -05:00
|
|
|
endif
|
|
|
|
|
2007-12-11 20:29:14 -05:00
|
|
|
BASE_HDR = pqi_base.h pqisecurity.h pqinetwork.h \
|
2007-11-14 22:18:48 -05:00
|
|
|
pqidebug.h pqistreamer.h pqiarchive.h pqiindic.h pqibin.h
|
2007-12-11 20:29:14 -05:00
|
|
|
LOOP_HDR = pqiloopback.h
|
|
|
|
SSL_HDR = pqissl.h pqissllistener.h xpgpcert.h
|
|
|
|
GPR_HDR = pqihandler.h pqiperson.h pqiservice.h pqipersongrp.h
|
|
|
|
STREAM_HDR = pqistreamer.h pqiarchive.h
|
|
|
|
|
|
|
|
OLD_HDR = pqipacket.h pqi_data.h p3loopback.h pqi.h
|
2007-11-14 22:18:48 -05:00
|
|
|
TUNN_HDR = pqitunnel.h pqitunneltst.h
|
|
|
|
DISC_HDR = discItem.h p3disc.h
|
|
|
|
UDP_HDR = pqistunner.h pqiudpproxy.h pqissludp.h pqitunnelproxyudp.h
|
|
|
|
PRXY_HDR = pqitunnelproxy.h pqiproxy.h
|
|
|
|
CHAN_HDR = pqichannel.h p3channel.h
|
|
|
|
SN_HDR = pqisupernode.h
|
|
|
|
|
2007-12-11 20:29:14 -05:00
|
|
|
HDR = $(BASE_HDR) $(LOOP_HDR) $(GRP_HDR) $(SSL_HDR) $(STREAM_HDR)
|
|
|
|
|
|
|
|
#$(DISC_HDR) $(TUNN_HDR)
|
|
|
|
#$(CHAN_HDR) $(PRXY_HDR) $(UDP_HDR)
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
LIBPQIA = $(LIBDIR)/libpqi.a
|
|
|
|
LIBPQISO = $(LIBDIR)/libpqi.so
|
|
|
|
|
|
|
|
# decide on output format...... Lib for Unix, Objs for windows,
|
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
|
|
|
|
all : librs $(EXECS)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
all : librs
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
librs: $(OBJ)
|
|
|
|
$(AR) r $(LIBRS) $(OBJ)
|
|
|
|
$(RANLIB) $(LIBRS)
|
|
|
|
|
|
|
|
$(OBJ) : $(HDR)
|
|
|
|
|
2008-01-25 01:36:40 -05:00
|
|
|
#p3supernode: p3supernode.o librs
|
|
|
|
# $(CC) $(CFLAGS) -o p3supernode p3supernode.o $(RSLIBS)
|
|
|
|
|
|
|
|
dht_test: dht_test.o librs
|
|
|
|
$(CC) $(CFLAGS) -o dht_test dht_test.o $(RSLIBS)
|
|
|
|
|
|
|
|
conn_test: conn_test.o librs
|
|
|
|
$(CC) $(CFLAGS) -o conn_test conn_test.o $(RSLIBS)
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
.cc.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
clean:
|
2008-01-25 01:36:40 -05:00
|
|
|
-/bin/rm $(OBJ)
|
2007-11-14 22:18:48 -05:00
|
|
|
|
|
|
|
clobber: clean
|
|
|
|
-/bin/rm $(EXECS) $(LIBPQIA) $(LIBPQISO)
|
|
|
|
|
|
|
|
|