Mercurial > pidgin-twitter
annotate Makefile.mingw @ 364:cbdf0b35d31b default tip
Added tag 0.9.2.1 for changeset 85e109dee063
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 13 May 2011 00:02:49 +0900 |
parents | f360d673cc35 |
children |
rev | line source |
---|---|
293
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
1 # -*- mode: makefile -*- |
280 | 2 |
293
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
3 # you must specify pidgin top directory. the following line assumes |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
4 # that pidgin-twitter directory is located at pidgin-*/pidgin/plugins. |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
5 PIDGIN_TREE_TOP = ../../../ |
280 | 6 |
293
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
7 # uncomment this if you use individually installed gtk libraries. |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
8 # USE_CUSTOM_PATHS = 1 |
278
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
9 |
280 | 10 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
11 | |
293
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
12 # specify custom paths here. |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
13 ifeq ($(USE_CUSTOM_PATHS), 1) |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
14 GTK_TOP = ../gtk+-dev-2.12.11 |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
15 GLIB_TOP = ../glib-dev-2.16.5 |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
16 ATK_TOP = ../atk-dev-1.22.0 |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
17 PANGO_TOP = ../pango-dev-1.20.5 |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
18 CAIRO_TOP = ../cairo-dev-1.6.4-2 |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
19 ICONV_TOP = ../win_iconv-tml-20080320 |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
20 GETTEXT_TOP = ../gettext-runtime-dev-0.17-1 |
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
21 else |
280 | 22 GLIB_TOP = $(GTK_TOP) |
23 ATK_TOP = $(GTK_TOP) | |
24 PANGO_TOP = $(GTK_TOP) | |
25 CAIRO_TOP = $(GTK_TOP) | |
26 ICONV_TOP = $(GTK_TOP) | |
27 GETTEXT_TOP = $(GTK_TOP) | |
278
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
28 endif |
253
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
29 |
293
f360d673cc35
tweaked makefile for windows.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
283
diff
changeset
|
30 |
253
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
31 OBJCOPY = objcopy.exe |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
32 STRIP = strip.exe |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
33 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
34 TARGET = pidgin-twitter.dll |
254
c2620a99622b
- divided the source file into several parts.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
253
diff
changeset
|
35 SRCS = main.c util.c prefs.c icon.c twitter_api.c |
253
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
36 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
37 OBJS = $(SRCS:%.c=%.o) prefs_ui.o |
278
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
38 DEPEND = .deps |
253
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
39 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
40 CPPFLAGS = -I$(GLIB_TOP)/include/glib-2.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
41 -I$(GLIB_TOP)/lib/glib-2.0/include \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
42 -I$(GTK_TOP)/include/gtk-2.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
43 -I$(GTK_TOP)/lib/gtk-2.0/include \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
44 -I$(ATK_TOP)/include/atk-1.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
45 -I$(PANGO_TOP)/include/pango-1.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
46 -I$(CAIRO_TOP)/include/cairo \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
47 -I$(ICONV_TOP)/include \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
48 -I$(LIBXML2_TOP)/include \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
49 -I$(PURPLE_TOP) \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
50 -I$(PURPLE_TOP)/win32 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
51 -I$(PIDGIN_TOP) \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
52 -I$(PIDGIN_TOP)/win32 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
53 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
54 LIB_PATHS = -L$(GLIB_TOP)/lib \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
55 -L$(GTK_TOP)/lib \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
56 -L$(LIBXML2_TOP)/lib \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
57 -L$(GETTEXT_TOP)/lib \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
58 -L$(PURPLE_TOP) \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
59 -L$(PIDGIN_TOP) |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
60 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
61 LIBS = -lgtk-win32-2.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
62 -lglib-2.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
63 -lgdk-win32-2.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
64 -lgobject-2.0 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
65 -lintl \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
66 -lpurple \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
67 -lpidgin \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
68 -lxml2 \ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
69 -lgdk_pixbuf-2.0 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
70 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
71 LDFLAGS = $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
72 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
73 all: $(TARGET) |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
74 |
254
c2620a99622b
- divided the source file into several parts.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
253
diff
changeset
|
75 $(TARGET): $(OBJS) |
253
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
76 $(CC) -shared $^ $(LDFLAGS) -o $@ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
77 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
78 .c.o: |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
79 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
80 |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
81 prefs_ui.o: prefs.ui |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
82 $(OBJCOPY) -I binary -O pe-i386 -B i386 $^ $@ |
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
83 |
278
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
84 strip: $(TARGET) |
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
85 $(STRIP) $^ |
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
86 |
253
a37ae6c8fa66
Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff
changeset
|
87 clean: |
278
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
88 rm -f $(OBJS) $(TARGET) $(DEPEND) *~ |
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
89 |
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
90 $(DEPEND): $(SRCS) |
281
57f08c61dbc3
Add $(CPPFLAGS) to .dep rule
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
280
diff
changeset
|
91 $(CC) -MM $(CPPFLAGS) $(SRCS) > $@ |
278
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
92 |
c0cb589f6e05
minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
254
diff
changeset
|
93 -include $(DEPEND) |