Mercurial > pidgin.yaz
annotate plugins/win32/winprefs/Makefile.mingw @ 10531:940f0d8ce380
[gaim-migrate @ 11858]
This is multi-monitor support for docking. This also should fix the multiple "Show Desktop" request causing the contents of of the docked buddy list to permanently disappear. I also added a handling of a couple Window Manager events that probably aren't really necessary, but the MSDN docs say they are. This is certainly not C89 compliant (variable declaration), but it is win32 API, so it probably doesn't matter.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 20 Jan 2005 03:16:04 +0000 |
parents | 752d0600b514 |
children |
rev | line source |
---|---|
4134
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
1 # |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
2 # Makefile.mingw |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
3 # |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
4 # Description: Makefile for winprefs plugin. |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
5 # |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
6 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
7 # |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
8 # PATHS |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
9 # |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
10 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
11 GTK_TOP := ../../../../win32-dev/gtk_2_0 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
12 GAIM_TOP := ../../.. |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
13 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
14 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
15 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
16 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
17 ## VARIABLE DEFINITIONS |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
18 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
19 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
20 TARGET = winprefs |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
21 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
22 # Compiler Options |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
23 |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4134
diff
changeset
|
24 CFLAGS = |
4134
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
25 |
10531
940f0d8ce380
[gaim-migrate @ 11858]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
6409
diff
changeset
|
26 DEFINES = -DWINVER=0x500 |
4134
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
27 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
28 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
29 ## INCLUDE MAKEFILES |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
30 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
31 |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4134
diff
changeset
|
32 include $(GAIM_TOP)/src/win32/global.mak |
4134
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
33 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
34 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
35 ## INCLUDE PATHS |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
36 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
37 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
38 INCLUDE_PATHS += -I. \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
39 -I$(GTK_TOP)/include \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
40 -I$(GTK_TOP)/include/gtk-2.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
41 -I$(GTK_TOP)/include/glib-2.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
42 -I$(GTK_TOP)/include/pango-1.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
43 -I$(GTK_TOP)/include/atk-1.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
44 -I$(GTK_TOP)/lib/glib-2.0/include \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
45 -I$(GTK_TOP)/lib/gtk-2.0/include \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
46 -I$(GAIM_TOP)/src \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
47 -I$(GAIM_TOP)/src/win32 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
48 -I$(GAIM_TOP) |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
49 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
50 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
51 LIB_PATHS = -L$(GTK_TOP)/lib \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
52 -L$(GAIM_TOP)/src |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
53 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
54 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
55 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
56 ## SOURCES, OBJECTS |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
57 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
58 |
6409
752d0600b514
[gaim-migrate @ 6915]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
59 C_SRC = winprefs.c \ |
752d0600b514
[gaim-migrate @ 6915]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
60 gtkappbar.c |
4134
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
61 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
62 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
63 OBJECTS = $(C_SRC:%.c=%.o) |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
64 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
65 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
66 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
67 ## LIBRARIES |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
68 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
69 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
70 LIBS = -lgtk-win32-2.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
71 -lglib-2.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
72 -lgdk-win32-2.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
73 -lgmodule-2.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
74 -lgobject-2.0 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
75 -lws2_32 \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
76 -lintl \ |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
77 -lgaim |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
78 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
79 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
80 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
81 ## RULES |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
82 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
83 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
84 # How to make a C file |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
85 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
86 %.o: %.c |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
87 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
88 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
89 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
90 ## TARGET DEFINITIONS |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
91 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
92 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
93 .PHONY: all clean |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
94 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
95 all: $(TARGET).dll |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
96 |
10531
940f0d8ce380
[gaim-migrate @ 11858]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
6409
diff
changeset
|
97 install: $(TARGET).dll |
4134
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
98 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
99 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
100 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
101 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
102 ## BUILD Dependencies |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
103 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
104 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
105 $(GAIM_TOP)/src/gaim.lib: |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
106 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
107 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
108 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
109 ## BUILD DLL |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
110 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
111 |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4134
diff
changeset
|
112 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4134
diff
changeset
|
113 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
4134
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
114 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
115 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
116 ## CLEAN RULES |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
117 ## |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
118 |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
119 clean: |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
120 rm -rf *.o |
c0f4c664e3ba
[gaim-migrate @ 4352]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
diff
changeset
|
121 rm -rf $(TARGET).dll |