Mercurial > pidgin.yaz
comparison gtk/plugins/docklet/Makefile.mingw @ 14191:009db0b357b5
This is a hand-crafted commit to migrate across subversion revisions
16854:16861, due to some vagaries of the way the original renames were
done. Witness that monotone can do in one revision what svn had to
spread across several.
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Sat, 16 Dec 2006 04:59:55 +0000 |
parents | |
children | ab8a105eff62 |
comparison
equal
deleted
inserted
replaced
14190:366be2ce35a7 | 14191:009db0b357b5 |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for docklet plugin. | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 GTK_TOP := ../../../win32-dev/gtk_2_0 | |
12 GAIM_TOP := ../.. | |
13 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
14 DLL_INSTALL_DIR := $(GAIM_INSTALL_DIR)/plugins | |
15 | |
16 ## | |
17 ## VARIABLE DEFINITIONS | |
18 ## | |
19 | |
20 TARGET = docklet | |
21 | |
22 # Compiler Options | |
23 | |
24 CFLAGS = | |
25 | |
26 DEFINES = | |
27 | |
28 ## | |
29 ## INCLUDE MAKEFILES | |
30 ## | |
31 | |
32 include $(GAIM_TOP)/src/win32/global.mak | |
33 | |
34 ## | |
35 ## INCLUDE PATHS | |
36 ## | |
37 | |
38 INCLUDE_PATHS += -I. \ | |
39 -I$(GTK_TOP)/include \ | |
40 -I$(GTK_TOP)/include/gtk-2.0 \ | |
41 -I$(GTK_TOP)/include/glib-2.0 \ | |
42 -I$(GTK_TOP)/include/pango-1.0 \ | |
43 -I$(GTK_TOP)/include/atk-1.0 \ | |
44 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
45 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
46 -I$(GAIM_TOP)/src \ | |
47 -I$(GAIM_TOP)/src/win32 \ | |
48 -I$(GAIM_TOP) | |
49 | |
50 | |
51 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
52 -L$(GAIM_TOP)/src | |
53 | |
54 | |
55 ## | |
56 ## SOURCES, OBJECTS | |
57 ## | |
58 | |
59 C_SRC = docklet.c \ | |
60 docklet-win32.c \ | |
61 MinimizeToTray.c | |
62 | |
63 | |
64 OBJECTS = $(C_SRC:%.c=%.o) | |
65 | |
66 | |
67 ## | |
68 ## LIBRARIES | |
69 ## | |
70 | |
71 LIBS = -lgtk-win32-2.0 \ | |
72 -lglib-2.0 \ | |
73 -lgdk-win32-2.0 \ | |
74 -lgmodule-2.0 \ | |
75 -lgobject-2.0 \ | |
76 -lws2_32 \ | |
77 -lintl \ | |
78 -lgaim | |
79 | |
80 | |
81 ## | |
82 ## RULES | |
83 ## | |
84 | |
85 # How to make a C file | |
86 | |
87 %.o: %.c | |
88 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
89 | |
90 ## | |
91 ## TARGET DEFINITIONS | |
92 ## | |
93 | |
94 .PHONY: all clean | |
95 | |
96 all: $(TARGET).dll | |
97 | |
98 install: all | |
99 cp $(TARGET).dll $(DLL_INSTALL_DIR) | |
100 | |
101 | |
102 ## | |
103 ## BUILD Dependencies | |
104 ## | |
105 | |
106 $(GAIM_TOP)/src/gaim.lib: | |
107 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
108 | |
109 ## | |
110 ## BUILD DLL | |
111 ## | |
112 | |
113 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
114 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll | |
115 | |
116 ## | |
117 ## CLEAN RULES | |
118 ## | |
119 | |
120 clean: | |
121 rm -rf *.o | |
122 rm -rf $(TARGET).dll |