mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 03:52:39 -04:00

* minor changes to networking headers. * addition of several virtual destructors (remove warnings) * switched Makefiles to new system. * added macosx specific configuration file. * removed KadC compilation checks. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@324 b45a01b8-16f6-495d-af2f-9b41ad6348cc
82 lines
1.8 KiB
Makefile
82 lines
1.8 KiB
Makefile
|
|
ifneq ($(OS),MacOSX)
|
|
dummy:
|
|
echo "ERROR MacOSX configuration file included, but (OS != MacOSX)
|
|
|
|
endif
|
|
|
|
############ LINUX CONFIGURATION ########################
|
|
|
|
# flags for components....
|
|
PQI_USE_XPGP = 1
|
|
#PQI_USE_PROXY = 1
|
|
#PQI_USE_CHANNELS = 1
|
|
#USE_FILELOOK = 1
|
|
|
|
SSL_DIR=../../../../../src/openssl-0.9.7g-xpgp-0.1c
|
|
UPNPC_DIR=../../../../../src/miniupnpc-20070515
|
|
|
|
include $(RS_TOP_DIR)/scripts/checks.mk
|
|
|
|
############ ENFORCE DIRECTORY NAMING ########################
|
|
|
|
CC = g++
|
|
RM = /bin/rm
|
|
RANLIB = ranlib
|
|
LIBDIR = $(RS_TOP_DIR)/lib
|
|
LIBRS = $(LIBDIR)/libretroshare.a
|
|
|
|
# Unix: Linux/Cygwin
|
|
INCLUDE = -I $(RS_TOP_DIR)
|
|
CFLAGS = -Wall -g $(INCLUDE)
|
|
|
|
ifdef PQI_USE_XPGP
|
|
INCLUDE += -I $(SSL_DIR)/include
|
|
endif
|
|
|
|
ifdef PQI_USE_XPGP
|
|
CFLAGS += -DPQI_USE_XPGP
|
|
endif
|
|
|
|
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)
|
|
|
|
#########################################################################
|
|
# OS Compile Options
|
|
#########################################################################
|
|
|
|
# For the SSL BIO compilation. (Copied from OpenSSL compilation flags)
|
|
BIOCC = gcc
|
|
|
|
# MacOSX flags
|
|
BIOCFLAGS = -I $(SSL_DIR)/include -DOPENSSL_SYSNAME_MACOSX -DOPENSSL_THREADS -D_REENTRANT -DOPENSSL_NO_KRB5 -O3 -fomit-frame-pointer -fno-common -DB_ENDIAN
|
|
|
|
|
|
#########################################################################
|
|
# OS specific Linking.
|
|
#########################################################################
|
|
|
|
LIBS = -Wl,-search_paths_first
|
|
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
|
|
|
|
RSLIBS = $(LIBS)
|
|
|
|
|