annotate Makefile.mingw @ 283:5036603faa7a

tweaked Makefile.mingw reflecting mojin's comment.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 24 Dec 2008 16:25:57 +0900
parents 57f08c61dbc3
children f360d673cc35
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
280
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
1 # you must specify pidgin top directory.
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
2 PIDGIN_TREE_TOP =
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
3
283
5036603faa7a tweaked Makefile.mingw reflecting mojin's comment.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 281
diff changeset
4 # uncomment this if you use gtk common directory.
5036603faa7a tweaked Makefile.mingw reflecting mojin's comment.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 281
diff changeset
5 #USE_GTK_TOP = 1
280
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
6
278
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
7
280
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
9
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
10 ifeq ($(USE_GTK_TOP), 1)
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
11 GLIB_TOP = $(GTK_TOP)
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
12 ATK_TOP = $(GTK_TOP)
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
13 PANGO_TOP = $(GTK_TOP)
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
14 CAIRO_TOP = $(GTK_TOP)
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
15 ICONV_TOP = $(GTK_TOP)
2e9fefd1a285 revised Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 279
diff changeset
16 GETTEXT_TOP = $(GTK_TOP)
278
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
17 else
253
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
18 GLIB_TOP = ../glib-dev-2.16.5
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
19 GTK_TOP = ../gtk+-dev-2.12.11
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
20 ATK_TOP = ../atk-dev-1.22.0
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
21 PANGO_TOP = ../pango-dev-1.20.5
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
22 CAIRO_TOP = ../cairo-dev-1.6.4-2
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
23 ICONV_TOP = ../win_iconv-tml-20080320
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
24 GETTEXT_TOP = ../gettext-runtime-dev-0.17-1
278
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
25 endif
253
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
26
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
27 OBJCOPY = objcopy.exe
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
28 STRIP = strip.exe
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
29
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
30 TARGET = pidgin-twitter.dll
254
c2620a99622b - divided the source file into several parts.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 253
diff changeset
31 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
32
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
33 OBJS = $(SRCS:%.c=%.o) prefs_ui.o
278
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
34 DEPEND = .deps
253
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
35
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
36 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
37 -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
38 -I$(GTK_TOP)/include/gtk-2.0 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
39 -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
40 -I$(ATK_TOP)/include/atk-1.0 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
41 -I$(PANGO_TOP)/include/pango-1.0 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
42 -I$(CAIRO_TOP)/include/cairo \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
43 -I$(ICONV_TOP)/include \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
44 -I$(LIBXML2_TOP)/include \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
45 -I$(PURPLE_TOP) \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
46 -I$(PURPLE_TOP)/win32 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
47 -I$(PIDGIN_TOP) \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
48 -I$(PIDGIN_TOP)/win32
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
49
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
50 LIB_PATHS = -L$(GLIB_TOP)/lib \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
51 -L$(GTK_TOP)/lib \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
52 -L$(LIBXML2_TOP)/lib \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
53 -L$(GETTEXT_TOP)/lib \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
54 -L$(PURPLE_TOP) \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
55 -L$(PIDGIN_TOP)
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
56
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
57 LIBS = -lgtk-win32-2.0 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
58 -lglib-2.0 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
59 -lgdk-win32-2.0 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
60 -lgobject-2.0 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
61 -lintl \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
62 -lpurple \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
63 -lpidgin \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
64 -lxml2 \
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
65 -lgdk_pixbuf-2.0
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
66
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
67 LDFLAGS = $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS)
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
68
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
69 all: $(TARGET)
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
70
254
c2620a99622b - divided the source file into several parts.
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 253
diff changeset
71 $(TARGET): $(OBJS)
253
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
72 $(CC) -shared $^ $(LDFLAGS) -o $@
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
73
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
74 .c.o:
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
75 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
76
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
77 prefs_ui.o: prefs.ui
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
78 $(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
79
278
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
80 strip: $(TARGET)
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
81 $(STRIP) $^
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
82
253
a37ae6c8fa66 Embed prefs.ui in dll file (Windows only)
Konosuke Watanabe <sasugaanija@gmail.com>
parents:
diff changeset
83 clean:
278
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
84 rm -f $(OBJS) $(TARGET) $(DEPEND) *~
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
85
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
86 $(DEPEND): $(SRCS)
281
57f08c61dbc3 Add $(CPPFLAGS) to .dep rule
Konosuke Watanabe <sasugaanija@gmail.com>
parents: 280
diff changeset
87 $(CC) -MM $(CPPFLAGS) $(SRCS) > $@
278
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
88
c0cb589f6e05 minor modification to Makefile.mingw
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 254
diff changeset
89 -include $(DEPEND)