forked from dequis/purple-facebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.mingw
66 lines (53 loc) · 1.9 KB
/
Makefile.mingw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
PLUGIN_VERSION = $(shell cat RELEASE_VERSION)
PURPLE_VERSION = 2.10.11
TREE_TOP = ../../../..
PLUGIN_TOP = pidgin/libpurple/protocols/facebook
WIN32_TREE_TOP := ../win32-dev/pidgin-$(PURPLE_VERSION)
PIDGIN_TREE_TOP = $(TREE_TOP)/$(WIN32_TREE_TOP)
WIN32_DEV_TOP = $(PIDGIN_TREE_TOP)/..
PURPLE_TOP = $(TREE_TOP)/$(WIN32_TREE_TOP)/libpurple
PURPLE_INSTALL_PLUGINS_DIR = $(TREE_TOP)/win32-install-dir/plugins
GTK_TOP = $(WIN32_DEV_TOP)/glib-2.28.8
GTK_BIN = $(GTK_TOP)/bin
GLIB_GENMARSHAL = $(GTK_BIN)/glib-genmarshal
JSON_GLIB_TOP = $(WIN32_DEV_TOP)/json-glib-0.14
CFLAGS = -O0 -g
export CFLAGS += -include purple-compat.h
export DEFINES = $(AUTOTOOLS_DEFINES) \
-DPACKAGE_NAME=\"purple-facebook\" \
-DPACKAGE_TARNAME=\"purple-facebook\" \
-DPACKAGE_VERSION=\"$(PLUGIN_VERSION)\" \
-DPACKAGE_STRING=\"purple-facebook\ $(PLUGIN_VERSION)\" \
-DPACKAGE_BUGREPORT=\"https://github.com/dequis/purple-facebook/issues\" \
-DPACKAGE_URL=\"https://github.com/dequis/purple-facebook\" \
-DPACKAGE=\"purple-facebook\" \
-DVERSION=\"$(PLUGIN_VERSION)\" \
-DPURPLE_PLUGINS
export INCLUDE_PATHS = \
-I$(TREE_TOP)/include \
-I$(TREE_TOP)/pidgin \
-I$(TREE_TOP)/pidgin/libpurple
export LIB_PATHS = \
-L$(PIDGIN_TREE_TOP)/win32-install-dir
override PLUGIN_MAKE = \
$(MAKE) -C $(PLUGIN_TOP) -f Makefile.mingw $(@) \
PURPLE_VERSION="$(PURPLE_VERSION)" \
PIDGIN_TREE_TOP="$(PIDGIN_TREE_TOP)" \
WIN32_DEV_TOP="$(WIN32_DEV_TOP)" \
PLUGIN_TOP="$(PLUGIN_TOP)" \
PURPLE_TOP="$(PURPLE_TOP)" \
PURPLE_INSTALL_PLUGINS_DIR="$(PURPLE_INSTALL_PLUGINS_DIR)" \
GPLUGIN_TOP="." \
GTK_TOP="$(GTK_TOP)" \
GTK_BIN="$(GTK_BIN)" \
GLIB_GENMARSHAL="$(GLIB_GENMARSHAL)" \
JSON_GLIB_TOP="$(JSON_GLIB_TOP)"
.PHONY: all install clean
all:
$(call PLUGIN_MAKE,all)
$(PURPLE_INSTALL_PLUGINS_DIR):
cd $(PLUGIN_TOP) && mkdir -p $(PURPLE_INSTALL_PLUGINS_DIR)
install: $(PURPLE_INSTALL_PLUGINS_DIR)
$(call PLUGIN_MAKE,install)
clean:
$(call PLUGIN_MAKE,clean)