pidgin/plugins/disco/Makefile.mingw

Sun, 09 Oct 2011 04:55:33 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Sun, 09 Oct 2011 04:55:33 +0000
branch
cpw.qulogic.gtk3
changeset 32917
ca85d11c17ca
parent 27369
ad5cb06ae282
child 33854
5744cfb1c3d1
permissions
-rw-r--r--

GDK_DISPLAY has been deprecated, and its replacement has been around
for a long time.

27360
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
1 #
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
2 # Makefile.mingw
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
3 #
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
4 # Description: Makefile for xmppdisco plugin.
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
5 #
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
6
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
7 PIDGIN_TREE_TOP := ../../..
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
9
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
10 TARGET = xmppdisco
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
11
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
12 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
13 ## INCLUDE PATHS
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
14 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
15 INCLUDE_PATHS += -I. \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
16 -I$(GTK_TOP)/include \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
17 -I$(GTK_TOP)/include/gtk-2.0 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
18 -I$(GTK_TOP)/include/glib-2.0 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
19 -I$(GTK_TOP)/include/pango-1.0 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
20 -I$(GTK_TOP)/include/atk-1.0 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
21 -I$(GTK_TOP)/include/cairo \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
22 -I$(GTK_TOP)/lib/glib-2.0/include \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
23 -I$(GTK_TOP)/lib/gtk-2.0/include \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
24 -I$(PURPLE_TOP) \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
25 -I$(PURPLE_TOP)/win32 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
26 -I$(PIDGIN_TOP) \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
27 -I$(PIDGIN_TOP)/win32 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
28 -I$(PIDGIN_TREE_TOP)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
29
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
30 LIB_PATHS += -L$(GTK_TOP)/lib \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
31 -L$(PURPLE_TOP) \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
32 -L$(PIDGIN_TOP)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
33
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
34 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
35 ## SOURCES, OBJECTS
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
36 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
37 C_SRC = xmppdisco.c \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
38 gtkdisco.c
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
39
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
40 OBJECTS = $(C_SRC:%.c=%.o)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
41
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
42 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
43 ## LIBRARIES
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
44 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
45 LIBS = -lgtk-win32-2.0 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
46 -lglib-2.0 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
47 -lgdk-win32-2.0 \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
48 -lgobject-2.0 \
27369
ad5cb06ae282 Fix building of disco plugin on Windows. Thanks to SuperMMX.
Ma Xuan <supermmx@gmail.com>
parents: 27360
diff changeset
49 -lpango-1.0 \
ad5cb06ae282 Fix building of disco plugin on Windows. Thanks to SuperMMX.
Ma Xuan <supermmx@gmail.com>
parents: 27360
diff changeset
50 -lgdk_pixbuf-2.0 \
27360
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
51 -lintl \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
52 -lpurple \
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
53 -lpidgin
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
54
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
55 include $(PIDGIN_COMMON_RULES)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
56
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
57 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
58 ## TARGET DEFINITIONS
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
59 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
60 .PHONY: all install clean
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
61
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
62 all: $(TARGET).dll
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
63
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
64 install: $(PIDGIN_INSTALL_PLUGINS_DIR) all
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
65 cp $(TARGET).dll $(PIDGIN_INSTALL_PLUGINS_DIR)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
66
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
67 $(OBJECTS): $(PIDGIN_CONFIG_H)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
68
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
69 $(TARGET).dll: $(PURPLE_DLL).a $(PIDGIN_DLL).a $(OBJECTS)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
70 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
71
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
72 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
73 ## CLEAN RULES
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
74 ##
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
75 clean:
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
76 rm -rf $(OBJECTS)
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
77 rm -rf $(TARGET).dll
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
78
3c5ef391cd63 Build infrastructure for XMPP Disco plugin on Windows. Ripped from the ticker.
Paul Aurich <darkrain42@pidgin.im>
parents:
diff changeset
79 include $(PIDGIN_COMMON_TARGETS)

mercurial