Mercurial > pidgin
comparison libpurple/protocols/myspace/Makefile.mingw @ 16394:05e2df434077
Import msimprpl 0.4.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Sat, 21 Apr 2007 03:15:48 +0000 |
parents | |
children | 70c069168459 |
comparison
equal
deleted
inserted
replaced
16393:a7a0f0f371b4 | 16394:05e2df434077 |
---|---|
1 ## | |
2 # | |
3 # Makefile.mingw - Win32 mingw Makefile for MySpaceIM prpl | |
4 # | |
5 # based on: | |
6 # | |
7 # mockprpl | |
8 # (formerly nullprpl) | |
9 # http://snarfed.org/space/gaim+mock+protocol+plugin | |
10 # Copyright 2004-2007, Ryan Barrett <mockprpl@ryanb.org> | |
11 # | |
12 # Makefile.mingw was contributed by Andrew Hart. | |
13 # http://sourceforge.net/users/arhart/ | |
14 # | |
15 # If the gaim source is not installed in the same directory as mockprpl, change | |
16 # GAIM_TOP to point to it. | |
17 # | |
18 # This program is free software; you can redistribute it and/or modify | |
19 # it under the terms of the GNU General Public License as published by | |
20 # the Free Software Foundation; either version 2 of the License, or | |
21 # (at your option) any later version. | |
22 # | |
23 # This program is distributed in the hope that it will be useful, | |
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 # GNU General Public License for more details. | |
27 # | |
28 # You should have received a copy of the GNU General Public License | |
29 # along with this program; if not, write to the Free Software | |
30 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
31 # | |
32 # | |
33 | |
34 # | |
35 # PATHS | |
36 # | |
37 | |
38 INCLUDE_DIR := . | |
39 GTK_TOP := ../win32-dev/gtk_2_0 | |
40 GAIM_TOP := ../gaim-2.0.0beta6 | |
41 MSIM_ROOT := . | |
42 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
43 | |
44 ## | |
45 ## VARIABLE DEFINITIONS | |
46 ## | |
47 | |
48 TARGET = libmsim | |
49 | |
50 # Compiler Options | |
51 | |
52 CFLAGS = | |
53 | |
54 DEFINES = | |
55 | |
56 # If anyone cares to play with PLUGIN vs STATIC, feel free to change this | |
57 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
58 | |
59 ## Static or Plugin... | |
60 #ifeq ($(TYPE),STATIC) | |
61 # DEFINES += -DSTATIC | |
62 # DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
63 #else | |
64 #ifeq ($(TYPE),PLUGIN) | |
65 # DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
66 #endif | |
67 #endif | |
68 | |
69 | |
70 ## | |
71 ## INCLUDE MAKEFILES | |
72 ## | |
73 | |
74 include $(GAIM_TOP)/libgaim/win32/global.mak | |
75 | |
76 ## | |
77 ## INCLUDE PATHS | |
78 ## | |
79 | |
80 INCLUDE_PATHS += -I$(MSIM_ROOT) \ | |
81 -I$(GTK_TOP)/include \ | |
82 -I$(GTK_TOP)/include/gtk-2.0 \ | |
83 -I$(GTK_TOP)/include/glib-2.0 \ | |
84 -I$(GTK_TOP)/include/pango-1.0 \ | |
85 -I$(GTK_TOP)/include/atk-1.0 \ | |
86 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
87 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
88 -I$(GAIM_TOP)/libgaim \ | |
89 -I$(GAIM_TOP)/libgaim/win32 \ | |
90 -I$(GAIM_TOP) | |
91 | |
92 | |
93 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
94 -L$(GAIM_TOP)/libgaim | |
95 | |
96 | |
97 ## | |
98 ## SOURCES, OBJECTS | |
99 ## | |
100 | |
101 C_SRC = myspace.c | |
102 | |
103 | |
104 OBJECTS = $(C_SRC:%.c=%.o) | |
105 | |
106 | |
107 ## | |
108 ## LIBRARIES | |
109 ## | |
110 | |
111 LIBS = -lgtk-win32-2.0 \ | |
112 -lglib-2.0 \ | |
113 -lgdk-win32-2.0 \ | |
114 -lgmodule-2.0 \ | |
115 -lgobject-2.0 \ | |
116 -lws2_32 \ | |
117 -lintl \ | |
118 -lgaim | |
119 | |
120 | |
121 ## | |
122 ## RULES | |
123 ## | |
124 | |
125 # How to make a C file | |
126 | |
127 %.o: %.c | |
128 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
129 | |
130 ## | |
131 ## TARGET DEFINITIONS | |
132 ## | |
133 | |
134 .PHONY: all clean | |
135 | |
136 all: $(TARGET).dll | |
137 | |
138 install: $(TARGET).dll | |
139 cp $(MSIM_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
140 | |
141 | |
142 ## | |
143 ## BUILD Dependencies | |
144 ## | |
145 | |
146 $(GAIM_TOP)/libgaim/gaim.lib: | |
147 $(MAKE) -C $(GAIM_TOP)/libgaim -f Makefile.mingw gaim.lib | |
148 | |
149 ## | |
150 ## BUILD DLL | |
151 ## | |
152 | |
153 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) | |
154 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | |
155 | |
156 | |
157 ## | |
158 ## CLEAN RULES | |
159 ## | |
160 | |
161 clean: | |
162 rm -rf *.o | |
163 rm -rf $(TARGET).dll | |
164 rm -rf $(TARGET).lib |