Mercurial > pidgin.yaz
comparison gtk/plugins/Makefile.mingw @ 14315:8793fc8f7064
[gaim-migrate @ 17008]
Lee Roach revamped the win32 makefiles. This makes me happy, they were in dire need of some loving.
This makes life a great deal easier for anyone who wants to build out-of-tree plugins.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 21:34:43 +0000 |
parents | ab8a105eff62 |
children | e88aae4f4c40 |
comparison
equal
deleted
inserted
replaced
14314:8b8188fa98f4 | 14315:8793fc8f7064 |
---|---|
2 # Makefile.mingw | 2 # Makefile.mingw |
3 # | 3 # |
4 # Description: Makefile for win32 (mingw) version of Gaim Plugins | 4 # Description: Makefile for win32 (mingw) version of Gaim Plugins |
5 # | 5 # |
6 | 6 |
7 # | 7 GAIM_TOP := ../.. |
8 # PATHS | 8 include $(GAIM_TOP)/libgaim/win32/global.mak |
9 # | |
10 | 9 |
11 GAIM_PLUGINS := . | 10 DOCKLET_PLUGIN := $(GAIM_GTK_PLUGINS_TOP)/docklet |
12 GAIM_TOP := ../.. | 11 TICKER_PLUGIN := $(GAIM_GTK_PLUGINS_TOP)/ticker |
13 GTKGAIM_TOP := .. | 12 TRANSPARENCY_PLUGIN := $(GAIM_GTK_PLUGINS_TOP)/win32/transparency |
14 LIBGAIM_TOP := $(GAIM_TOP)/libgaim | 13 WINPREFS_PLUGIN := $(GAIM_GTK_PLUGINS_TOP)/win32/winprefs |
15 GTK_TOP := ../../../win32-dev/gtk_2_0 | |
16 #OSCAR_ROOT := ../src/protocols/oscar | |
17 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
18 TICKER := ./ticker | |
19 TRANSPARENCY := ./win32/transparency | |
20 WINPREFS := ./win32/winprefs | |
21 #PERL_PLUGIN_LOADER := ./perl | |
22 DOCKLET := ./docklet | |
23 | |
24 ## | |
25 ## VARIABLE DEFINITIONS | |
26 ## | |
27 | |
28 # Compiler Options | |
29 | |
30 CFLAGS = | |
31 | |
32 DEFINES = | |
33 | 14 |
34 .SUFFIXES: | 15 .SUFFIXES: |
35 .SUFFIXES: .c .dll | 16 .SUFFIXES: .c .dll |
36 | 17 |
37 ## | 18 ## |
38 ## INCLUDE MAKEFILES | |
39 ## | |
40 | |
41 include $(LIBGAIM_TOP)/win32/global.mak | |
42 | |
43 ## | |
44 ## INCLUDE PATHS | 19 ## INCLUDE PATHS |
45 ## | 20 ## |
46 | |
47 INCLUDE_PATHS += \ | 21 INCLUDE_PATHS += \ |
48 -I$(GTK_TOP)/include \ | 22 -I$(GTK_TOP)/include \ |
49 -I$(GTK_TOP)/include/gtk-2.0 \ | 23 -I$(GTK_TOP)/include/gtk-2.0 \ |
50 -I$(GTK_TOP)/include/glib-2.0 \ | 24 -I$(GTK_TOP)/include/glib-2.0 \ |
51 -I$(GTK_TOP)/include/pango-1.0 \ | 25 -I$(GTK_TOP)/include/pango-1.0 \ |
52 -I$(GTK_TOP)/include/atk-1.0 \ | 26 -I$(GTK_TOP)/include/atk-1.0 \ |
53 -I$(GTK_TOP)/lib/glib-2.0/include \ | 27 -I$(GTK_TOP)/lib/glib-2.0/include \ |
54 -I$(GTK_TOP)/lib/gtk-2.0/include \ | 28 -I$(GTK_TOP)/lib/gtk-2.0/include \ |
55 -I$(GAIM_TOP) \ | 29 -I$(GAIM_TOP) \ |
56 -I$(LIBGAIM_TOP) \ | 30 -I$(GAIM_LIB_TOP) \ |
57 -I$(LIBGAIM_TOP)/win32 \ | 31 -I$(GAIM_LIB_TOP)/win32 \ |
58 -I$(GTKGAIM_TOP) \ | 32 -I$(GAIM_GTK_TOP) \ |
59 -I$(GTKGAIM_TOP)/win32 | 33 -I$(GAIM_GTK_TOP)/win32 |
60 | |
61 | 34 |
62 LIB_PATHS = -L$(GTK_TOP)/lib \ | 35 LIB_PATHS = -L$(GTK_TOP)/lib \ |
63 -L$(LIBGAIM_TOP) \ | 36 -L$(GAIM_LIB_TOP) \ |
64 -L$(GTKGAIM_TOP) | 37 -L$(GAIM_GTK_TOP) |
65 | |
66 | 38 |
67 ## | 39 ## |
68 ## LIBRARIES | 40 ## LIBRARIES |
69 ## | 41 ## |
70 | |
71 LIBS = -lgtk-win32-2.0 \ | 42 LIBS = -lgtk-win32-2.0 \ |
72 -lglib-2.0 \ | 43 -lglib-2.0 \ |
73 -lgdk-win32-2.0 \ | 44 -lgdk-win32-2.0 \ |
74 -lgobject-2.0 \ | 45 -lgobject-2.0 \ |
75 -lgmodule-2.0 \ | 46 -lgmodule-2.0 \ |
79 -lws2_32 \ | 50 -lws2_32 \ |
80 -lgaim \ | 51 -lgaim \ |
81 -lgtkgaim | 52 -lgtkgaim |
82 | 53 |
83 ## | 54 ## |
84 ## RULES | |
85 ## | |
86 | |
87 ## | |
88 ## TARGET DEFINITIONS | 55 ## TARGET DEFINITIONS |
89 ## | 56 ## |
90 | |
91 .PHONY: all clean | 57 .PHONY: all clean |
92 | 58 |
93 all: plugins | 59 all: plugins |
94 $(MAKE) -C $(TICKER) -f Makefile.mingw | 60 $(MAKE) -C $(DOCKLET_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) |
95 $(MAKE) -C $(WINPREFS) -f Makefile.mingw | 61 $(MAKE) -C $(TICKER_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) |
96 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw | 62 $(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) |
97 $(MAKE) -C $(DOCKLET) -f Makefile.mingw | 63 $(MAKE) -C $(WINPREFS_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) |
98 | 64 |
99 install: | 65 install: $(GAIM_INSTALL_PLUGINS_DIR) |
100 cp $(GAIM_PLUGINS)/*.dll $(GAIM_INSTALL_DIR)/plugins | 66 $(MAKE) -C $(DOCKLET_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) install |
101 $(MAKE) -C $(TICKER) -f Makefile.mingw install | 67 $(MAKE) -C $(TICKER_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) install |
102 $(MAKE) -C $(WINPREFS) -f Makefile.mingw install | 68 $(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) install |
103 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw install | 69 $(MAKE) -C $(WINPREFS_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) install |
104 $(MAKE) -C $(DOCKLET) -f Makefile.mingw install | 70 cp $(GAIM_GTK_PLUGINS_TOP)/*.dll $(GAIM_INSTALL_PLUGINS_DIR) |
105 | |
106 # | |
107 # BUILD Plugin | |
108 # | |
109 | 71 |
110 .c.dll: | 72 .c.dll: |
111 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $< | 73 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $< |
112 $(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@ | 74 $(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@ |
113 | 75 |
114 plugins: \ | 76 plugins: \ |
115 extplacement.dll \ | 77 extplacement.dll \ |
116 gaimrc.dll \ | 78 gaimrc.dll \ |
117 history.dll \ | 79 history.dll \ |
118 iconaway.dll \ | 80 iconaway.dll \ |
119 notify.dll \ | 81 notify.dll \ |
120 relnot.dll \ | 82 relnot.dll \ |
121 spellchk.dll \ | 83 spellchk.dll \ |
122 timestamp_format.dll \ | 84 timestamp_format.dll \ |
123 timestamp.dll | 85 timestamp.dll |
124 | 86 |
125 | |
126 ## | 87 ## |
127 ## CLEAN RULES | 88 ## CLEAN RULES |
128 ## | 89 ## |
90 clean: | |
91 rm -rf $(GAIM_GTK_PLUGINS_TOP)/*.o | |
92 rm -rf $(GAIM_GTK_PLUGINS_TOP)/*.dll | |
93 $(MAKE) -C $(DOCKLET_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) clean | |
94 $(MAKE) -C $(TICKER_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) clean | |
95 $(MAKE) -C $(TRANSPARENCY_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) clean | |
96 $(MAKE) -C $(WINPREFS_PLUGIN) -f $(GAIM_WIN32_MAKEFILE) clean | |
129 | 97 |
130 clean: | 98 include $(GAIM_COMMON_TARGETS) |
131 rm -rf *.o | |
132 rm -rf *.dll | |
133 $(MAKE) -C $(TICKER) -f Makefile.mingw clean | |
134 $(MAKE) -C $(TRANSPARENCY) -f Makefile.mingw clean | |
135 $(MAKE) -C $(WINPREFS) -f Makefile.mingw clean | |
136 $(MAKE) -C $(DOCKLET) -f Makefile.mingw clean |