Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/pidgin-opensteamworks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'steam-mobile/Makefile')
-rw-r--r--steam-mobile/Makefile21
1 files changed, 18 insertions, 3 deletions
diff --git a/steam-mobile/Makefile b/steam-mobile/Makefile
index 5c4ed38..fee9927 100644
--- a/steam-mobile/Makefile
+++ b/steam-mobile/Makefile
@@ -2,8 +2,23 @@
COMPILER = gcc
PKG_CONFIG ?= pkg-config
-LIBPURPLE_CFLAGS += $(shell ${PKG_CONFIG} --cflags glib-2.0 json-glib-1.0 purple nss gnome-keyring-1)
-LIBPURPLE_LIBS += $(shell ${PKG_CONFIG} --libs glib-2.0 json-glib-1.0 purple nss)
+# Global libraries
+LIBPURPLE_CFLAGS += $(shell ${PKG_CONFIG} --cflags glib-2.0 json-glib-1.0 purple gnome-keyring-1)
+LIBPURPLE_LIBS += $(shell ${PKG_CONFIG} --libs glib-2.0 json-glib-1.0 purple)
+
+CFLAGS = ${LIBPURPLE_CFLAGS}
+LIBS = ${LIBPURPLE_LIBS}
+
+# Crypt backend to use
+CRYPT_BACKEND = nss
+
+ifeq (${CRYPT_BACKEND}, nss)
+ CFLAGS += $(shell ${PKG_CONFIG} --cflags nss)
+ LIBS += $(shell ${PKG_CONFIG} --libs nss)
+else ifeq (${CRYPT_BACKEND}, gcrypt)
+ CFLAGS += $(shell libgcrypt-config --cflags) -DUSE_GCRYPT_CRYPTO
+ LIBS += $(shell libgcrypt-config --libs)
+endif
STEAM_SOURCES = \
steam_connection.c \
@@ -15,4 +30,4 @@ clean:
rm -f libsteam.so
libsteam.so: ${STEAM_SOURCES}
- ${COMPILER} -Wall -I. -g -O2 -fPIC -pipe ${STEAM_SOURCES} -o $@ ${LIBPURPLE_CFLAGS} ${LIBPURPLE_LIBS} -shared
+ ${COMPILER} -Wall -I. -g -O2 -fPIC -pipe ${STEAM_SOURCES} -o $@ ${CFLAGS} ${LIBS} -shared