Mercurial > pidgin.yaz
annotate plugins/ticker/Makefile.mingw @ 6109:0922bb7a7bbc
[gaim-migrate @ 6571]
Make attempting to sign on to an account twice not crash Gaim, and make
the prompt for password request window only open once at max. I might
change this in a few minutes, but this works, and I wanted to commit it
before I break something.
Move the gaim_request_input() call for "Please enter your password" to
connection.c instead of gtkconn.c. There is no need for this to be in
gtkconn.c, and doing it in core means less work for UIs.
Make closing a notify window call the cancel action.
Set the titles for request windows, when given.
Remove a bit of odd, un-needed code from main.c (hitting "enter" in the
password field was calling doenter which called dologin. Now it just
calls dologin).
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 13 Jul 2003 18:33:25 +0000 |
parents | bb7723f0b4b9 |
children |
rev | line source |
---|---|
3630 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for ticker plugin. | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 | |
13 GTK_TOP := ../../../win32-dev/gtk_2_0 | |
14 GAIM_TOP := ../.. | |
15 TICKER_ROOT := . | |
16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
17 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins | |
18 | |
19 ## | |
20 ## VARIABLE DEFINITIONS | |
21 ## | |
22 | |
23 TARGET = ticker | |
24 | |
25 # Compiler Options | |
26 | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 CFLAGS = |
3630 | 28 |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
29 DEFINES = |
3630 | 30 |
31 | |
32 ## | |
33 ## INCLUDE MAKEFILES | |
34 ## | |
35 | |
3715
764d6f1848b2
[gaim-migrate @ 3848]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
36 include $(GAIM_TOP)/src/win32/global.mak |
3630 | 37 |
38 ## | |
39 ## INCLUDE PATHS | |
40 ## | |
41 | |
42 INCLUDE_PATHS += -I$(TICKER_ROOT) \ | |
43 -I$(GTK_TOP)/include \ | |
44 -I$(GTK_TOP)/include/gtk-2.0 \ | |
45 -I$(GTK_TOP)/include/glib-2.0 \ | |
46 -I$(GTK_TOP)/include/pango-1.0 \ | |
47 -I$(GTK_TOP)/include/atk-1.0 \ | |
48 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
49 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
50 -I$(GAIM_TOP)/src \ | |
51 -I$(GAIM_TOP)/src/win32 \ | |
52 -I$(GAIM_TOP) | |
53 | |
54 | |
55 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
56 -L$(GAIM_TOP)/src | |
57 | |
58 | |
59 ## | |
60 ## SOURCES, OBJECTS | |
61 ## | |
62 | |
63 C_SRC = ticker.c \ | |
64 gtkticker.c | |
65 | |
66 | |
67 OBJECTS = $(C_SRC:%.c=%.o) | |
68 | |
69 | |
70 ## | |
71 ## LIBRARIES | |
72 ## | |
73 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
74 LIBS = -lgtk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
75 -lglib-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
76 -lgdk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
77 -lgmodule-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
78 -lgobject-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
79 -lws2_32 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
80 -lintl \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
81 -lgaim |
3630 | 82 |
83 ## | |
84 ## RULES | |
85 ## | |
86 | |
87 # How to make a C file | |
88 | |
89 %.o: %.c | |
90 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
91 | |
92 ## | |
93 ## TARGET DEFINITIONS | |
94 ## | |
95 | |
96 .PHONY: all clean | |
97 | |
98 all: $(TARGET).dll | |
99 | |
100 install: | |
101 cp $(TICKER_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
102 | |
103 | |
104 ## | |
105 ## BUILD Dependencies | |
106 ## | |
107 | |
108 $(GAIM_TOP)/src/gaim.lib: | |
109 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
110 | |
111 ## | |
112 ## BUILD DLL | |
113 ## | |
114 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
115 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3715
diff
changeset
|
116 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
3630 | 117 |
118 ## | |
119 ## CLEAN RULES | |
120 ## | |
121 | |
122 clean: | |
123 rm -rf *.o | |
124 rm -rf $(TARGET).dll |