2007-11-15 23:45:00 -05:00
|
|
|
|
|
|
|
ifneq ($(OS),Linux)
|
|
|
|
dummy:
|
|
|
|
echo "ERROR Linux configuration file included, but (OS != Linux)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
############ LINUX CONFIGURATION ########################
|
|
|
|
|
|
|
|
# flags for components....
|
2009-05-23 11:07:35 -04:00
|
|
|
#PQI_USE_SSLONLY = 1
|
2009-07-30 17:27:47 -04:00
|
|
|
#PQI_USE_XPGP = 1
|
2009-05-23 11:07:35 -04:00
|
|
|
|
|
|
|
|
2007-12-11 19:58:28 -05:00
|
|
|
#PQI_USE_PROXY = 1
|
|
|
|
#PQI_USE_CHANNELS = 1
|
|
|
|
#USE_FILELOOK = 1
|
2007-11-15 23:45:00 -05:00
|
|
|
|
2009-03-18 14:51:09 -04:00
|
|
|
SSL_DIR=../../../../openssl-0.9.7g-xpgp-0.1c
|
|
|
|
UPNPC_DIR=../../../../miniupnpc-1.0
|
2007-11-15 23:45:00 -05:00
|
|
|
|
2008-11-02 08:33:06 -05:00
|
|
|
# Need to define miniupnpc version because API changed a little between v1.0 and 1.2
|
|
|
|
# put 10 for 1.0 and 12 for 1.2
|
|
|
|
DEFINES += -DMINIUPNPC_VERSION=10
|
|
|
|
|
2007-11-15 23:45:00 -05:00
|
|
|
include $(RS_TOP_DIR)/scripts/checks.mk
|
|
|
|
|
|
|
|
############ ENFORCE DIRECTORY NAMING ########################
|
|
|
|
|
|
|
|
CC = g++
|
|
|
|
RM = /bin/rm
|
|
|
|
RANLIB = ranlib
|
2008-04-06 15:37:20 -04:00
|
|
|
LIBDIR = $(RS_TOP_DIR)/lib
|
2007-11-15 23:45:00 -05:00
|
|
|
LIBRS = $(LIBDIR)/libretroshare.a
|
|
|
|
|
|
|
|
# Unix: Linux/Cygwin
|
2008-02-03 01:17:33 -05:00
|
|
|
INCLUDE = -I $(RS_TOP_DIR)
|
|
|
|
#-I$(KADC_DIR)
|
2007-11-15 23:45:00 -05:00
|
|
|
CFLAGS = -Wall -g $(INCLUDE)
|
2008-11-02 08:33:06 -05:00
|
|
|
CFLAGS += ${DEFINES}
|
2007-11-15 23:45:00 -05:00
|
|
|
|
|
|
|
ifdef PQI_USE_XPGP
|
|
|
|
INCLUDE += -I $(SSL_DIR)/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef PQI_USE_XPGP
|
|
|
|
CFLAGS += -DPQI_USE_XPGP
|
|
|
|
endif
|
|
|
|
|
2009-05-23 11:07:35 -04:00
|
|
|
ifdef PQI_USE_SSLONLY
|
|
|
|
CFLAGS += -DPQI_USE_SSLONLY
|
|
|
|
endif
|
|
|
|
|
2007-11-15 23:45:00 -05:00
|
|
|
ifdef PQI_USE_PROXY
|
|
|
|
CFLAGS += -DPQI_USE_PROXY
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef PQI_USE_CHANNELS
|
|
|
|
CFLAGS += -DPQI_USE_CHANNELS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef USE_FILELOOK
|
|
|
|
CFLAGS += -DUSE_FILELOOK
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
RSCFLAGS = -Wall -g $(INCLUDE)
|
2008-02-03 01:17:33 -05:00
|
|
|
#########################################################################
|
|
|
|
# OS Compile Options
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# For the SSL BIO compilation. (Copied from OpenSSL compilation flags)
|
|
|
|
BIOCC = gcc
|
|
|
|
|
2009-01-17 16:40:25 -05:00
|
|
|
# march=i686 causes problems while 64Bit compiling, GCC tries to generate Output for a m64 machine, but the marchi686
|
|
|
|
# doesnt allow the instructionfs for that.
|
|
|
|
#
|
|
|
|
# gcc docu: http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
|
|
|
|
|
2008-02-03 01:17:33 -05:00
|
|
|
# Linux flags
|
2009-01-17 16:40:25 -05:00
|
|
|
BIOCFLAGS = -I $(SSL_DIR)/include ${DEFINES} -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
|
2007-11-15 23:45:00 -05:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# OS specific Linking.
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIBS = -L$(LIBDIR) -lretroshare
|
|
|
|
ifdef PQI_USE_XPGP
|
|
|
|
LIBS += -L$(SSL_DIR)
|
|
|
|
endif
|
|
|
|
LIBS += -lssl -lcrypto -lpthread
|
|
|
|
LIBS += -L$(UPNPC_DIR) -lminiupnpc
|
|
|
|
LIBS += $(XLIB) -ldl -lz
|
2009-05-23 11:07:35 -04:00
|
|
|
LIBS += -lgpgme
|
2007-11-15 23:45:00 -05:00
|
|
|
|
|
|
|
RSLIBS = $(LIBS)
|
|
|
|
|
|
|
|
|