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/Makefile27
1 files changed, 22 insertions, 5 deletions
diff --git a/steam-mobile/Makefile b/steam-mobile/Makefile
index 3f66ee1..ccf880d 100644
--- a/steam-mobile/Makefile
+++ b/steam-mobile/Makefile
@@ -21,14 +21,23 @@ ifeq ($(STEAM_CRYPT_BACKEND), nss)
else ifeq ($(STEAM_CRYPT_BACKEND), gcrypt)
LIBPURPLE_CFLAGS += $(shell libgcrypt-config --cflags) -DUSE_GCRYPT_CRYPTO
LIBPURPLE_LIBS += $(shell libgcrypt-config --libs)
+else ifeq ($(STEAM_CRYPT_BACKEND), mbedtls)
+ LIBPURPLE_CFLAGS += -DUSE_MBEDTLS_CRYPTO
+ LIBPURPLE_LIBS += -lmbedtls -lmbedcrypto -lmbedx509
+else ifeq ($(STEAM_CRYPT_BACKEND), openssl)
+ LIBPURPLE_CFLAGS += $(shell ${PKG_CONFIG} --cflags openssl) -DUSE_OPENSSL_CRYPTO
+ LIBPURPLE_LIBS += $(shell ${PKG_CONFIG} --libs openssl)
endif
STEAM_SOURCES = \
steam_connection.c \
- libsteam.c
+ libsteam.c
+
+STEAM_OBJS = $(patsubst %.c, %.o, $(STEAM_SOURCES))
+
-.PHONY: all clean install
all: libsteam.so
+
install:
mkdir -m $(DIR_PERM) -p $(DESTDIR)$(PLUGIN_DIR_PURPLE)
install -m $(FILE_PERM) libsteam.so $(DESTDIR)$(PLUGIN_DIR_PURPLE)/$(PRPL_NAME)
@@ -38,8 +47,16 @@ install:
install -m $(FILE_PERM) steam22.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22/steam.png
mkdir -m $(DIR_PERM) -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48
install -m $(FILE_PERM) steam48.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48/steam.png
+
clean:
- rm -f libsteam.so
+ rm -f libsteam.so *.o
+
+%.o: %.c
+ $(CC) -Wall -I. -fPIC $(LIBPURPLE_CFLAGS) $(CFLAGS) -c $*.c
+
+libsteam.so: $(STEAM_OBJS)
+ $(CC) -Wall -I. -fPIC $(LIBPURPLE_CFLAGS) $(CFLAGS) $(STEAM_OBJS) -o $@ $(LDFLAGS) $(LIBPURPLE_LIBS) -shared
+
+
+.PHONY: all clean install
-libsteam.so: $(STEAM_SOURCES)
- $(CC) -Wall -I. -fPIC $(CFLAGS) $(STEAM_SOURCES) -o $@ $(LIBPURPLE_CFLAGS) $(LIBPURPLE_LIBS) -shared